2 ## Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
3 ## All rights reserved.
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.
16 top_builddir = @top_builddir@
19 top_srcdir = @top_srcdir@
22 exec_prefix = @exec_prefix@
23 ldap_subdir = @ldap_subdir@
26 datadir = @datadir@$(ldap_subdir)
27 includedir = @includedir@
30 libexecdir = @libexecdir@
31 localstatedir = @localstatedir@
33 moduledir = @libexecdir@$(ldap_subdir)
35 sharedstatedir = @sharedstatedir@
36 sysconfdir = @sysconfdir@$(ldap_subdir)
42 INSTALL_PROGRAM = @INSTALL_PROGRAM@
43 INSTALL_DATA = @INSTALL_DATA@
44 INSTALL_SCRIPT = @INSTALL_SCRIPT@
49 MKDEP = $(top_srcdir)/build/mkdep $(MKDEPFLAG) \
50 -d "$(srcdir)" -c "$(MKDEP_CC)" -m "$(MKDEP_CFLAGS)"
52 MKDEP_CFLAGS = @OL_MKDEP_FLAGS@
54 MKVERSION = $(top_srcdir)/build/mkversion -v "$(VERSION)"
58 LTVERSION = -version-info $(LIBVERSION)
59 LTLIBLINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(LTVERSION)
60 LTLINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS)
61 LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
63 # Misc UNIX commands used in build environment
82 # Misc UNIX commands used in programs
88 # MANCOMPRESS=@MANCOMPRESS@
89 # MANCOMPRESSSUFFIX=@MANCOMPRESSSUFFIX@
93 INCLUDEDIR= $(top_srcdir)/include
94 LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
95 LDAP_LIBADIR= $(top_builddir)/libraries
96 LDAP_LIBPATH= -L$(LDAP_LIBADIR)
98 LUTIL_LIBS = @LUTIL_LIBS@
99 LDIF_LIBS = @LDIF_LIBS@
100 LDBM_LIBS = @LDBM_LIBS@
101 LTHREAD_LIBS = @LTHREAD_LIBS@
103 LDAP_LIBLBER_DEPEND = $(LDAP_LIBDIR)/liblber/liblber.la
104 LDAP_LIBLDAP_DEPEND = $(LDAP_LIBDIR)/libldap/libldap.la
105 LDAP_LIBLDIF_DEPEND = $(LDAP_LIBDIR)/libldif/libldif.a
106 LDAP_LIBLUTIL_DEPEND = $(LDAP_LIBDIR)/liblutil/liblutil.a
108 LDAP_LIBAVL_DEPEND = $(LDAP_LIBDIR)/libavl/libavl.a
109 LDAP_LIBLDBM_DEPEND = $(LDAP_LIBDIR)/libldbm/libldbm.a
110 LDAP_LIBLTHREAD_DEPEND = $(LDAP_LIBDIR)/libldap_r/libldap_r.la
112 LDAP_LIBDEPEND = $(LDAP_LIBLDAP_DEPEND) $(LDAP_LIBLBER_DEPEND) \
113 $(LDAP_LIBLDIF_DEPEND) $(LDAP_LIBLUTIL_DEPEND)
114 SLAPD_LIBDEPEND = $(LDAP_LIBDEPEND) $(LDAP_LIBAVL_DEPEND) \
115 $(LDAP_LIBLDBM_DEPEND) $(LDAP_LIBLTHREAD_DEPEND)
117 WRAP_LIBS = @WRAP_LIBS@
118 # AutoConfig generated
121 AC_DEFS = @CPPFLAGS@ # @DEFS@
122 AC_LDFLAGS = @LDFLAGS@
125 KRB_LIBS = @KRB_LIBS@
126 SASL_LIBS = @SASL_LIBS@
127 TLS_LIBS = @TLS_LIBS@
128 SECURITY_LIBS = @SASL_LIBS@ @KRB_LIBS@ @TLS_LIBS@
130 MODULES_CPPFLAGS = @SLAPD_MODULES_CPPFLAGS@
131 MODULES_LDFLAGS = @SLAPD_MODULES_LDFLAGS@
132 MODULES_LIBS = @MODULES_LIBS@
133 TERMCAP_LIBS = @TERMCAP_LIBS@
134 SLAPD_PERL_LDFLAGS = @SLAPD_PERL_LDFLAGS@
136 LDAPD_LIBS = @LDAPD_LIBS@
137 SLAPD_LIBS = @SLAPD_LIBS@ @SLAPD_PERL_LDFLAGS@
138 SLURPD_LIBS = @SLURPD_LIBS@
142 DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) $(DEFINES)
143 CFLAGS = $(AC_CFLAGS) $(DEFS)
144 LDFLAGS = $(LDAP_LIBPATH) $(AC_LDFLAGS) $(XLDFLAGS)
145 LIBS = $(XLIBS) $(XXLIBS) $(AC_LIBS) $(XXXLIBS)
147 all: all-common all-local FORCE
148 install: install-common install-local FORCE
149 clean: clean-common clean-local FORCE
150 veryclean: veryclean-common veryclean-local FORCE
151 depend: depend-common depend-local FORCE
157 veryclean-common: clean-common FORCE
166 veryclean-local: clean-local FORCE
175 Makefile: Makefile.in $(top_srcdir)/build/top.mk
177 # empty rule for forcing rules
180 ##---------------------------------------------------------------------------