1 #-----------------------------------------------------------------------------
2 # Copyright 1998 The OpenLDAP Foundation, Redwood City, California, USA
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.
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.
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.
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)
28 #############################################################################
29 ## Edit the following variables to have appropriate values for your system ##
30 #############################################################################
32 #############################################################################
33 ## LDAP install paths ##
34 #############################################################################
35 # by default, everything is installed below INSTROOT
36 # config files, etc. are put in ETCDIR
37 # include files get put in INCLUDEDIR
38 # libraries are put in LIBDIR
39 # man pages are put under MANDIR
40 # programs end-users will run are put in BINDIR
41 # programs sysadmins will run are put in SBINDIR
42 # servers are put in LIBEXECDIR
43 # pid/args files are put in RUNDIR
45 # Per platform defaults override these.
47 LDAP_PREFIX?= /usr/local
48 LDAP_INSTROOT?= $(LDAP_PREFIX)
49 LDAP_ETCDIR?= $(LDAP_INSTROOT)/etc/ldap
50 LDAP_INCDIR?= $(LDAP_INSTROOT)/include
51 LDAP_LIBDIR?= $(LDAP_INSTROOT)/lib
52 LDAP_MANDIR?= $(LDAP_INSTROOT)/man
53 LDAP_BINDIR?= $(LDAP_INSTROOT)/bin
54 LDAP_SBINDIR?=$(LDAP_INSTROOT)/sbin
55 LDAP_LIBEXECDIR?= $(LDAP_INSTROOT)/libexec
56 LDAP_RUNDIR?= $(LDAP_ETCDIR)
58 #############################################################################
59 ## General compiler options ##
60 #############################################################################
61 # Passed to every compile (cc or gcc). This is where you put -O or -g, etc.
65 # Passed to every link (ld). Include -g here if you did in EXTRACFLAGS.
68 #############################################################################
69 ## If you are NOT using Kerberos authentication, you can skip this section.##
70 #############################################################################
72 # Otherwise, to enable kerberos authentication, uncomment KERBEROS (and
73 # AFSKERBEROS if you are running the AFS version of kerberos). Also
74 # uncomment and change the various KRB* lines to point to where the
75 # kerberos libraries and include files are installed at your site.
78 #AFSKERBEROS=-DAFSKERBEROS
79 #KRBINCLUDEFLAG = -I/usr/local/kerberos/include
80 #KRBLIBFLAG = -L/usr/local/kerberos/lib
81 #KRBLIBS = -lkrb -ldes
83 #############################################################################
84 ## ISODE is required ONLY to build the ldap <-> X.500 server (ldapd) ##
85 ## If you don't want to build it, you can skip this section. ##
86 #############################################################################
88 # To build the ldap server, uncomment the HAVEISODE line,
89 # and the section describing build settings for your version of isode.
92 # If you compiled ISODE with TURBO_DISK defined, uncomment this
93 #ISODETURBOLIBS = -lgdbm
94 # uncomment these to have ldapd "pretty print" protocol elements w/debugging
95 #PEPSY_DUMP=-DPEPSY_DUMP
96 #PEPSY=/usr/local/ic/bin/pepsy
97 # uncommment this line to have ldapd load PP syntax handlers
98 # you'll also need to add -lpp to ISODEBASELIBS below
99 #LDAP_USE_PP=-DLDAP_USE_PP
100 # uncomment NO_SETPROCTITLE to have ldapd NOT change its title
101 #NO_SETPROCTITLE=-DNOSETPROCTITLE
103 # ISODE Consortium release build settings
104 # You should change the next line so that ICRELEASE matches the (integer)
105 # version number of whatever IC release you have, e.g. 1, 2, or 3 and
106 # also uncomment the next 5 lines.
107 #ICRELEASE=-DICRELEASE=1
108 #ISODEPACKAGE=-DISODEPACKAGE=IC
109 #ISODEINCLUDEFLAG= -I/usr/local/ic/include/isode -I/usr/local/ic/include
110 #ISODELIBFLAG = -L/usr/local/ic/lib
111 #ISODEBASELIBS = -lisode
113 # Freely available ISODE 8.0 release build settings (uncomment the next 4 lines)
114 #ISODEPACKAGE=-DISODEPACKAGE
115 #ISODEINCLUDEFLAG= -I/usr/local/isode/include
116 #ISODELIBFLAG = -L/usr/local/isode/lib
117 #ISODEBASELIBS = -ldsap -lisode
119 # NEXOR ISODE release build settings (uncomment the next 4 lines)
120 #ISODEPACKAGE=-DISODEPACKAGE=XT
121 #ISODEINCLUDEFLAG= -I/usr/include/isode
122 #ISODELIBFLAG = -L/usr/local/lib -L/usr/sunlink/osi/lib
123 #ISODEBASELIBS = -lxtpp -lresolv -lxtdsap -lxtisode -losi
125 #############################################################################
126 ## If you don't want to run slapd, skip this section. ##
127 #############################################################################
129 # To build slapd (the stand-alone ldap daemon), uncomment the MAKESLAPD
130 # line and select the SLAPD_BACKENDS you want to use. If you enable the
131 # LDBM backend, also select one of the LDBM backends.
134 # remove the defines for backends you don't want to enable
135 SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD
137 # If you have included -DLDAP_LDBM in the SLAPD_BACKENDS line,
138 # which low-level database package to use must be specified. You
139 # may want to overide the platform settings by disabling the lines
140 # below and hardcoding the desired settings.
142 # The four choices: Berkeley db b-tree, Berkeley db hash, GNU dbm, or ndbm.
143 # You will also need to edit the include and lib strings appropriately.
146 # Fallback settings, defaults are set in build/*/Make-platform
147 LDBMBACKEND?=-DLDBM_USE_NDBM
151 # LDBM Hardcode Setting Examples (may require editing)
152 # berkeley db btree package
154 #LDBMBACKEND=-DLDBM_USE_DBBTREE
155 #LDBMINCLUDE=-I/usr/local/db/include
157 # berkeley db hash package
158 #LDBMBACKEND=-DLDBM_USE_DBHASH
159 #LDBMINCLUDE=-I/usr/local/db/include
162 #LDBMBACKEND=-DLDBM_USE_GDBM
163 #LDBMINCLUDE=-I/usr/local/gdbm/include
166 #undef these if you have SLEEPYCAT DB2 installed
167 #LDBMBACKEND=-DLDBM_USE_DBBTREE -DHAVE_SLEEPYCAT_DB2
168 #LDBMINCLUDE=-I/usr/local/include
169 #LDBMLIB=-L/usr/local/lib -ldb
171 # if you want to use a non-default threads package change the defines below
173 # -DPOSIX_THREADS (draft 10 or standard)
174 # -DTHREAD_MIT_PTHREADS (draft 4)
175 # -DTHREAD_NEXT_CTHREADS
176 # -DTHREAD_DCE_PTHREADS
177 # -DTHREAD_SUNOS4_LWP
178 # -DTHREAD_SUNOS5_LWP
179 # and select the appropriate library.
180 #THREADS?=-DNO_THREADS
183 # Locations of auxilary programs
184 # (excepts to below are generally defined in Make-platform)
185 LDAP_SENDMAIL?=/usr/lib/sendmail
186 LDAP_EDITOR?=/usr/ucb/vi
187 LDAP_FINGER?=/usr/ucb/finger
189 # For generation of compressed man pages
190 # (excepts to below are generally defined in Make-platform)
194 #############################################################################
195 ## The following options are used by the xax500 client. If you haven't ##
196 ## retrieved the xax500 source and dropped it into the "clients" ##
197 ## directory, you can skip this section. ##
198 #############################################################################
200 # location of your X include files
201 #XINCLUDES= -I/usr/X11/include
203 # location of your X libraries
204 #XLIBDIRS=-L/usr/X11/lib
206 # include any extra X libraries you need here
207 # the following works with sunos 4 and X11R5
208 #XLIBS = $(XLIBDIRS) -lXm -lXt -lX11
209 # the following has been known to work with Solaris 2.4 and X11R6
210 #XLIBS = $(XLIBDIRS) -lXm -lXext -lSM -lICE -lXpm -lXt -lX11
212 #############################################################################
213 ## If you don't want to do auto-translation of character sets, skip this ##
214 #############################################################################
216 # Otherwise, uncomment this line and set the following options.
217 #STR_TRANSLATION=-DSTR_TRANSLATION
219 # remove the defines for LDAP client library T.61 character translation
220 # you do not need. If you use LDAP_CHARSET_8859, replace the '1' in "88591"
221 # with the number of the particular character set you use. E.g., use "88594"
222 # if you use the ISO 8859-4 chracter set.
223 #LIBLDAP_CHARSETS=-DLDAP_CHARSET_8859="88591"
225 # uncomment one these lines to enable automatic T.61 translation by default
226 #LIBLDAP_DEF_CHARSET=-DLDAP_DEFAULT_CHARSET=LDAP_CHARSET_8859
228 #############################################################################
229 ## General options ##
230 #############################################################################
231 # uncomment this line to enable debugging code (a good idea)
232 LDAP_DEBUG=-DLDAP_DEBUG
234 # uncomment this line to turn on a few U of Michigan specific things
237 # uncomment this line to delete a few printfs in the lber and ldap libraries.
238 #NO_USERINTERFACE=-DNO_USERINTERFACE
240 # uncomment this line to include Connectionless LDAP support
243 # uncomment this line to eliminate local caching support in the libldap
246 # uncomment this line to do reverse lookups (useful for doing ACLs
247 # by host/domain names)
248 LDAP_REVERSE_LOOKUP=-DREVERSE_LOOKUP
250 # uncomment this line to enable support for LDAP referrals in libldap
251 LDAP_REFERRALS=-DLDAP_REFERRALS
253 # uncomment this line to enable ACL by groups
254 # LDAP_ACLGROUP=-DACLGROUP
256 # uncomment these lines to enable support for CRYPT, SHA1, and/or MD5 passwords
257 # in LDBM. Crypt uses platform provided crypt(3).
258 # LDAP_CRYPT=-DLDAP_CRYPT -DLDAP_SHA1 -DLDAP_MD5
260 # and comment this line out
263 # uncomment these lines to enable support fro tcp_wrappers in servers.
264 # Requires tcp_wrappers.
265 # LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS -I/usr/local/include
266 # LDAP_TCP_WRAPPERS_LIB=-L/usr/local/lib -lwrap
268 # uncomment this line to use soundex for approximate matches in slapd.
269 # the default is to use the metaphone algorithm.