]> git.sur5r.net Git - openldap/blob - Make-common
Added slurpd log and extend slurpd sleep to 15 seconds
[openldap] / Make-common
1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1994 Regents of the University of Michigan.
3 # All rights reserved.
4 #
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.
11 #
12 #       LDAP common Make defines (included in all but top-level Makefile)
13 #
14 #-----------------------------------------------------------------------------
15
16 #############################################################################
17 ## Edit the following variables to have appropriate values for your system ##
18 #############################################################################
19
20 #############################################################################
21 ## LDAP install paths                                                      ##
22 #############################################################################
23 #
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
30 #
31 PREFIX?=/usr/local
32 INSTROOT=${PREFIX}
33 ETCDIR= $(INSTROOT)/etc/ldap
34 INCLUDEDIR= $(INSTROOT)/include
35 LIBDIR= $(INSTROOT)/lib
36 MANDIR= $(INSTROOT)/man
37 BINDIR= $(INSTROOT)/bin
38 #
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)
43
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
49 #EXTRACFLAGS=-O
50 EXTRACFLAGS=-g
51 # Passed to every link (ld).  Include -g here if you did in EXTRACFLAGS.
52 EXTRALDFLAGS=-g
53
54 #############################################################################
55 ## If you are NOT using Kerberos authentication, you can skip this section.##
56 #############################################################################
57 #
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.
62 #
63 #KERBEROS=-DKERBEROS
64 #AFSKERBEROS=-DAFSKERBEROS
65 #KRBINCLUDEFLAG = -I/usr/local/kerberos/include
66 #KRBLIBFLAG     = -L/usr/local/kerberos/lib
67 #KRBLIBS                = -lkrb -ldes
68
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 #############################################################################
73 #
74 # To build the ldap server, uncomment the HAVEISODE line,
75 # and the section describing build settings for your version of isode.
76 #
77 #HAVEISODE = yes
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
88 #
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
98 #
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
104 #
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
110
111 #############################################################################
112 ## If you don't want to run slapd, skip this section.                      ##
113 #############################################################################
114 #
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.
118 MAKESLAPD= yes
119 #
120 # remove the defines for backends you don't want to enable 
121 SLAPD_BACKENDS= -DLDAP_LDBM # -DLDAP_SHELL -DLDAP_PASSWD
122 #
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.
127 #
128 # berkeley db btree package
129 #LDBMLIB=-ldb
130 #LDBMBACKEND?=-DLDBM_USE_DBBTREE
131 #LDBMINCLUDE?=-I/usr/local/db/include
132 #LDBMLIB?=-ldb
133 # berkeley db hash package
134 #LDBMBACKEND?=-DLDBM_USE_DBHASH
135 #LDBMINCLUDE?=-I/usr/local/db/include
136 #LDBMLIB?=-ldb
137 # gnu dbm (gdbm)
138 #LDBMBACKEND?=-DLDBM_USE_GDBM
139 #LDBMINCLUDE?=-I/usr/local/gdbm/include
140 #LDBMLIB?=-lgdbm
141 # standard unix ndbm
142 LDBMBACKEND?=-DLDBM_USE_NDBM
143 LDBMINCLUDE?=
144 LDBMLIB?=
145 # if you want to use a non-default threads package change the defines below
146 # to one of:
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
155 #THREADSLIB?=
156
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 #############################################################################
162 #
163 # location of your X include files
164 #XINCLUDES= -I/usr/X11/include
165 #
166 # location of your X libraries
167 #XLIBDIRS=-L/usr/X11/lib
168 #
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
174
175 #############################################################################
176 ## If you don't want to do auto-translation of character sets, skip this   ##
177 #############################################################################
178 #
179 # Otherwise, uncomment this line and set the following options.
180 #STR_TRANSLATION=-DSTR_TRANSLATION
181
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"
187
188 # uncomment one these lines to enable automatic T.61 translation by default
189 #LIBLDAP_DEF_CHARSET=-DLDAP_DEFAULT_CHARSET=LDAP_CHARSET_8859
190
191 #############################################################################
192 ## General options                                                         ##
193 #############################################################################
194 # uncomment this line to enable debugging code (a good idea)
195 LDAP_DEBUG=-DLDAP_DEBUG
196
197 # uncomment this line to turn on a few U of Michigan specific things
198 #UOFM=-DUOFM
199
200 # uncomment this line to delete a few printfs in the lber and ldap libraries.
201 #NO_USERINTERFACE=-DNO_USERINTERFACE
202
203 # uncomment this line to include Connectionless LDAP support
204 #CLDAP=-DCLDAP
205
206 # uncomment this line to eliminate local caching support in the libldap
207 #NO_CACHE=-DNO_CACHE
208
209 # uncomment this line to enable support for LDAP referrals in libldap
210 LDAP_REFERRALS=-DLDAP_REFERRALS
211
212 # uncomment these lines to enable support for CRYPT passwords in LDBM.
213 LDAP_CRYPT=-DLDAP_CRYPT
214 LDAP_CRYPT_LIB=-lcrypt
215
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
220
221 # uncomment this line to use soundex for approximate matches in slapd.
222 # the default is to use the metaphone algorithm.
223 #PHONETIC=-DSOUNDEX