]> git.sur5r.net Git - openldap/blob - Make-common.dist
Pretty up the make depend code
[openldap] / Make-common.dist
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 # 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
32 #
33 # Per platform defaults override these.
34 #
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)
45
46 #############################################################################
47 ## General compiler options                                                ##
48 #############################################################################
49 # Passed to every compile (cc or gcc).  This is where you put -O or -g, etc.
50 EXTRACFLAGS=-O -g
51 #EXTRACFLAGS=-O
52 #EXTRACFLAGS=-g
53 # Passed to every link (ld).  Include -g here if you did in EXTRACFLAGS.
54 EXTRALDFLAGS=-g
55
56 #############################################################################
57 ## If you are NOT using Kerberos authentication, you can skip this section.##
58 #############################################################################
59 #
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.
64 #
65 #KERBEROS=-DKERBEROS
66 #AFSKERBEROS=-DAFSKERBEROS
67 #KRBINCLUDEFLAG = -I/usr/local/kerberos/include
68 #KRBLIBFLAG     = -L/usr/local/kerberos/lib
69 #KRBLIBS                = -lkrb -ldes
70
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 #############################################################################
75 #
76 # To build the ldap server, uncomment the HAVEISODE line,
77 # and the section describing build settings for your version of isode.
78 #
79 #HAVEISODE = yes
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
90 #
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
100 #
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
106 #
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
112
113 #############################################################################
114 ## If you don't want to run slapd, skip this section.                      ##
115 #############################################################################
116 #
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.
120 MAKESLAPD= yes
121 #
122 # remove the defines for backends you don't want to enable 
123 SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD
124 #
125 # If you have included -DLDAP_LDBM in the SLAPD_BACKENDS line you need
126 # to specify which low-level database package to use.  There are
127 # four choices: Berkeley db b-tree, Berkeley db hash, GNU dbm, or ndbm.
128 # You will also need to edit the include and lib strings appropriately.
129 #
130 # berkeley db btree package
131 #LDBMLIB=-ldb
132 #LDBMBACKEND?=-DLDBM_USE_DBBTREE
133 #LDBMINCLUDE?=-I/usr/local/db/include
134 #LDBMLIB?=-ldb
135 # berkeley db hash package
136 #LDBMBACKEND?=-DLDBM_USE_DBHASH
137 #LDBMINCLUDE?=-I/usr/local/db/include
138 #LDBMLIB?=-ldb
139 # gnu dbm (gdbm)
140 #LDBMBACKEND?=-DLDBM_USE_GDBM
141 #LDBMINCLUDE?=-I/usr/local/gdbm/include
142 #LDBMLIB?=-lgdbm
143 # standard unix ndbm
144 LDBMBACKEND?=-DLDBM_USE_NDBM
145 LDBMINCLUDE?=
146 LDBMLIB?=
147
148 #undef these if you have SLEEPYCAT DB2 installed
149 #LDBMBACKEND=-DLDBM_USE_DBBTREE -DHAVE_SLEEPYCAT_DB2
150 #LDBMINCLUDE=-I/usr/local/include
151 #LDBMLIB=-L/usr/local/lib -ldb
152
153 # if you want to use a non-default threads package change the defines below
154 # to one of:
155 #       -DPOSIX_THREADS         (draft 10 or standard)
156 #       -DTHREAD_MIT_PTHREADS   (draft 4)
157 #       -DTHREAD_NEXT_CTHREADS
158 #       -DTHREAD_DCE_PTHREADS
159 #       -DTHREAD_SUNOS4_LWP
160 #       -DTHREAD_SUNOS5_LWP
161 # and select the appropriate library.
162 #THREADS?=-DNO_THREADS
163 #THREADSLIB?=
164
165 # Locations of auxilary programs
166 # (excepts to below are generally defined in Make-platform)
167 LDAP_SENDMAIL?=/usr/lib/sendmail
168 LDAP_EDITOR?=/usr/ucb/vi
169 LDAP_FINGER?=/usr/ucb/finger
170
171 # For generation of compressed man pages
172 # (excepts to below are generally defined in Make-platform)
173 MANCOMPRESS?=cat
174 MANCOMPRESSSUFFIX?=
175
176 #############################################################################
177 ## The following options are used by the xax500 client.  If you haven't    ##
178 ## retrieved the xax500 source and dropped it into the "clients"           ##
179 ## directory, you can skip this section.                                   ##
180 #############################################################################
181 #
182 # location of your X include files
183 #XINCLUDES= -I/usr/X11/include
184 #
185 # location of your X libraries
186 #XLIBDIRS=-L/usr/X11/lib
187 #
188 # include any extra X libraries you need here
189 # the following works with sunos 4 and X11R5
190 #XLIBS = $(XLIBDIRS) -lXm -lXt -lX11
191 # the following has been known to work with Solaris 2.4 and X11R6
192 #XLIBS = $(XLIBDIRS) -lXm -lXext -lSM -lICE -lXpm -lXt -lX11
193
194 #############################################################################
195 ## If you don't want to do auto-translation of character sets, skip this   ##
196 #############################################################################
197 #
198 # Otherwise, uncomment this line and set the following options.
199 #STR_TRANSLATION=-DSTR_TRANSLATION
200
201 # remove the defines for LDAP client library T.61 character translation
202 # you do not need.  If you use LDAP_CHARSET_8859, replace the '1' in "88591"
203 # with the number of the particular character set you use.  E.g., use "88594"
204 # if you use the ISO 8859-4 chracter set.
205 #LIBLDAP_CHARSETS=-DLDAP_CHARSET_8859="88591"
206
207 # uncomment one these lines to enable automatic T.61 translation by default
208 #LIBLDAP_DEF_CHARSET=-DLDAP_DEFAULT_CHARSET=LDAP_CHARSET_8859
209
210 #############################################################################
211 ## General options                                                         ##
212 #############################################################################
213 # uncomment this line to enable debugging code (a good idea)
214 LDAP_DEBUG=-DLDAP_DEBUG
215
216 # uncomment this line to turn on a few U of Michigan specific things
217 #UOFM=-DUOFM
218
219 # uncomment this line to delete a few printfs in the lber and ldap libraries.
220 #NO_USERINTERFACE=-DNO_USERINTERFACE
221
222 # uncomment this line to include Connectionless LDAP support
223 #CLDAP=-DCLDAP
224
225 # uncomment this line to eliminate local caching support in the libldap
226 #NO_CACHE=-DNO_CACHE
227
228 # uncomment this line to do reverse lookups (useful for doing ACLs
229 # by host/domain names)
230 LDAP_REVERSE_LOOKUP=-DREVERSE_LOOKUP
231
232 # uncomment this line to enable support for LDAP referrals in libldap
233 LDAP_REFERRALS=-DLDAP_REFERRALS
234
235 # uncomment these lines to enable support for CRYPT passwords in LDBM.
236 # LDAP_CRYPT=-DLDAP_CRYPT
237 # LDAP_CRYPT_LIB?=
238 # and comment this line out
239 LDAP_CRYPT_LIB=
240
241 # uncomment these lines to enable support fro tcp_wrappers in servers.
242 # Requires tcp_wrappers.
243 # LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS -I/usr/local/include
244 # LDAP_TCP_WRAPPERS_LIB=-L/usr/local/lib -lwrap
245
246 # uncomment this line to use soundex for approximate matches in slapd.
247 # the default is to use the metaphone algorithm.
248 #PHONETIC=-DSOUNDEX