]> git.sur5r.net Git - openldap/blob - build/top.mk
Apply ldbm bind() change to bdb2 code.
[openldap] / build / top.mk
1 ##
2 ## Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
3 ## All rights reserved.
4 ##
5 ## Redistribution and use in source and binary forms are permitted only
6 ## as authorized by the OpenLDAP Public License.  A copy of this
7 ## license is available at http://www.OpenLDAP.org/license.html or
8 ## in file LICENSE in the top-level directory of the distribution.
9 ##
10 PACKAGE= @PACKAGE@
11 VERSION= @VERSION@
12
13 @SET_MAKE@
14 SHELL = /bin/sh
15
16 top_builddir = @top_builddir@
17
18 srcdir = @srcdir@
19 top_srcdir = @top_srcdir@
20 VPATH = @srcdir@
21 prefix = @prefix@
22 exec_prefix = @exec_prefix@
23
24 ldap_subdir = @ldap_subdir@
25 bindir = @bindir@
26 datadir = @datadir@/$(ldap_subdir)
27 includedir = @includedir@
28 infodir = @infodir@
29 libdir = @libdir@
30 libexecdir = @libexecdir@
31 localstatedir = @localstatedir@
32 mandir = @mandir@
33 sbindir = @sbindir@
34 sharedstatedir = @sharedstatedir@
35 sysconfdir = @sysconfdir@/$(ldap_subdir)
36
37 EXEEXT = @EXEEXT@
38 OBJEXT = @OBJEXT@
39
40 INSTALL = @INSTALL@
41 INSTALL_PROGRAM = @INSTALL_PROGRAM@
42 INSTALL_DATA = @INSTALL_DATA@
43 INSTALL_SCRIPT = @INSTALL_SCRIPT@
44
45 LINT = lint
46 5LINT = 5lint
47 MKDEP = $(top_srcdir)/build/mkdep $(MKDEPFLAG) -d "$(srcdir)" -c "$(CC)"
48
49 LIBTOOL = @LIBTOOL@
50 LIBVERSION = 0:0:0
51 LTLINK  = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(LTVERSION)
52 LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) 
53
54 # Misc UNIX commands used in build environment
55 AR = ar
56 AWK = @AWK@
57 BASENAME = basename
58 CAT = cat
59 CHMOD = chmod
60 DATE = date
61 HOSTNAME = uname -n
62 LN = ln
63 LN_S = @LN_S@
64 MAKEINFO = @MAKEINFO@
65 MKDIR = mkdir -p
66 MV = mv
67 PWD = pwd
68 RANLIB = @RANLIB@
69 RM = rm -f
70 SED = sed
71
72 # Misc UNIX commands used in programs
73 EDITOR = @EDITOR@
74 FINGER = @FINGER@
75 SENDMAIL = @SENDMAIL@
76
77 # For manual pages
78 # MANCOMPRESS=@MANCOMPRESS@
79 # MANCOMPRESSSUFFIX=@MANCOMPRESSSUFFIX@
80 MANCOMPRESS=$(CAT)
81 MANCOMPRESSSUFFIX=
82
83 # Version
84 VERSIONFILE = $(top_srcdir)/build/version
85
86 INCLUDEDIR= $(top_srcdir)/include
87 LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
88 LDAP_LIBADIR= $(top_builddir)/libraries
89 LDAP_LIBPATH= -L$(LDAP_LIBADIR)
90
91 LUTIL_LIBS = @LUTIL_LIBS@
92 LDBM_LIBS = @LDBM_LIBS@
93 LTHREAD_LIBS = @LTHREAD_LIBS@
94
95 LDAP_LIBLBER_DEPEND = $(LDAP_LIBDIR)/liblber/liblber.la
96 LDAP_LIBLDAP_DEPEND = $(LDAP_LIBDIR)/libldap/libldap.la
97 LDAP_LIBLDIF_DEPEND = $(LDAP_LIBDIR)/libldif/libldif.a
98 LDAP_LIBLUTIL_DEPEND = $(LDAP_LIBDIR)/liblutil/liblutil.a
99
100 LDAP_LIBAVL_DEPEND = $(LDAP_LIBDIR)/libavl/libavl.a
101 LDAP_LIBLDBM_DEPEND = $(LDAP_LIBDIR)/libldbm/libldbm.a
102 LDAP_LIBLTHREAD_DEPEND = $(LDAP_LIBDIR)/libldap_r/libldap_r.la
103
104 LDAP_LIBDEPEND = $(LDAP_LIBLDAP_DEPEND) $(LDAP_LIBLBER_DEPEND) \
105         $(LDAP_LIBLDIF_DEPEND) $(LDAP_LIBLUTIL_DEPEND)
106 SLAPD_LIBDEPEND = $(LDAP_LIBDEPEND) $(LDAP_LIBAVL_DEPEND) \
107         $(LDAP_LIBLDBM_DEPEND) $(LDAP_LIBLTHREAD_DEPEND)
108
109 # AutoConfig generated 
110 AC_CC   = @CC@
111 AC_CFLAGS = @CFLAGS@
112 AC_DEFS = @CPPFLAGS@ @DEFS@
113 AC_LDFLAGS = @LDFLAGS@
114 AC_LIBS = @LIBS@
115
116 KRB_LIBS = @KRB_LIBS@
117 PERL_CPPFLAGS = @SLAPD_PERL_CPPFLAGS@
118 PERL_LDFLAGS = @SLAPD_PERL_LDFLAGS@
119 TERMCAP_LIBS = @TERMCAP_LIBS@
120
121 LDAPD_LIBS = @LDAPD_LIBS@
122 SLAPD_LIBS = @SLAPD_LIBS@
123 SLURPD_LIBS = @SLURPD_LIBS@
124
125 # Our Defaults
126 CC = $(AC_CC)
127 DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) $(DEFINES)
128 LIBS = $(LDAP_LIBPATH) $(XLIBS) $(XXLIBS) $(AC_LIBS) $(XXXLIBS)
129 CFLAGS = $(AC_CFLAGS) $(DEFS)
130 LDFLAGS = $(AC_LDFLAGS) $(XLDFLAGS)
131
132 all:            all-common all-local FORCE
133 install:        install-common install-local FORCE
134 clean:          clean-common clean-local FORCE
135 veryclean:      veryclean-common veryclean-local FORCE
136 depend:         depend-common depend-local FORCE
137
138 # empty common rules
139 all-common:
140 install-common:
141 clean-common:
142 veryclean-common:       clean-common FORCE
143 depend-common:
144 lint-common:
145 lint5-common:
146
147 # empty local rules
148 all-local:
149 install-local:
150 clean-local:
151 veryclean-local:        clean-local FORCE
152 depend-local:
153 lint-local:
154 lint5-local:
155
156 veryclean: FORCE
157         $(RM) Makefile
158         $(RM) -r .libs
159
160 Makefile: Makefile.in $(top_srcdir)/build/top.mk
161
162 # empty rule for forcing rules
163 FORCE:
164
165 ##---------------------------------------------------------------------------