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.
48 # EXTRACFLAGS=-O -g # -DACLGROUP
50 # Passed to every link (ld). Include -g here if you did in EXTRACFLAGS.
55 #############################################################################
56 ## If you are NOT using Kerberos authentication, you can skip this section.##
57 #############################################################################
59 # Otherwise, to enable kerberos authentication, uncomment KERBEROS (and
60 # AFSKERBEROS if you are running the AFS version of kerberos). Also
61 # uncomment and change the various KRB* lines to point to where the
62 # kerberos libraries and include files are installed at your site.
65 #AFSKERBEROS=-DAFSKERBEROS
66 #KRBINCLUDEFLAG = -I/usr/local/kerberos/include
67 #KRBLIBFLAG = -L/usr/local/kerberos/lib
68 #KRBLIBS = -lkrb -ldes
70 #############################################################################
71 ## ISODE is required ONLY to build the ldap <-> X.500 server (ldapd) ##
72 ## If you don't want to build it, you can skip this section. ##
73 #############################################################################
75 # To build the ldap server, uncomment the HAVEISODE line,
76 # and the section describing build settings for your version of isode.
79 # If you compiled ISODE with TURBO_DISK defined, uncomment this
80 #ISODETURBOLIBS = -lgdbm
81 # uncomment these to have ldapd "pretty print" protocol elements w/debugging
82 #PEPSY_DUMP=-DPEPSY_DUMP
83 #PEPSY=/usr/local/ic/bin/pepsy
84 # uncommment this line to have ldapd load PP syntax handlers
85 # you'll also need to add -lpp to ISODEBASELIBS below
86 #LDAP_USE_PP=-DLDAP_USE_PP
87 # uncomment NO_SETPROCTITLE to have ldapd NOT change its title
88 #NO_SETPROCTITLE=-DNOSETPROCTITLE
90 # ISODE Consortium release build settings
91 # You should change the next line so that ICRELEASE matches the (integer)
92 # version number of whatever IC release you have, e.g. 1, 2, or 3 and
93 # also uncomment the next 5 lines.
94 #ICRELEASE=-DICRELEASE=1
95 #ISODEPACKAGE=-DISODEPACKAGE=IC
96 #ISODEINCLUDEFLAG= -I/usr/local/ic/include/isode -I/usr/local/ic/include
97 #ISODELIBFLAG = -L/usr/local/ic/lib
98 #ISODEBASELIBS = -lisode
100 # Freely available ISODE 8.0 release build settings (uncomment the next 4 lines)
101 #ISODEPACKAGE=-DISODEPACKAGE
102 #ISODEINCLUDEFLAG= -I/usr/local/isode/include
103 #ISODELIBFLAG = -L/usr/local/isode/lib
104 #ISODEBASELIBS = -ldsap -lisode
106 # NEXOR ISODE release build settings (uncomment the next 4 lines)
107 #ISODEPACKAGE=-DISODEPACKAGE=XT
108 #ISODEINCLUDEFLAG= -I/usr/include/isode
109 #ISODELIBFLAG = -L/usr/local/lib -L/usr/sunlink/osi/lib
110 #ISODEBASELIBS = -lxtpp -lresolv -lxtdsap -lxtisode -losi
112 #############################################################################
113 ## If you don't want to run slapd, skip this section. ##
114 #############################################################################
116 # To build slapd (the stand-alone ldap daemon), uncomment the MAKESLAPD
117 # line and select the SLAPD_BACKENDS you want to use. If you enable the
118 # LDBM backend, also select one of the LDBM backends.
121 # remove the defines for backends you don't want to enable
122 SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD
124 # If you have included -DLDAP_LDBM in the SLAPD_BACKENDS line you need
125 # to specify which low-level database package to use. There are
126 # four choices: Berkeley db b-tree, Berkeley db hash, GNU dbm, or ndbm.
127 # You will also need to edit the include and lib strings appropriately.
129 # berkeley db btree package
130 LDBMBACKEND=-DLDBM_USE_DBBTREE
131 LDBMINCLUDE=-I/usr/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
144 # if you want to use a non-default threads package change these lines
145 #THREADS=-DPOSIX_THREADS
146 #THREADSLIB= -pthread
148 #############################################################################
149 ## The following options are used by the xax500 client. If you haven't ##
150 ## retrieved the xax500 source and dropped it into the "clients" ##
151 ## directory, you can skip this section. ##
152 #############################################################################
154 # location of your X include files
155 #XINCLUDES= -I/usr/X11/include
157 # location of your X libraries
158 #XLIBDIRS=-L/usr/X11/lib
160 # include any extra X libraries you need here
161 # the following works with sunos 4 and X11R5
162 #XLIBS = $(XLIBDIRS) -lXm -lXt -lX11
163 # the following has been known to work with Solaris 2.4 and X11R6
164 #XLIBS = $(XLIBDIRS) -lXm -lXext -lSM -lICE -lXpm -lXt -lX11
166 #############################################################################
167 ## If you don't want to do auto-translation of character sets, skip this ##
168 #############################################################################
170 # Otherwise, uncomment this line and set the following options.
171 #STR_TRANSLATION=-DSTR_TRANSLATION
173 # remove the defines for LDAP client library T.61 character translation
174 # you do not need. If you use LDAP_CHARSET_8859, replace the '1' in "88591"
175 # with the number of the particular character set you use. E.g., use "88594"
176 # if you use the ISO 8859-4 chracter set.
177 #LIBLDAP_CHARSETS=-DLDAP_CHARSET_8859="88591"
179 # uncomment one these lines to enable automatic T.61 translation by default
180 #LIBLDAP_DEF_CHARSET=-DLDAP_DEFAULT_CHARSET=LDAP_CHARSET_8859
182 #############################################################################
183 ## General options ##
184 #############################################################################
185 # uncomment this line to enable debugging code (a good idea)
186 LDAP_DEBUG=-DLDAP_DEBUG
188 # uncomment this line to turn on a few U of Michigan specific things
191 # uncomment this line to delete a few printfs in the lber and ldap libraries.
192 #NO_USERINTERFACE=-DNO_USERINTERFACE
194 # uncomment this line to include Connectionless LDAP support
197 # uncomment this line to eliminate local caching support in the libldap
200 # uncomment this line to enable support for LDAP referrals in libldap
201 LDAP_REFERRALS=-DLDAP_REFERRALS
203 # uncomment these lines to enable support for CRYPT passwords in LDBM.
204 #LDAP_CRYPT=-DLDAP_CRYPT
205 #LDAP_CRYPT_LIB=-lcrypt
207 # uncomment these lines to enable support fro tcp_wrappers in servers.
208 # Requires tcp_wrappers.
209 #LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS -I/usr/local/include
210 #LDAP_TCP_WRAPPERS_LIB=-L/usr/local/lib -lwrap
212 # uncomment this line to use soundex for approximate matches in slapd.
213 # the default is to use the metaphone algorithm.