]> git.sur5r.net Git - openldap/blob - Make-common
Add ACL group code.
[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 # -DACLGROUP
49 # EXTRACFLAGS=-O
50 # Passed to every link (ld).  Include -g here if you did in EXTRACFLAGS.
51 EXTRALDFLAGS=-g
52
53 REGEXLIB?=
54
55 #############################################################################
56 ## If you are NOT using Kerberos authentication, you can skip this section.##
57 #############################################################################
58 #
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.
63 #
64 #KERBEROS=-DKERBEROS
65 #AFSKERBEROS=-DAFSKERBEROS
66 #KRBINCLUDEFLAG = -I/usr/local/kerberos/include
67 #KRBLIBFLAG     = -L/usr/local/kerberos/lib
68 #KRBLIBS                = -lkrb -ldes
69
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 #############################################################################
74 #
75 # To build the ldap server, uncomment the HAVEISODE line,
76 # and the section describing build settings for your version of isode.
77 #
78 #HAVEISODE = yes
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
89 #
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
99 #
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
105 #
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
111
112 #############################################################################
113 ## If you don't want to run slapd, skip this section.                      ##
114 #############################################################################
115 #
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.
119 MAKESLAPD= yes
120 #
121 # remove the defines for backends you don't want to enable 
122 SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD
123 #
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.
128 #
129 # berkeley db btree package
130 LDBMBACKEND=-DLDBM_USE_DBBTREE
131 LDBMINCLUDE=-I/usr/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 #
144 # if you want to use a non-default threads package change these lines
145 #THREADS=-DPOSIX_THREADS
146 #THREADSLIB= -pthread
147
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 #############################################################################
153 #
154 # location of your X include files
155 #XINCLUDES= -I/usr/X11/include
156 #
157 # location of your X libraries
158 #XLIBDIRS=-L/usr/X11/lib
159 #
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
165
166 #############################################################################
167 ## If you don't want to do auto-translation of character sets, skip this   ##
168 #############################################################################
169 #
170 # Otherwise, uncomment this line and set the following options.
171 #STR_TRANSLATION=-DSTR_TRANSLATION
172
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"
178
179 # uncomment one these lines to enable automatic T.61 translation by default
180 #LIBLDAP_DEF_CHARSET=-DLDAP_DEFAULT_CHARSET=LDAP_CHARSET_8859
181
182 #############################################################################
183 ## General options                                                         ##
184 #############################################################################
185 # uncomment this line to enable debugging code (a good idea)
186 LDAP_DEBUG=-DLDAP_DEBUG
187
188 # uncomment this line to turn on a few U of Michigan specific things
189 #UOFM=-DUOFM
190
191 # uncomment this line to delete a few printfs in the lber and ldap libraries.
192 #NO_USERINTERFACE=-DNO_USERINTERFACE
193
194 # uncomment this line to include Connectionless LDAP support
195 #CLDAP=-DCLDAP
196
197 # uncomment this line to eliminate local caching support in the libldap
198 #NO_CACHE=-DNO_CACHE
199
200 # uncomment this line to enable support for LDAP referrals in libldap
201 LDAP_REFERRALS=-DLDAP_REFERRALS
202
203 # uncomment these lines to enable support for CRYPT passwords in LDBM.
204 #LDAP_CRYPT=-DLDAP_CRYPT
205 #LDAP_CRYPT_LIB=-lcrypt
206
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
211
212 # uncomment this line to use soundex for approximate matches in slapd.
213 # the default is to use the metaphone algorithm.
214 #PHONETIC=-DSOUNDEX