]> git.sur5r.net Git - openldap/blob - Make-common
Treat SunOS5.6 as a separate platform due to thread lib differences
[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 # Passed to every link (ld).  Include -g here if you did in EXTRACFLAGS.
51 EXTRALDFLAGS=-g
52
53 #############################################################################
54 ## If you are NOT using Kerberos authentication, you can skip this section.##
55 #############################################################################
56 #
57 # Otherwise, to enable kerberos authentication, uncomment KERBEROS (and
58 # AFSKERBEROS if you are running the AFS version of kerberos).  Also
59 # uncomment and change the various KRB* lines to point to where the
60 # kerberos libraries and include files are installed at your site.
61 #
62 #KERBEROS=-DKERBEROS
63 #AFSKERBEROS=-DAFSKERBEROS
64 #KRBINCLUDEFLAG = -I/usr/local/kerberos/include
65 #KRBLIBFLAG     = -L/usr/local/kerberos/lib
66 #KRBLIBS                = -lkrb -ldes
67
68 #############################################################################
69 ## ISODE is required ONLY to build the ldap <-> X.500 server (ldapd)       ##
70 ## If you don't want to build it, you can skip this section.               ##
71 #############################################################################
72 #
73 # To build the ldap server, uncomment the HAVEISODE line,
74 # and the section describing build settings for your version of isode.
75 #
76 #HAVEISODE = yes
77 # If you compiled ISODE with TURBO_DISK defined, uncomment this
78 #ISODETURBOLIBS = -lgdbm
79 # uncomment these to have ldapd "pretty print" protocol elements w/debugging
80 #PEPSY_DUMP=-DPEPSY_DUMP
81 #PEPSY=/usr/local/ic/bin/pepsy
82 # uncommment this line to have ldapd load PP syntax handlers
83 # you'll also need to add -lpp to ISODEBASELIBS below
84 #LDAP_USE_PP=-DLDAP_USE_PP
85 # uncomment NO_SETPROCTITLE to have ldapd NOT change its title
86 #NO_SETPROCTITLE=-DNOSETPROCTITLE
87 #
88 # ISODE Consortium release build settings
89 # You should change the next line so that ICRELEASE matches the (integer)
90 # version number of whatever IC release you have, e.g. 1, 2, or 3 and
91 # also uncomment the next 5 lines.
92 #ICRELEASE=-DICRELEASE=1
93 #ISODEPACKAGE=-DISODEPACKAGE=IC
94 #ISODEINCLUDEFLAG= -I/usr/local/ic/include/isode -I/usr/local/ic/include
95 #ISODELIBFLAG   = -L/usr/local/ic/lib
96 #ISODEBASELIBS  = -lisode
97 #
98 # Freely available ISODE 8.0 release build settings (uncomment the next 4 lines)
99 #ISODEPACKAGE=-DISODEPACKAGE
100 #ISODEINCLUDEFLAG= -I/usr/local/isode/include
101 #ISODELIBFLAG   = -L/usr/local/isode/lib
102 #ISODEBASELIBS  = -ldsap -lisode
103 #
104 # NEXOR ISODE release build settings (uncomment the next 4 lines)
105 #ISODEPACKAGE=-DISODEPACKAGE=XT
106 #ISODEINCLUDEFLAG= -I/usr/include/isode
107 #ISODELIBFLAG   = -L/usr/local/lib -L/usr/sunlink/osi/lib
108 #ISODEBASELIBS  = -lxtpp -lresolv -lxtdsap -lxtisode -losi
109
110 #############################################################################
111 ## If you don't want to run slapd, skip this section.                      ##
112 #############################################################################
113 #
114 # To build slapd (the stand-alone ldap daemon), uncomment the MAKESLAPD
115 # line and select the SLAPD_BACKENDS you want to use. If you enable the
116 # LDBM backend, also select one of the LDBM backends.
117 MAKESLAPD= yes
118 #
119 # remove the defines for backends you don't want to enable 
120 SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD
121 #
122 # If you have included -DLDAP_LDBM in the SLAPD_BACKENDS line you need
123 # to specify which low-level database package to use.  There are
124 # four choices: Berkeley db b-tree, Berkeley db hash, GNU dbm, or ndbm.
125 # You will also need to edit the include and lib strings appropriately.
126 #
127 # berkeley db btree package
128 LDBMBACKEND=-DLDBM_USE_DBBTREE
129 LDBMINCLUDE=-I/usr/include
130 #LDBMLIB=-ldb
131 # berkeley db hash package
132 #LDBMBACKEND=-DLDBM_USE_DBHASH
133 #LDBMINCLUDE=-I/usr/local/db/include
134 #LDBMLIB=-ldb
135 # gnu dbm (gdbm)
136 #LDBMBACKEND=-DLDBM_USE_GDBM
137 #LDBMINCLUDE=-I/usr/local/gdbm/include
138 #LDBMLIB=-lgdbm
139 # standard unix ndbm
140 #LDBMBACKEND=-DLDBM_USE_NDBM
141 #
142 # if you want to use a non-default threads package change these lines
143 #THREADS=-DPOSIX_THREADS
144 #THREADSLIB= -pthread
145
146 #############################################################################
147 ## The following options are used by the xax500 client.  If you haven't    ##
148 ## retrieved the xax500 source and dropped it into the "clients"           ##
149 ## directory, you can skip this section.                                   ##
150 #############################################################################
151 #
152 # location of your X include files
153 #XINCLUDES= -I/usr/X11/include
154 #
155 # location of your X libraries
156 #XLIBDIRS=-L/usr/X11/lib
157 #
158 # include any extra X libraries you need here
159 # the following works with sunos 4 and X11R5
160 #XLIBS = $(XLIBDIRS) -lXm -lXt -lX11
161 # the following has been known to work with Solaris 2.4 and X11R6
162 #XLIBS = $(XLIBDIRS) -lXm -lXext -lSM -lICE -lXpm -lXt -lX11
163
164 #############################################################################
165 ## If you don't want to do auto-translation of character sets, skip this   ##
166 #############################################################################
167 #
168 # Otherwise, uncomment this line and set the following options.
169 #STR_TRANSLATION=-DSTR_TRANSLATION
170
171 # remove the defines for LDAP client library T.61 character translation
172 # you do not need.  If you use LDAP_CHARSET_8859, replace the '1' in "88591"
173 # with the number of the particular character set you use.  E.g., use "88594"
174 # if you use the ISO 8859-4 chracter set.
175 #LIBLDAP_CHARSETS=-DLDAP_CHARSET_8859="88591"
176
177 # uncomment one these lines to enable automatic T.61 translation by default
178 #LIBLDAP_DEF_CHARSET=-DLDAP_DEFAULT_CHARSET=LDAP_CHARSET_8859
179
180 #############################################################################
181 ## General options                                                         ##
182 #############################################################################
183 # uncomment this line to enable debugging code (a good idea)
184 LDAP_DEBUG=-DLDAP_DEBUG
185
186 # uncomment this line to turn on a few U of Michigan specific things
187 #UOFM=-DUOFM
188
189 # uncomment this line to delete a few printfs in the lber and ldap libraries.
190 #NO_USERINTERFACE=-DNO_USERINTERFACE
191
192 # uncomment this line to include Connectionless LDAP support
193 #CLDAP=-DCLDAP
194
195 # uncomment this line to eliminate local caching support in the libldap
196 #NO_CACHE=-DNO_CACHE
197
198 # uncomment this line to enable support for LDAP referrals in libldap
199 LDAP_REFERRALS=-DLDAP_REFERRALS
200
201 # uncomment this line to enable support for CRYPT passwords in LDBM.
202 # Requires UNIX crypt(3), you may have to add -lcrypt (or whatever)
203 # to your PLATFORMLIBS  (build/platform/your-platform)
204 #LDAP_CRYPT=-DLDAP_CRYPT
205
206 # uncomment this line to use soundex for approximate matches in slapd.
207 # the default is to use the metaphone algorithm.
208 #PHONETIC=-DSOUNDEX