]> git.sur5r.net Git - openldap/blob - Make-common.dist
Add missing mkdirs in make install rules
[openldap] / Make-common.dist
1 #-----------------------------------------------------------------------------
2 # Copyright 1998 The OpenLDAP Foundation, Redwood City, California, USA
3 # All rights reserved.
4
5 # Redistribution and use in source and binary forms are permitted only
6 # as authorized by the OpenLDAP Public License.  A copy of this
7 # license is available at http://www.OpenLDAP.org/license.html or
8 # in file LICENSE in the top-level directory of the distribution.
9
10 # This work is derived from the University of Michigan LDAP v3.3
11 # distribution.  Information concerning is available at
12 #       http://www.umich.edu/~dirsvcs/ldap/ldap.html.
13 #
14 # This work also contains materials derived from public sources.
15 #-----------------------------------------------------------------------------
16 # Copyright (c) 1994 Regents of the University of Michigan.
17 # All rights reserved.
18 #
19 # Redistribution and use in source and binary forms are permitted
20 # provided that this notice is preserved and that due credit is given
21 # to the University of Michigan at Ann Arbor. The name of the University
22 # may not be used to endorse or promote products derived from this
23 # software without specific prior written permission. This software
24 # is provided ``as is'' without express or implied warranty.
25 #-----------------------------------------------------------------------------
26 # LDAP common Make defines (included in all but top-level Makefile)
27
28 #############################################################################
29 ## Edit the following variables to have appropriate values for your system ##
30 #############################################################################
31
32 #
33 # Note:  Some make(1) programs do not understand the FOO?=BAR syntax.
34 #
35 # On such systems, you should use copy Make-common.gmake to Make-common
36 # and use gmake to build the distribution.
37 #
38
39 #############################################################################
40 ## LDAP install paths                                                      ##
41 #############################################################################
42 # by default, everything is installed below INSTROOT
43 # config files, etc. are put in ETCDIR
44 # include files get put in INCLUDEDIR
45 # libraries are put in LIBDIR
46 # man pages are put under MANDIR
47 # programs end-users will run are put in BINDIR
48 # programs sysadmins will run are put in SBINDIR
49 # servers are put in LIBEXECDIR
50 # pid/args files are put in RUNDIR
51 #
52 # Per platform defaults override these.
53 #
54 LDAP_PREFIX?= /usr/local
55 LDAP_INSTROOT?= $(LDAP_PREFIX)
56 LDAP_ETCDIR?= $(LDAP_INSTROOT)/etc/ldap
57 LDAP_INCDIR?= $(LDAP_INSTROOT)/include
58 LDAP_LIBDIR?= $(LDAP_INSTROOT)/lib
59 LDAP_MANDIR?= $(LDAP_INSTROOT)/man
60 LDAP_BINDIR?= $(LDAP_INSTROOT)/bin
61 LDAP_SBINDIR?=$(LDAP_INSTROOT)/sbin
62 LDAP_LIBEXECDIR?= $(LDAP_INSTROOT)/libexec
63 LDAP_RUNDIR?= $(LDAP_ETCDIR)
64
65 #############################################################################
66 ## General compiler options                                                ##
67 #############################################################################
68 # Passed to every compile (cc or gcc).  This is where you put -O or -g, etc.
69 #EXTRACFLAGS=-O -g
70 #EXTRACFLAGS=-O
71 EXTRACFLAGS?=-g
72 # Passed to every link (ld).  Include -g here if you did in EXTRACFLAGS.
73 EXTRALDFLAGS?=-g
74
75 #############################################################################
76 ## If you are NOT using Kerberos authentication, you can skip this section.##
77 #############################################################################
78 #
79 # Otherwise, to enable kerberos authentication, uncomment KERBEROS (and
80 # AFSKERBEROS if you are running the AFS version of kerberos).  Also
81 # uncomment and change the various KRB* lines to point to where the
82 # kerberos libraries and include files are installed at your site.
83 #
84 # *** NOTE ***
85 # If you have an MIT Kerberos V distribution and you compiled it with -krb4
86 # flag which enables Kerberos IV compatibility, uncomment KERBEROS_V -
87 # this will make sure all your includes can be found where they actually are -
88 # in this case /usr/local/kerberos/include/kerberosIV - simple change of
89 # KRBINCLUDEFLAG will _not_ work. Also uncomment the correct KRBLIBS define.
90
91 # For Kerberos V with Kerberos IV compatibility uncomment the following line
92 #KERBEROS=-DKERBEROS -DKERBEROS_V
93 # For Kerberos IV uncomment the following line
94 #KERBEROS=-DKERBEROS
95 #
96 #AFSKERBEROS=-DAFSKERBEROS
97 #KRBINCLUDEFLAG = -I/usr/local/kerberos/include
98 #KRBLIBFLAG     = -L/usr/local/kerberos/lib
99 # For Kerberos V with Kerberos IV compatibility uncomment the following line
100 #KRBLIBS = -lkrb4 -lkrb5 -ldes425
101 # For Kerberos IV uncomment the following line
102 #KRBLIBS                = -lkrb -ldes
103
104 #############################################################################
105 ## ISODE is required ONLY to build the ldap <-> X.500 server (ldapd)       ##
106 ## If you don't want to build it, you can skip this section.               ##
107 #############################################################################
108 #
109 # To build the ldap server, uncomment the HAVEISODE line,
110 # and the section describing build settings for your version of isode.
111 #
112 #HAVEISODE = yes
113 # If you compiled ISODE with TURBO_DISK defined, uncomment this
114 #ISODETURBOLIBS = -lgdbm
115 # uncomment these to have ldapd "pretty print" protocol elements w/debugging
116 #PEPSY_DUMP=-DPEPSY_DUMP
117 #PEPSY=/usr/local/ic/bin/pepsy
118 # uncommment this line to have ldapd load PP syntax handlers
119 # you'll also need to add -lpp to ISODEBASELIBS below
120 #LDAP_USE_PP=-DLDAP_USE_PP
121 # uncomment NO_SETPROCTITLE to have ldapd NOT change its title
122 #NO_SETPROCTITLE=-DNOSETPROCTITLE
123 #
124 # ISODE Consortium release build settings
125 # You should change the next line so that ICRELEASE matches the (integer)
126 # version number of whatever IC release you have, e.g. 1, 2, or 3 and
127 # also uncomment the next 5 lines.
128 #ICRELEASE=-DICRELEASE=1
129 #ISODEPACKAGE=-DISODEPACKAGE=IC
130 #ISODEINCLUDEFLAG= -I/usr/local/ic/include/isode -I/usr/local/ic/include
131 #ISODELIBFLAG   = -L/usr/local/ic/lib
132 #ISODEBASELIBS  = -lisode
133 #
134 # Freely available ISODE 8.0 release build settings (uncomment the next 4 lines)
135 #ISODEPACKAGE=-DISODEPACKAGE
136 #ISODEINCLUDEFLAG= -I/usr/local/isode/include
137 #ISODELIBFLAG   = -L/usr/local/isode/lib
138 #ISODEBASELIBS  = -ldsap -lisode
139 #
140 # NEXOR ISODE release build settings (uncomment the next 4 lines)
141 #ISODEPACKAGE=-DISODEPACKAGE=XT
142 #ISODEINCLUDEFLAG= -I/usr/include/isode
143 #ISODELIBFLAG   = -L/usr/local/lib -L/usr/sunlink/osi/lib
144 #ISODEBASELIBS  = -lxtpp -lresolv -lxtdsap -lxtisode -losi
145
146 #############################################################################
147 ## If you don't want to run slapd, skip this section.                      ##
148 #############################################################################
149 #
150 # To build slapd (the stand-alone ldap daemon), uncomment the MAKESLAPD
151 # line and select the SLAPD_BACKENDS you want to use. If you enable the
152 # LDBM backend, also select one of the LDBM backends.
153 MAKESLAPD= yes
154 #
155 # remove the defines for backends you don't want to enable 
156 SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD
157 #
158 # If you have included -DLDAP_LDBM in the SLAPD_BACKENDS line, 
159 # which low-level database package to use must be specified.  You
160 # may want to overide the platform settings by disabling the lines
161 # below and hardcoding the desired settings.
162 #
163 # The four choices: Berkeley db b-tree, Berkeley db hash, GNU dbm, or ndbm.
164 # You will also need to edit the include and lib strings appropriately.
165 # standard unix ndbm
166
167 # Fallback settings, defaults are set in build/*/Make-platform
168 #   The NDBM interface may not work on some (any) platforms.
169 #       You may be happier with Berkeley DB B-trees.
170 LDBMBACKEND?=-DLDBM_USE_NDBM
171 LDBMINCLUDE?=
172 LDBMLIB?=
173
174 # LDBM Hardcode Setting Examples (may require editing)
175 # berkeley db btree package
176 #LDBMLIB=-ldb
177 #LDBMBACKEND=-DLDBM_USE_DBBTREE
178 #LDBMINCLUDE=-I/usr/local/db/include
179 #LDBMLIB?=-ldb
180 # berkeley db hash package
181 #LDBMBACKEND=-DLDBM_USE_DBHASH
182 #LDBMINCLUDE=-I/usr/local/db/include
183 #LDBMLIB=-ldb
184 # gnu dbm (gdbm)
185 #LDBMBACKEND=-DLDBM_USE_GDBM
186 #LDBMINCLUDE=-I/usr/local/gdbm/include
187 #LDBMLIB=-lgdbm
188
189 #undef these if you have SleepyCat DB2 installed the updated DBI
190 #LDBMBACKEND=-DLDBM_USE_DBBTREE -DLDBM_USE_DB2
191 #LDBMINCLUDE=-I/usr/local/include
192 #LDBMLIB=-L/usr/local/lib -ldb
193
194 #undef these if you have SleepyCat DB2 installed (with compat185)
195 #LDBMBACKEND=-DLDBM_USE_DBBTREE -DLDBM_USE_DB2_COMPAT185
196 #LDBMINCLUDE=-I/usr/local/include
197 #LDBMLIB=-L/usr/local/lib -ldb
198
199 # if you want to use a non-default threads package change the defines below
200 # to one of:
201 #       -DPOSIX_THREADS         (draft 10 or standard)
202 #       -DTHREAD_MIT_PTHREADS   (draft 4)
203 #       -DTHREAD_NEXT_CTHREADS
204 #       -DTHREAD_DCE_PTHREADS
205 #       -DTHREAD_SUNOS4_LWP
206 #       -DTHREAD_SUNOS5_LWP
207 # and select the appropriate library.
208 #THREADS?=-DNO_THREADS
209 #THREADSLIB?=
210
211 # Locations of auxilary programs
212 # (excepts to below are generally defined in Make-platform)
213 LDAP_SENDMAIL?=/usr/lib/sendmail
214 LDAP_EDITOR?=/usr/ucb/vi
215 LDAP_FINGER?=/usr/ucb/finger
216
217 # For generation of compressed man pages
218 # (excepts to below are generally defined in Make-platform)
219 MANCOMPRESS?=cat
220 MANCOMPRESSSUFFIX?=
221
222 #############################################################################
223 ## The following options are used by the xax500 client.  If you haven't    ##
224 ## retrieved the xax500 source and dropped it into the "clients"           ##
225 ## directory, you can skip this section.                                   ##
226 #############################################################################
227 #
228 # location of your X include files
229 #XINCLUDES= -I/usr/X11/include
230 #
231 # location of your X libraries
232 #XLIBDIRS=-L/usr/X11/lib
233 #
234 # include any extra X libraries you need here
235 # the following works with sunos 4 and X11R5
236 #XLIBS = $(XLIBDIRS) -lXm -lXt -lX11
237 # the following has been known to work with Solaris 2.4 and X11R6
238 #XLIBS = $(XLIBDIRS) -lXm -lXext -lSM -lICE -lXpm -lXt -lX11
239
240 #############################################################################
241 ## If you don't want to do auto-translation of character sets, skip this   ##
242 #############################################################################
243 #
244 # Otherwise, uncomment this line and set the following options.
245 #STR_TRANSLATION=-DSTR_TRANSLATION
246
247 # remove the defines for LDAP client library T.61 character translation
248 # you do not need.  If you use LDAP_CHARSET_8859, replace the '1' in "88591"
249 # with the number of the particular character set you use.  E.g., use "88594"
250 # if you use the ISO 8859-4 chracter set.
251 #LIBLDAP_CHARSETS=-DLDAP_CHARSET_8859="88591"
252
253 # uncomment one these lines to enable automatic T.61 translation by default
254 #LIBLDAP_DEF_CHARSET=-DLDAP_DEFAULT_CHARSET=LDAP_CHARSET_8859
255
256 #############################################################################
257 ## General options                                                         ##
258 #############################################################################
259 # uncomment this line to enable debugging code (a good idea)
260 LDAP_DEBUG=-DLDAP_DEBUG
261
262 # uncomment this line to turn on a few U of Michigan specific things
263 #UOFM=-DUOFM
264
265 # uncomment this line to delete a few printfs in the lber and ldap libraries.
266 #NO_USERINTERFACE=-DNO_USERINTERFACE
267
268 # uncomment this line to include Connectionless LDAP support
269 #CLDAP=-DCLDAP
270
271 # uncomment this line to eliminate local caching support in the libldap
272 #NO_CACHE=-DNO_CACHE
273
274 # uncomment this line to do reverse lookups (useful for doing ACLs
275 # by host/domain names)
276 LDAP_REVERSE_LOOKUP=-DREVERSE_LOOKUP
277
278 # uncomment this line to enable support for LDAP referrals in libldap
279 LDAP_REFERRALS=-DLDAP_REFERRALS
280
281 # uncomment this line to enable ACL by groups
282 # LDAP_ACLGROUP=-DACLGROUP
283
284 # uncomment these lines to enable support for CRYPT, SHA1, and/or MD5 passwords
285 # in LDBM.  Crypt uses platform provided crypt(3).
286 # LDAP_CRYPT=-DLDAP_CRYPT -DLDAP_SHA1 -DLDAP_MD5
287 # LDAP_CRYPT_LIB?=
288 # and comment this line out
289 LDAP_CRYPT_LIB=
290
291 # uncomment these lines to enable support fro tcp_wrappers in servers.
292 # Requires tcp_wrappers.
293 # LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS -I/usr/local/include
294 # LDAP_TCP_WRAPPERS_LIB=-L/usr/local/lib -lwrap
295
296 # uncomment this line to use soundex for approximate matches in slapd.
297 # the default is to use the metaphone algorithm.
298 #PHONETIC=-DSOUNDEX