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@
24 ldap_subdir = @ldap_subdir@
26 datadir = @datadir@/$(ldap_subdir)
27 includedir = @includedir@
30 libexecdir = @libexecdir@
31 localstatedir = @localstatedir@
34 sharedstatedir = @sharedstatedir@
35 sysconfdir = @sysconfdir@/$(ldap_subdir)
38 INSTALL_PROGRAM = @INSTALL_PROGRAM@
39 INSTALL_DATA = @INSTALL_DATA@
40 INSTALL_SCRIPT = @INSTALL_SCRIPT@
52 MKDEP = $(top_srcdir)/build/mkdep $(MKDEPFLAG) -d "$(srcdir)" -c "$(CC)"
56 LTLINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(LTVERSION)
57 LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
59 # Misc UNIX commands used in makefiles
69 # Misc UNIX commands used in programs
75 # MANCOMPRESS=@MANCOMPRESS@
76 # MANCOMPRESSSUFFIX=@MANCOMPRESSSUFFIX@
81 VERSIONFILE = $(top_srcdir)/build/version
83 INCLUDEDIR= $(top_srcdir)/include
84 LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
85 LDAP_LIBADIR= $(top_builddir)/libraries
86 LDAP_LIBPATH= -L$(LDAP_LIBADIR)
88 LUTIL_LIBS = @LUTIL_LIBS@
89 LDBM_LIBS = @LDBM_LIBS@
90 LTHREAD_LIBS = @LTHREAD_LIBS@
92 LDAP_LIBLBER_DEPEND = $(LDAP_LIBDIR)/liblber/liblber.la
93 LDAP_LIBLDAP_DEPEND = $(LDAP_LIBDIR)/libldap/libldap.la
94 LDAP_LIBLDIF_DEPEND = $(LDAP_LIBDIR)/libldif/libldif.a
95 LDAP_LIBLUTIL_DEPEND = $(LDAP_LIBDIR)/liblutil/liblutil.a
96 LDAP_LIBLDBM_DEPEND = $(LDAP_LIBDIR)/libldbm/libldbm.a
97 LDAP_LIBLTHREAD_DEPEND = $(LDAP_LIBDIR)/liblthread/liblthread.a
99 LDAP_LIBDEPEND = $(LDAP_LIBLDAP_DEPEND) $(LDAP_LIBLBER_DEPEND) \
100 $(LDAP_LIBLDIF_DEPEND) $(LDAP_LIBLUTIL_DEPEND)
102 # AutoConfig generated
105 AC_DEFS = @CPPFLAGS@ @DEFS@
106 AC_LDFLAGS = @LDFLAGS@
109 KRB_LIBS = @KRB_LIBS@
110 PERL_CPPFLAGS = @SLAPD_PERL_CPPFLAGS@
111 PERL_LDFLAGS = @SLAPD_PERL_LDFLAGS@
112 TERMCAP_LIBS = @TERMCAP_LIBS@
114 LDAPD_LIBS = @LDAPD_LIBS@
115 SLAPD_LIBS = @SLAPD_LIBS@
116 SLURPD_LIBS = @SLURPD_LIBS@
120 DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS) $(DEFINES)
121 LIBS = $(LDAP_LIBPATH) $(XLIBS) $(XXLIBS) $(AC_LIBS) $(XXXLIBS)
122 CFLAGS = $(AC_CFLAGS) $(DEFS)
123 LDFLAGS = $(AC_LDFLAGS) $(XLDFLAGS)
125 all: all-common all-local FORCE
126 install: install-common install-local FORCE
127 clean: clean-common clean-local FORCE
128 veryclean: veryclean-common veryclean-local FORCE
129 depend: depend-common depend-local FORCE
135 veryclean-common: clean-common FORCE
144 veryclean-local: clean-local FORCE
153 Makefile: Makefile.in $(top_srcdir)/build/top.mk
155 # empty rule for forcing rules
158 ##---------------------------------------------------------------------------