1 ## Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
2 ## All rights reserved.
4 ## Redistribution and use in source and binary forms are permitted only
5 ## as authorized by the OpenLDAP Public License. A copy of this
6 ## license is available at http://www.OpenLDAP.org/license.html or
7 ## in file LICENSE in the top-level directory of the distribution.
15 top_builddir = @top_builddir@
18 top_srcdir = @top_srcdir@
21 exec_prefix = @exec_prefix@
22 ldap_subdir = @ldap_subdir@
24 bindir = $(TMPROOT)@bindir@
25 datadir = $(TMPROOT)@datadir@$(ldap_subdir)
26 includedir = $(TMPROOT)@includedir@
27 infodir = $(TMPROOT)@infodir@
28 libdir = $(TMPROOT)@libdir@
29 libexecdir = $(TMPROOT)@libexecdir@
30 localstatedir = $(TMPROOT)@localstatedir@
31 mandir = $(TMPROOT)@mandir@
32 moduledir = $(TMPROOT)@libexecdir@$(ldap_subdir)
33 sbindir = $(TMPROOT)@sbindir@
34 sharedstatedir = $(TMPROOT)@sharedstatedir@
35 sysconfdir = $(TMPROOT)@sysconfdir@$(ldap_subdir)
41 INSTALL_PROGRAM = @INSTALL_PROGRAM@
42 INSTALL_DATA = @INSTALL_DATA@
43 INSTALL_SCRIPT = @INSTALL_SCRIPT@
48 MKDEP = $(top_srcdir)/build/mkdep $(MKDEPFLAG) \
49 -d "$(srcdir)" -c "$(MKDEP_CC)" -m "$(MKDEP_CFLAGS)"
51 MKDEP_CFLAGS = @OL_MKDEP_FLAGS@
53 MKVERSION = $(top_srcdir)/build/mkversion -v "$(VERSION)"
57 LTVERSION = -version-info $(LIBVERSION)
58 LTLIBLINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(LTVERSION)
59 LTLINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS)
60 LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
62 # Misc UNIX commands used in build environment
81 # Misc UNIX commands used in programs
87 # MANCOMPRESS=@MANCOMPRESS@
88 # MANCOMPRESSSUFFIX=@MANCOMPRESSSUFFIX@
92 INCLUDEDIR= $(top_srcdir)/include
93 LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
94 LDAP_LIBADIR= $(top_builddir)/libraries
95 LDAP_LIBPATH= -L$(LDAP_LIBADIR)
97 LUTIL_LIBS = @LUTIL_LIBS@
98 LDIF_LIBS = @LDIF_LIBS@
99 LDBM_LIBS = @LDBM_LIBS@
100 LTHREAD_LIBS = @LTHREAD_LIBS@
102 LDAP_LIBLBER_DEPEND = $(LDAP_LIBDIR)/liblber/liblber.la
103 LDAP_LIBLDAP_DEPEND = $(LDAP_LIBDIR)/libldap/libldap.la
104 LDAP_LIBLDIF_DEPEND = $(LDAP_LIBDIR)/libldif/libldif.a
105 LDAP_LIBLUTIL_DEPEND = $(LDAP_LIBDIR)/liblutil/liblutil.a
107 LDAP_LIBAVL_DEPEND = $(LDAP_LIBDIR)/libavl/libavl.a
108 LDAP_LIBLDBM_DEPEND = $(LDAP_LIBDIR)/libldbm/libldbm.a
109 LDAP_LIBLTHREAD_DEPEND = $(LDAP_LIBDIR)/libldap_r/libldap_r.la
111 LDAP_LIBDEPEND = $(LDAP_LIBLDAP_DEPEND) $(LDAP_LIBLBER_DEPEND) \
112 $(LDAP_LIBLDIF_DEPEND) $(LDAP_LIBLUTIL_DEPEND)
113 SLAPD_LIBDEPEND = $(LDAP_LIBDEPEND) $(LDAP_LIBAVL_DEPEND) \
114 $(LDAP_LIBLDBM_DEPEND) $(LDAP_LIBLTHREAD_DEPEND)
116 # AutoConfig generated
119 AC_DEFS = @CPPFLAGS@ # @DEFS@
120 AC_LDFLAGS = @LDFLAGS@
123 KRB_LIBS = @KRB_LIBS@
124 SASL_LIBS = @SASL_LIBS@
125 TLS_LIBS = @TLS_LIBS@
126 SECURITY_LIBS = @SASL_LIBS@ @KRB_LIBS@ @TLS_LIBS@
128 MODULES_CPPFLAGS = @SLAPD_MODULES_CPPFLAGS@
129 MODULES_LDFLAGS = @SLAPD_MODULES_LDFLAGS@
130 MODULES_LIBS = @MODULES_LIBS@
131 PERL_CPPFLAGS = @SLAPD_PERL_CPPFLAGS@
132 PERL_LDFLAGS = @SLAPD_PERL_LDFLAGS@
133 TERMCAP_LIBS = @TERMCAP_LIBS@
135 LDAPD_LIBS = @LDAPD_LIBS@
136 SLAPD_LIBS = @SLAPD_LIBS@
137 SLURPD_LIBS = @SLURPD_LIBS@
141 DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) $(DEFINES)
142 CFLAGS = $(AC_CFLAGS) $(DEFS)
143 LDFLAGS = $(LDAP_LIBPATH) $(AC_LDFLAGS) $(XLDFLAGS)
144 LIBS = $(XLIBS) $(XXLIBS) $(AC_LIBS) $(XXXLIBS)
146 all: all-common all-local FORCE
147 install: install-common install-local FORCE
148 clean: clean-common clean-local FORCE
149 veryclean: veryclean-common veryclean-local FORCE
150 depend: depend-common depend-local FORCE
156 veryclean-common: clean-common FORCE
165 veryclean-local: clean-local FORCE
174 Makefile: Makefile.in $(top_srcdir)/build/top.mk
176 # empty rule for forcing rules
179 ##---------------------------------------------------------------------------