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
32 ETCDIR= $(INSTROOT)/etc
33 INCLUDEDIR= $(INSTROOT)/include
34 LIBDIR= $(INSTROOT)/lib
35 MANDIR= $(INSTROOT)/man
36 BINDIR= $(INSTROOT)/bin
38 # if you want things to run in a different directory from where they
39 # are installed, set this accordingly (this path gets compiled into a
40 # few binaries). otherwise, leave it alone.
41 RUNTIMEETCDIR= $(ETCDIR)
43 #############################################################################
44 ## General compiler options ##
45 #############################################################################
46 # Passed to every compile (cc or gcc). This is where you put -O or -g, etc.
48 # Passed to every link (ld). Include -g here if you did in EXTRACFLAGS.
51 #############################################################################
52 ## If you are NOT using Kerberos authentication, you can skip this section.##
53 #############################################################################
55 # Otherwise, to enable kerberos authentication, uncomment KERBEROS (and
56 # AFSKERBEROS if you are running the AFS version of kerberos). Also
57 # uncomment and change the various KRB* lines to point to where the
58 # kerberos libraries and include files are installed at your site.
61 AFSKERBEROS=-DAFSKERBEROS
62 KRBINCLUDEFLAG = -I/usr/local/kerberos/include
63 KRBLIBFLAG = -L/usr/local/kerberos/lib
66 #############################################################################
67 ## ISODE is required ONLY to build the ldap <-> X.500 server (ldapd) ##
68 ## If you don't want to build it, you can skip this section. ##
69 #############################################################################
71 # To build the ldap server, uncomment the HAVEISODE line,
72 # and the section describing build settings for your version of isode.
75 # If you compiled ISODE with TURBO_DISK defined, uncomment this
76 #ISODETURBOLIBS = -lgdbm
77 # uncomment these to have ldapd "pretty print" protocol elements w/debugging
78 PEPSY_DUMP=-DPEPSY_DUMP
79 PEPSY=/usr/local/ic/bin/pepsy
80 # uncommment this line to have ldapd load PP syntax handlers
81 # you'll also need to add -lpp to ISODEBASELIBS below
82 #LDAP_USE_PP=-DLDAP_USE_PP
83 # uncomment NO_SETPROCTITLE to have ldapd NOT change its title
84 #NO_SETPROCTITLE=-DNOSETPROCTITLE
86 # ISODE Consortium release build settings
87 # You should change the next line so that ICRELEASE matches the (integer)
88 # version number of whatever IC release you have, e.g. 1, 2, or 3 and
89 # also uncomment the next 5 lines.
90 ICRELEASE=-DICRELEASE=2
91 ISODEPACKAGE=-DISODEPACKAGE=IC
92 ISODEINCLUDEFLAG= -I/usr/local/ic/include
93 ISODELIBFLAG = -L/usr/local/ic/lib
94 ISODEBASELIBS = -lisode
96 # Freely available ISODE 8.0 release build settings (uncomment the next 4 lines)
97 #ISODEPACKAGE=-DISODEPACKAGE
98 #ISODEINCLUDEFLAG= -I/usr/local/isode/include
99 #ISODELIBFLAG = -L/usr/local/isode/lib
100 #ISODEBASELIBS = -ldsap -lisode
102 # NEXOR ISODE release build settings (uncomment the next 4 lines)
103 #ISODEPACKAGE=-DISODEPACKAGE=XT
104 #ISODEINCLUDEFLAG= -I/usr/include/isode
105 #ISODELIBFLAG = -L/usr/local/lib -L/usr/sunlink/osi/lib
106 #ISODEBASELIBS = -lxtpp -lresolv -lxtdsap -lxtisode -losi
108 #############################################################################
109 ## If you don't want to run slapd, skip this section. ##
110 #############################################################################
112 # To build slapd (the stand-alone ldap daemon), uncomment the MAKESLAPD
113 # line and select the SLAPD_BACKENDS you want to use. If you enable the
114 # LDBM backend, also select one of the LDBM backends.
117 # remove the defines for backends you don't want to enable
118 SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD
120 # If you have included -DLDAP_LDBM in the SLAPD_BACKENDS line you need
121 # to specify which low-level database package to use. There are
122 # four choices: Berkeley db b-tree, Berkeley db hash, GNU dbm, or ndbm.
124 # berkeley db btree package
125 LDBMBACKEND=-DLDBM_USE_DBBTREE
126 LDBMINCLUDE=-I/usr/local/include
128 # berkeley db hash package
129 #LDBMBACKEND=-DLDBM_USE_DBHASH
130 #LDBMINCLUDE=-I/usr/local/include
133 #LDBMBACKEND=-DLDBM_USE_GDBM
134 #LDBMINCLUDE=-I/usr/local/include
137 #LDBMBACKEND=-DLDBM_USE_NDBM
139 # if you want to use a non-default threads package change these lines
140 #THREADS=-DNO_THREADS
143 #############################################################################
144 ## The following options are used by the xax500 client. If you haven't ##
145 ## retrieved the xax500 source and dropped it into the "clients" ##
146 ## directory, you can skip this section. ##
147 #############################################################################
149 # location of your X include files
150 #XINCLUDES= -I/usr/local/X11/include
152 # location of your X libraries
153 #XLIBDIRS=-L/usr/local/X11/lib
155 # include any extra X libraries you need here
156 # the following works with sunos 4 and X11R5
157 #XLIBS = $(XLIBDIRS) -lXm -lXt -lX11
158 # the following has been known to work with Solaris 2.4 and X11R6
159 #XLIBS = $(XLIBDIRS) -lXm -lXext -lSM -lICE -lXpm -lXt -lX11
161 #############################################################################
162 ## If you don't want to do auto-translation of character sets, skip this ##
163 #############################################################################
165 # Otherwise, uncomment this line and set the following options.
166 #STR_TRANSLATION=-DSTR_TRANSLATION
168 # remove the defines for LDAP client library T.61 character translation
169 # you do not need. If you use LDAP_CHARSET_8859, replace the '1' in "88591"
170 # with the number of the particular character set you use. E.g., use "88594"
171 # if you use the ISO 8859-4 chracter set.
172 #LIBLDAP_CHARSETS=-DLDAP_CHARSET_8859="88591"
174 # uncomment one these lines to enable automatic T.61 translation by default
175 #LIBLDAP_DEF_CHARSET=-DLDAP_DEFAULT_CHARSET=LDAP_CHARSET_8859
177 #############################################################################
178 ## General options ##
179 #############################################################################
180 # uncomment this line to enable debugging code (a good idea)
181 LDAP_DEBUG=-DLDAP_DEBUG
183 # uncomment this line to turn on a few U of Michigan specific things
186 # uncomment this line to delete a few printfs in the lber and ldap libraries.
187 #NO_USERINTERFACE=-DNO_USERINTERFACE
189 # uncomment this line to include Connectionless LDAP support
192 # uncomment this line to eliminate local caching support in the libldap
195 # uncomment this line to enable support for LDAP referrals in libldap
196 LDAP_REFERRALS=-DLDAP_REFERRALS
198 # uncomment this line to use soundex for approximate matches in slapd.
199 # the default is to use the metaphone algorithm.