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 #############################################################################
24 # by default, everything is installed below INSTROOT
25 # servers, config files, etc. are put in ETCDIR
26 # include files get put in INCLUDEDIR
27 # libraries are put in LIBDIR
28 # man pages are put under MANDIR
29 # programs end-users will run are put in BINDIR
33 ETCDIR= $(INSTROOT)/etc/ldap
34 INCLUDEDIR= $(INSTROOT)/include
35 LIBDIR= $(INSTROOT)/lib
36 MANDIR= $(INSTROOT)/man
37 BINDIR= $(INSTROOT)/bin
39 # if you want things to run in a different directory from where they
40 # are installed, set this accordingly (this path gets compiled into a
41 # few binaries). otherwise, leave it alone.
42 RUNTIMEETCDIR?= $(ETCDIR)
44 #############################################################################
45 ## General compiler options ##
46 #############################################################################
47 # Passed to every compile (cc or gcc). This is where you put -O or -g, etc.
51 # Passed to every link (ld). Include -g here if you did in EXTRACFLAGS.
54 #############################################################################
55 ## If you are NOT using Kerberos authentication, you can skip this section.##
56 #############################################################################
58 # Otherwise, to enable kerberos authentication, uncomment KERBEROS (and
59 # AFSKERBEROS if you are running the AFS version of kerberos). Also
60 # uncomment and change the various KRB* lines to point to where the
61 # kerberos libraries and include files are installed at your site.
64 #AFSKERBEROS=-DAFSKERBEROS
65 #KRBINCLUDEFLAG = -I/usr/local/kerberos/include
66 #KRBLIBFLAG = -L/usr/local/kerberos/lib
67 #KRBLIBS = -lkrb -ldes
69 #############################################################################
70 ## ISODE is required ONLY to build the ldap <-> X.500 server (ldapd) ##
71 ## If you don't want to build it, you can skip this section. ##
72 #############################################################################
74 # To build the ldap server, uncomment the HAVEISODE line,
75 # and the section describing build settings for your version of isode.
78 # If you compiled ISODE with TURBO_DISK defined, uncomment this
79 #ISODETURBOLIBS = -lgdbm
80 # uncomment these to have ldapd "pretty print" protocol elements w/debugging
81 #PEPSY_DUMP=-DPEPSY_DUMP
82 #PEPSY=/usr/local/ic/bin/pepsy
83 # uncommment this line to have ldapd load PP syntax handlers
84 # you'll also need to add -lpp to ISODEBASELIBS below
85 #LDAP_USE_PP=-DLDAP_USE_PP
86 # uncomment NO_SETPROCTITLE to have ldapd NOT change its title
87 #NO_SETPROCTITLE=-DNOSETPROCTITLE
89 # ISODE Consortium release build settings
90 # You should change the next line so that ICRELEASE matches the (integer)
91 # version number of whatever IC release you have, e.g. 1, 2, or 3 and
92 # also uncomment the next 5 lines.
93 #ICRELEASE=-DICRELEASE=1
94 #ISODEPACKAGE=-DISODEPACKAGE=IC
95 #ISODEINCLUDEFLAG= -I/usr/local/ic/include/isode -I/usr/local/ic/include
96 #ISODELIBFLAG = -L/usr/local/ic/lib
97 #ISODEBASELIBS = -lisode
99 # Freely available ISODE 8.0 release build settings (uncomment the next 4 lines)
100 #ISODEPACKAGE=-DISODEPACKAGE
101 #ISODEINCLUDEFLAG= -I/usr/local/isode/include
102 #ISODELIBFLAG = -L/usr/local/isode/lib
103 #ISODEBASELIBS = -ldsap -lisode
105 # NEXOR ISODE release build settings (uncomment the next 4 lines)
106 #ISODEPACKAGE=-DISODEPACKAGE=XT
107 #ISODEINCLUDEFLAG= -I/usr/include/isode
108 #ISODELIBFLAG = -L/usr/local/lib -L/usr/sunlink/osi/lib
109 #ISODEBASELIBS = -lxtpp -lresolv -lxtdsap -lxtisode -losi
111 #############################################################################
112 ## If you don't want to run slapd, skip this section. ##
113 #############################################################################
115 # To build slapd (the stand-alone ldap daemon), uncomment the MAKESLAPD
116 # line and select the SLAPD_BACKENDS you want to use. If you enable the
117 # LDBM backend, also select one of the LDBM backends.
120 # remove the defines for backends you don't want to enable
121 SLAPD_BACKENDS= -DLDAP_LDBM # -DLDAP_SHELL -DLDAP_PASSWD
123 # If you have included -DLDAP_LDBM in the SLAPD_BACKENDS line you need
124 # to specify which low-level database package to use. There are
125 # four choices: Berkeley db b-tree, Berkeley db hash, GNU dbm, or ndbm.
126 # You will also need to edit the include and lib strings appropriately.
128 # berkeley db btree package
130 #LDBMBACKEND?=-DLDBM_USE_DBBTREE
131 #LDBMINCLUDE?=-I/usr/local/db/include
133 # berkeley db hash package
134 #LDBMBACKEND?=-DLDBM_USE_DBHASH
135 #LDBMINCLUDE?=-I/usr/local/db/include
138 #LDBMBACKEND?=-DLDBM_USE_GDBM
139 #LDBMINCLUDE?=-I/usr/local/gdbm/include
142 LDBMBACKEND?=-DLDBM_USE_NDBM
145 # if you want to use a non-default threads package change the defines below
147 # -DPOSIX_THREADS (draft 10 or standard)
148 # -DTHREAD_MIT_PTHREADS (draft 4)
149 # -DTHREAD_NEXT_CTHREADS
150 # -DTHREAD_DCE_PTHREADS
151 # -DTHREAD_SUNOS4_LWP
152 # -DTHREAD_SUNOS5_LWP
153 # and select the appropriate library.
154 #THREADS?=-DNO_THREADS
157 #############################################################################
158 ## The following options are used by the xax500 client. If you haven't ##
159 ## retrieved the xax500 source and dropped it into the "clients" ##
160 ## directory, you can skip this section. ##
161 #############################################################################
163 # location of your X include files
164 #XINCLUDES= -I/usr/X11/include
166 # location of your X libraries
167 #XLIBDIRS=-L/usr/X11/lib
169 # include any extra X libraries you need here
170 # the following works with sunos 4 and X11R5
171 #XLIBS = $(XLIBDIRS) -lXm -lXt -lX11
172 # the following has been known to work with Solaris 2.4 and X11R6
173 #XLIBS = $(XLIBDIRS) -lXm -lXext -lSM -lICE -lXpm -lXt -lX11
175 #############################################################################
176 ## If you don't want to do auto-translation of character sets, skip this ##
177 #############################################################################
179 # Otherwise, uncomment this line and set the following options.
180 #STR_TRANSLATION=-DSTR_TRANSLATION
182 # remove the defines for LDAP client library T.61 character translation
183 # you do not need. If you use LDAP_CHARSET_8859, replace the '1' in "88591"
184 # with the number of the particular character set you use. E.g., use "88594"
185 # if you use the ISO 8859-4 chracter set.
186 #LIBLDAP_CHARSETS=-DLDAP_CHARSET_8859="88591"
188 # uncomment one these lines to enable automatic T.61 translation by default
189 #LIBLDAP_DEF_CHARSET=-DLDAP_DEFAULT_CHARSET=LDAP_CHARSET_8859
191 #############################################################################
192 ## General options ##
193 #############################################################################
194 # uncomment this line to enable debugging code (a good idea)
195 LDAP_DEBUG=-DLDAP_DEBUG
197 # uncomment this line to turn on a few U of Michigan specific things
200 # uncomment this line to delete a few printfs in the lber and ldap libraries.
201 #NO_USERINTERFACE=-DNO_USERINTERFACE
203 # uncomment this line to include Connectionless LDAP support
206 # uncomment this line to eliminate local caching support in the libldap
209 # uncomment this line to enable support for LDAP referrals in libldap
210 LDAP_REFERRALS=-DLDAP_REFERRALS
212 # uncomment these lines to enable support for CRYPT passwords in LDBM.
213 LDAP_CRYPT=-DLDAP_CRYPT
214 LDAP_CRYPT_LIB=-lcrypt
216 # uncomment these lines to enable support fro tcp_wrappers in servers.
217 # Requires tcp_wrappers.
218 LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS -I/usr/local/include
219 LDAP_TCP_WRAPPERS_LIB=-L/usr/local/lib -lwrap
221 # uncomment this line to use soundex for approximate matches in slapd.
222 # the default is to use the metaphone algorithm.