]> git.sur5r.net Git - openldap/blob - Make-common.gmake
Fixed memory leaks.
[openldap] / Make-common.gmake
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 # This template should be used by systems with Gnu Make.
34 #
35 # If Gnu make is not installed as make, you must uncomment out
36 # this line.
37 #MAKE=gmake
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 ifndef LDAP_PREFIX
55 LDAP_PREFIX= /usr/local
56 endif
57 ifndef LDAP_INSTROOT
58 LDAP_INSTROOT= $(LDAP_PREFIX)
59 endif
60 ifndef LDAP_ETCDIR
61 LDAP_ETCDIR= $(LDAP_INSTROOT)/etc/ldap
62 endif
63 ifndef LDAP_INCDIR
64 LDAP_INCDIR= $(LDAP_INSTROOT)/include
65 endif
66 ifndef LDAP_LIBDIR
67 LDAP_LIBDIR= $(LDAP_INSTROOT)/lib
68 endif
69 ifndef LDAP_MANDIR
70 LDAP_MANDIR= $(LDAP_INSTROOT)/man
71 endif
72 ifndef LDAP_BINDIR
73 LDAP_BINDIR= $(LDAP_INSTROOT)/bin
74 endif
75 ifndef LDAP_SBINDIR
76 LDAP_SBINDIR=$(LDAP_INSTROOT)/sbin
77 endif
78 ifndef LDAP_LIBEXECDIR
79 LDAP_LIBEXECDIR= $(LDAP_INSTROOT)/libexec
80 endif
81 ifndef LDAP_RUNDIR
82 LDAP_RUNDIR= $(LDAP_ETCDIR)
83 endif
84
85 #############################################################################
86 ## General compiler options                                                ##
87 #############################################################################
88 # Passed to every compile (cc or gcc).  This is where you put -O or -g, etc.
89 #EXTRACFLAGS=-O -g
90 #EXTRACFLAGS=-O
91 ifndef EXTRACFLAGS
92 EXTRACFLAGS?=-g
93 endif
94 # Passed to every link (ld).  Include -g here if you did in EXTRACFLAGS.
95 ifndef EXTRALDFLAGS
96 EXTRALDFLAGS=-g
97 endif
98
99 #############################################################################
100 ## If you are NOT using Kerberos authentication, you can skip this section.##
101 #############################################################################
102 #
103 # Otherwise, to enable kerberos authentication, uncomment KERBEROS (and
104 # AFSKERBEROS if you are running the AFS version of kerberos).  Also
105 # uncomment and change the various KRB* lines to point to where the
106 # kerberos libraries and include files are installed at your site.
107 #
108 # *** NOTE ***
109 # If you have an MIT Kerberos V distribution and you compiled it with -krb4
110 # flag which enables Kerberos IV compatibility, uncomment KERBEROS_V -
111 # this will make sure all your includes can be found where they actually are -
112 # in this case /usr/local/kerberos/include/kerberosIV - simple change of
113 # KRBINCLUDEFLAG will _not_ work. Also uncomment the correct KRBLIBS define.
114
115 # For Kerberos V with Kerberos IV compatibility uncomment the following line
116 #KERBEROS=-DKERBEROS -DKERBEROS_V
117 # For Kerberos IV uncomment the following line
118 #KERBEROS=-DKERBEROS
119 #
120 #AFSKERBEROS=-DAFSKERBEROS
121 #KRBINCLUDEFLAG = -I/usr/local/kerberos/include
122 #KRBLIBFLAG     = -L/usr/local/kerberos/lib
123 # For Kerberos V with Kerberos IV compatibility uncomment the following line
124 #KRBLIBS = -lkrb4 -lkrb5 -ldes425
125 # For Kerberos IV uncomment the following line
126 #KRBLIBS                = -lkrb -ldes
127
128 #############################################################################
129 ## ISODE is required ONLY to build the ldap <-> X.500 server (ldapd)       ##
130 ## If you don't want to build it, you can skip this section.               ##
131 #############################################################################
132 #
133 # To build the ldap server, uncomment the HAVEISODE line,
134 # and the section describing build settings for your version of isode.
135 #
136 #HAVEISODE = yes
137 # If you compiled ISODE with TURBO_DISK defined, uncomment this
138 #ISODETURBOLIBS = -lgdbm
139 # uncomment these to have ldapd "pretty print" protocol elements w/debugging
140 #PEPSY_DUMP=-DPEPSY_DUMP
141 #PEPSY=/usr/local/ic/bin/pepsy
142 # uncommment this line to have ldapd load PP syntax handlers
143 # you'll also need to add -lpp to ISODEBASELIBS below
144 #LDAP_USE_PP=-DLDAP_USE_PP
145 # uncomment NO_SETPROCTITLE to have ldapd NOT change its title
146 #NO_SETPROCTITLE=-DNOSETPROCTITLE
147 #
148 # ISODE Consortium release build settings
149 # You should change the next line so that ICRELEASE matches the (integer)
150 # version number of whatever IC release you have, e.g. 1, 2, or 3 and
151 # also uncomment the next 5 lines.
152 #ICRELEASE=-DICRELEASE=1
153 #ISODEPACKAGE=-DISODEPACKAGE=IC
154 #ISODEINCLUDEFLAG= -I/usr/local/ic/include/isode -I/usr/local/ic/include
155 #ISODELIBFLAG   = -L/usr/local/ic/lib
156 #ISODEBASELIBS  = -lisode
157 #
158 # Freely available ISODE 8.0 release build settings (uncomment the next 4 lines)
159 #ISODEPACKAGE=-DISODEPACKAGE
160 #ISODEINCLUDEFLAG= -I/usr/local/isode/include
161 #ISODELIBFLAG   = -L/usr/local/isode/lib
162 #ISODEBASELIBS  = -ldsap -lisode
163 #
164 # NEXOR ISODE release build settings (uncomment the next 4 lines)
165 #ISODEPACKAGE=-DISODEPACKAGE=XT
166 #ISODEINCLUDEFLAG= -I/usr/include/isode
167 #ISODELIBFLAG   = -L/usr/local/lib -L/usr/sunlink/osi/lib
168 #ISODEBASELIBS  = -lxtpp -lresolv -lxtdsap -lxtisode -losi
169
170 #############################################################################
171 ## If you don't want to run slapd, skip this section.                      ##
172 #############################################################################
173 #
174 # To build slapd (the stand-alone ldap daemon), uncomment the MAKESLAPD
175 # line and select the SLAPD_BACKENDS you want to use. If you enable the
176 # LDBM backend, also select one of the LDBM backends.
177 MAKESLAPD= yes
178 #
179 # remove the defines for backends you don't want to enable 
180 SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD
181 #
182 # If you have included -DLDAP_LDBM in the SLAPD_BACKENDS line, 
183 # which low-level database package to use must be specified.  You
184 # may want to overide the platform settings by disabling the lines
185 # below and hardcoding the desired settings.
186 #
187 # The four choices: Berkeley db b-tree, Berkeley db hash, GNU dbm, or ndbm.
188 # You will also need to edit the include and lib strings appropriately.
189 # standard unix ndbm
190
191 # Fallback settings, defaults are set in build/*/Make-platform
192 #   The NDBM interface may not work on some (any) platforms.
193 #       You may be happier with Berkeley DB B-trees.
194 ifndef LDBMBACKEND
195 LDBMBACKEND=-DLDBM_USE_NDBM
196 endif
197 ifndef LDBMINCLUDE
198 LDBMINCLUDE=
199 endif
200 ifndef LDBMLIB
201 LDBMLIB=
202 endif
203
204 # LDBM Hardcode Setting Examples (may require editing)
205 # berkeley db btree package
206 #LDBMLIB=-ldb
207 #LDBMBACKEND=-DLDBM_USE_DBBTREE
208 #LDBMINCLUDE=-I/usr/local/db/include
209 #LDBMLIB?=-ldb
210 # berkeley db hash package
211 #LDBMBACKEND=-DLDBM_USE_DBHASH
212 #LDBMINCLUDE=-I/usr/local/db/include
213 #LDBMLIB=-ldb
214 # gnu dbm (gdbm)
215 #LDBMBACKEND=-DLDBM_USE_GDBM
216 #LDBMINCLUDE=-I/usr/local/gdbm/include
217 #LDBMLIB=-lgdbm
218
219 #undef these if you have SleepyCat DB2 installed the updated DBI
220 #LDBMBACKEND=-DLDBM_USE_DBBTREE -DLDBM_USE_DB2
221 #LDBMINCLUDE=-I/usr/local/include
222 #LDBMLIB=-L/usr/local/lib -ldb
223
224 #undef these if you have SleepyCat DB2 installed (with compat185)
225 #LDBMBACKEND=-DLDBM_USE_DBBTREE -DLDBM_USE_DB2_COMPAT185
226 #LDBMINCLUDE=-I/usr/local/include
227 #LDBMLIB=-L/usr/local/lib -ldb
228
229 # if you want to use a non-default threads package change the defines below
230 # to one of:
231 #       -DPOSIX_THREADS         (draft 10 or standard)
232 #       -DTHREAD_MIT_PTHREADS   (draft 4)
233 #       -DTHREAD_NEXT_CTHREADS
234 #       -DTHREAD_DCE_PTHREADS
235 #       -DTHREAD_SUNOS4_LWP
236 #       -DTHREAD_SUNOS5_LWP
237 # and select the appropriate library.
238
239 ifndef THREADS
240 THREADS=-DNO_THREADS
241 endif
242 ifndef THREADSLIB
243 THREADSLIB=
244 endif
245
246 # Locations of auxilary programs
247 # (excepts to below are generally defined in Make-platform)
248 ifndef LDAP_SENDMAIL
249 LDAP_SENDMAIL=/usr/lib/sendmail
250 endif
251 ifndef LDAP_EDITOR
252 LDAP_EDITOR=/usr/ucb/vi
253 endif
254 ifndef LDAP_FINGER
255 LDAP_FINGER=/usr/ucb/finger
256 endif
257
258 # For generation of compressed man pages
259 # (excepts to below are generally defined in Make-platform)
260 ifndef MANCOMPRESS
261 MANCOMPRESS=cat
262 endif
263 ifndef MANCOMPRESSSUFFIX
264 MANCOMPRESSSUFFIX=
265 endif
266
267 #############################################################################
268 ## The following options are used by the xax500 client.  If you haven't    ##
269 ## retrieved the xax500 source and dropped it into the "clients"           ##
270 ## directory, you can skip this section.                                   ##
271 #############################################################################
272 #
273 # location of your X include files
274 #XINCLUDES= -I/usr/X11/include
275 #
276 # location of your X libraries
277 #XLIBDIRS=-L/usr/X11/lib
278 #
279 # include any extra X libraries you need here
280 # the following works with sunos 4 and X11R5
281 #XLIBS = $(XLIBDIRS) -lXm -lXt -lX11
282 # the following has been known to work with Solaris 2.4 and X11R6
283 #XLIBS = $(XLIBDIRS) -lXm -lXext -lSM -lICE -lXpm -lXt -lX11
284
285 #############################################################################
286 ## If you don't want to do auto-translation of character sets, skip this   ##
287 #############################################################################
288 #
289 # Otherwise, uncomment this line and set the following options.
290 #STR_TRANSLATION=-DSTR_TRANSLATION
291
292 # remove the defines for LDAP client library T.61 character translation
293 # you do not need.  If you use LDAP_CHARSET_8859, replace the '1' in "88591"
294 # with the number of the particular character set you use.  E.g., use "88594"
295 # if you use the ISO 8859-4 chracter set.
296 #LIBLDAP_CHARSETS=-DLDAP_CHARSET_8859="88591"
297
298 # uncomment one these lines to enable automatic T.61 translation by default
299 #LIBLDAP_DEF_CHARSET=-DLDAP_DEFAULT_CHARSET=LDAP_CHARSET_8859
300
301 #############################################################################
302 ## General options                                                         ##
303 #############################################################################
304 # uncomment this line to enable debugging code (a good idea)
305 LDAP_DEBUG=-DLDAP_DEBUG
306
307 # uncomment this line to turn on a few U of Michigan specific things
308 #UOFM=-DUOFM
309
310 # uncomment this line to delete a few printfs in the lber and ldap libraries.
311 #NO_USERINTERFACE=-DNO_USERINTERFACE
312
313 # uncomment this line to include Connectionless LDAP support
314 #CLDAP=-DCLDAP
315
316 # uncomment this line to eliminate local caching support in the libldap
317 #NO_CACHE=-DNO_CACHE
318
319 # uncomment this line to do reverse lookups (useful for doing ACLs
320 # by host/domain names)
321 LDAP_REVERSE_LOOKUP=-DREVERSE_LOOKUP
322
323 # uncomment this line to enable support for LDAP referrals in libldap
324 LDAP_REFERRALS=-DLDAP_REFERRALS
325
326 # uncomment this line to enable ACL by groups
327 # LDAP_ACLGROUP=-DACLGROUP
328
329 # uncomment these lines to enable support for CRYPT, SHA1, and/or MD5 passwords
330 # in LDBM.  Crypt uses platform provided crypt(3).
331 # LDAP_CRYPT=-DLDAP_CRYPT -DLDAP_SHA1 -DLDAP_MD5
332 # LDAP_CRYPT_LIB=
333 # and comment this line out
334 LDAP_CRYPT_LIB=
335
336 # uncomment these lines to enable support fro tcp_wrappers in servers.
337 # Requires tcp_wrappers.
338 # LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS -I/usr/local/include
339 # LDAP_TCP_WRAPPERS_LIB=-L/usr/local/lib -lwrap
340
341 # uncomment this line to use soundex for approximate matches in slapd.
342 # the default is to use the metaphone algorithm.
343 #PHONETIC=-DSOUNDEX