1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1994 Regents of the University of Michigan.
5 # Redistribution and use in source and binary forms are permitted
6 # provided that this notice is preserved and that due credit is given
7 # to the University of Michigan at Ann Arbor. The name of the University
8 # may not be used to endorse or promote products derived from this
9 # software without specific prior written permission. This software
10 # is provided ``as is'' without express or implied warranty.
12 # LDAP common Make defines (included in all but top-level Makefile)
14 #-----------------------------------------------------------------------------
16 #############################################################################
17 ## Edit the following variables to have appropriate values for your system ##
18 #############################################################################
20 #############################################################################
21 ## LDAP install paths ##
22 #############################################################################
23 # by default, everything is installed below INSTROOT
24 # config files, etc. are put in ETCDIR
25 # include files get put in INCLUDEDIR
26 # libraries are put in LIBDIR
27 # man pages are put under MANDIR
28 # programs end-users will run are put in BINDIR
29 # programs sysadmins will run are put in SBINDIR
30 # servers are put in LIBEXECDIR
31 # pid/args files are put in RUNDIR
33 # Per platform defaults override these.
35 LDAP_PREFIX?= /usr/local
36 LDAP_INSTROOT?= $(LDAP_PREFIX)
37 LDAP_ETCDIR?= $(LDAP_INSTROOT)/etc/ldap
38 LDAP_INCDIR?= $(LDAP_INSTROOT)/include
39 LDAP_LIBDIR?= $(LDAP_INSTROOT)/lib
40 LDAP_MANDIR?= $(LDAP_INSTROOT)/man
41 LDAP_BINDIR?= $(LDAP_INSTROOT)/bin
42 LDAP_SBINDIR?=$(LDAP_INSTROOT)/sbin
43 LDAP_LIBEXECDIR?= $(LDAP_INSTROOT)/libexec
44 LDAP_RUNDIR?= $(LDAP_ETCDIR)
46 #############################################################################
47 ## General compiler options ##
48 #############################################################################
49 # Passed to every compile (cc or gcc). This is where you put -O or -g, etc.
53 # Passed to every link (ld). Include -g here if you did in EXTRACFLAGS.
56 #############################################################################
57 ## If you are NOT using Kerberos authentication, you can skip this section.##
58 #############################################################################
60 # Otherwise, to enable kerberos authentication, uncomment KERBEROS (and
61 # AFSKERBEROS if you are running the AFS version of kerberos). Also
62 # uncomment and change the various KRB* lines to point to where the
63 # kerberos libraries and include files are installed at your site.
66 #AFSKERBEROS=-DAFSKERBEROS
67 #KRBINCLUDEFLAG = -I/usr/local/kerberos/include
68 #KRBLIBFLAG = -L/usr/local/kerberos/lib
69 #KRBLIBS = -lkrb -ldes
71 #############################################################################
72 ## ISODE is required ONLY to build the ldap <-> X.500 server (ldapd) ##
73 ## If you don't want to build it, you can skip this section. ##
74 #############################################################################
76 # To build the ldap server, uncomment the HAVEISODE line,
77 # and the section describing build settings for your version of isode.
80 # If you compiled ISODE with TURBO_DISK defined, uncomment this
81 #ISODETURBOLIBS = -lgdbm
82 # uncomment these to have ldapd "pretty print" protocol elements w/debugging
83 #PEPSY_DUMP=-DPEPSY_DUMP
84 #PEPSY=/usr/local/ic/bin/pepsy
85 # uncommment this line to have ldapd load PP syntax handlers
86 # you'll also need to add -lpp to ISODEBASELIBS below
87 #LDAP_USE_PP=-DLDAP_USE_PP
88 # uncomment NO_SETPROCTITLE to have ldapd NOT change its title
89 #NO_SETPROCTITLE=-DNOSETPROCTITLE
91 # ISODE Consortium release build settings
92 # You should change the next line so that ICRELEASE matches the (integer)
93 # version number of whatever IC release you have, e.g. 1, 2, or 3 and
94 # also uncomment the next 5 lines.
95 #ICRELEASE=-DICRELEASE=1
96 #ISODEPACKAGE=-DISODEPACKAGE=IC
97 #ISODEINCLUDEFLAG= -I/usr/local/ic/include/isode -I/usr/local/ic/include
98 #ISODELIBFLAG = -L/usr/local/ic/lib
99 #ISODEBASELIBS = -lisode
101 # Freely available ISODE 8.0 release build settings (uncomment the next 4 lines)
102 #ISODEPACKAGE=-DISODEPACKAGE
103 #ISODEINCLUDEFLAG= -I/usr/local/isode/include
104 #ISODELIBFLAG = -L/usr/local/isode/lib
105 #ISODEBASELIBS = -ldsap -lisode
107 # NEXOR ISODE release build settings (uncomment the next 4 lines)
108 #ISODEPACKAGE=-DISODEPACKAGE=XT
109 #ISODEINCLUDEFLAG= -I/usr/include/isode
110 #ISODELIBFLAG = -L/usr/local/lib -L/usr/sunlink/osi/lib
111 #ISODEBASELIBS = -lxtpp -lresolv -lxtdsap -lxtisode -losi
113 #############################################################################
114 ## If you don't want to run slapd, skip this section. ##
115 #############################################################################
117 # To build slapd (the stand-alone ldap daemon), uncomment the MAKESLAPD
118 # line and select the SLAPD_BACKENDS you want to use. If you enable the
119 # LDBM backend, also select one of the LDBM backends.
122 # remove the defines for backends you don't want to enable
123 SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD
125 # If you have included -DLDAP_LDBM in the SLAPD_BACKENDS line,
126 # which low-level database package to use must be specified. You
127 # may want to overide the platform settings by disabling the lines
128 # below and hardcoding the desired settings.
130 # The four choices: Berkeley db b-tree, Berkeley db hash, GNU dbm, or ndbm.
131 # You will also need to edit the include and lib strings appropriately.
134 # Fallback settings, defaults are set in build/*/Make-platform
135 LDBMBACKEND?=-DLDBM_USE_NDBM
139 # LDBM Hardcode Setting Examples (may require editing)
140 # berkeley db btree package
142 #LDBMBACKEND=-DLDBM_USE_DBBTREE
143 #LDBMINCLUDE=-I/usr/local/db/include
145 # berkeley db hash package
146 #LDBMBACKEND=-DLDBM_USE_DBHASH
147 #LDBMINCLUDE=-I/usr/local/db/include
150 #LDBMBACKEND=-DLDBM_USE_GDBM
151 #LDBMINCLUDE=-I/usr/local/gdbm/include
154 #undef these if you have SLEEPYCAT DB2 installed
155 #LDBMBACKEND=-DLDBM_USE_DBBTREE -DHAVE_SLEEPYCAT_DB2
156 #LDBMINCLUDE=-I/usr/local/include
157 #LDBMLIB=-L/usr/local/lib -ldb
159 # if you want to use a non-default threads package change the defines below
161 # -DPOSIX_THREADS (draft 10 or standard)
162 # -DTHREAD_MIT_PTHREADS (draft 4)
163 # -DTHREAD_NEXT_CTHREADS
164 # -DTHREAD_DCE_PTHREADS
165 # -DTHREAD_SUNOS4_LWP
166 # -DTHREAD_SUNOS5_LWP
167 # and select the appropriate library.
168 #THREADS?=-DNO_THREADS
171 # Locations of auxilary programs
172 # (excepts to below are generally defined in Make-platform)
173 LDAP_SENDMAIL?=/usr/lib/sendmail
174 LDAP_EDITOR?=/usr/ucb/vi
175 LDAP_FINGER?=/usr/ucb/finger
177 # For generation of compressed man pages
178 # (excepts to below are generally defined in Make-platform)
182 #############################################################################
183 ## The following options are used by the xax500 client. If you haven't ##
184 ## retrieved the xax500 source and dropped it into the "clients" ##
185 ## directory, you can skip this section. ##
186 #############################################################################
188 # location of your X include files
189 #XINCLUDES= -I/usr/X11/include
191 # location of your X libraries
192 #XLIBDIRS=-L/usr/X11/lib
194 # include any extra X libraries you need here
195 # the following works with sunos 4 and X11R5
196 #XLIBS = $(XLIBDIRS) -lXm -lXt -lX11
197 # the following has been known to work with Solaris 2.4 and X11R6
198 #XLIBS = $(XLIBDIRS) -lXm -lXext -lSM -lICE -lXpm -lXt -lX11
200 #############################################################################
201 ## If you don't want to do auto-translation of character sets, skip this ##
202 #############################################################################
204 # Otherwise, uncomment this line and set the following options.
205 #STR_TRANSLATION=-DSTR_TRANSLATION
207 # remove the defines for LDAP client library T.61 character translation
208 # you do not need. If you use LDAP_CHARSET_8859, replace the '1' in "88591"
209 # with the number of the particular character set you use. E.g., use "88594"
210 # if you use the ISO 8859-4 chracter set.
211 #LIBLDAP_CHARSETS=-DLDAP_CHARSET_8859="88591"
213 # uncomment one these lines to enable automatic T.61 translation by default
214 #LIBLDAP_DEF_CHARSET=-DLDAP_DEFAULT_CHARSET=LDAP_CHARSET_8859
216 #############################################################################
217 ## General options ##
218 #############################################################################
219 # uncomment this line to enable debugging code (a good idea)
220 LDAP_DEBUG=-DLDAP_DEBUG
222 # uncomment this line to turn on a few U of Michigan specific things
225 # uncomment this line to delete a few printfs in the lber and ldap libraries.
226 #NO_USERINTERFACE=-DNO_USERINTERFACE
228 # uncomment this line to include Connectionless LDAP support
231 # uncomment this line to eliminate local caching support in the libldap
234 # uncomment this line to do reverse lookups (useful for doing ACLs
235 # by host/domain names)
236 LDAP_REVERSE_LOOKUP=-DREVERSE_LOOKUP
238 # uncomment this line to enable support for LDAP referrals in libldap
239 LDAP_REFERRALS=-DLDAP_REFERRALS
241 # uncomment this line to enable ACL by groups
242 # LDAP_ACLGROUP=-DACLGROUP
244 # uncomment these lines to enable support for CRYPT passwords in LDBM.
245 # LDAP_CRYPT=-DLDAP_CRYPT
247 # and comment this line out
250 # uncomment these lines to enable support fro tcp_wrappers in servers.
251 # Requires tcp_wrappers.
252 # LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS -I/usr/local/include
253 # LDAP_TCP_WRAPPERS_LIB=-L/usr/local/lib -lwrap
255 # uncomment this line to use soundex for approximate matches in slapd.
256 # the default is to use the metaphone algorithm.