## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
## of this package for details.
##
-@SET_MAKE@
+PACKAGE= @PACKAGE@
+VERSION= @VERSION@
+@SET_MAKE@
SHELL = /bin/sh
+top_builddir = @top_builddir@
+
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
+MV = mv
LN = ln
LN_S = @LN_S@
RM = rm -f
LINT = lint
5LINT = 5lint
-MKDEP = $(top_srcdir)/build/mkdep
+MKDEP = $(top_srcdir)/build/mkdep $(MKDEPFLAG) -c "$(CC)"
+
+LIBTOOL = @LIBTOOL@
+LIBVERSION = 0:0:0
+LTLINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LFLAGS)
+LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
# Misc UNIX commands used in makefiles
SED = sed
FINGER = @FINGER@
SENDMAIL = @SENDMAIL@
+# For manual pages
+# MANCOMPRESS=@MANCOMPRESS@
+# MANCOMPRESSSUFFIX=@MANCOMPRESSSUFFIX@
+MANCOMPRESS=$(CAT)
+MANCOMPRESSSUFFIX=
+
# Version
VERSIONFILE = $(top_srcdir)/build/version
-INCLUDEDIR = -I$(top_srcdir)/include
+INCLUDEDIR= $(top_srcdir)/include
+LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
+LDAP_LIBADIR= $(top_builddir)/libraries
+LDAP_LIBPATH= -L$(LDAP_LIBADIR)
+
+LDAP_LIBLBER = $(LDAP_LIBADIR)/liblber/liblber.la
+LDAP_LIBLDAP = $(LDAP_LIBADIR)/libldap/libldap.la
-LDAP_LIBS = -lldif -lldap -llber
-LDAP_LIBDEPEND = $(VLIBDIR)/libldif.a $(VLIBDIR)/libldap.a $(VLIBDIR)/liblber.a
+LDAP_LIBLBER_DEPEND = $(LDAP_LIBDIR)/liblber/liblber.la
+LDAP_LIBLDAP_DEPEND = $(LDAP_LIBDIR)/libldap/libldap.la
+
+LDAP_LIBS = $(LDAP_LIBPATH) -lldif $(LDAP_LIBLDAP) $(LDAP_LIBLBER)
+LDAP_LIBDEPEND = $(LDAP_LIBDIR)/libldif.a $(LDAP_LIBLDAP) $(LDAP_LIBLBER)
# AutoConfig generated
AC_CC = @CC@
-AC_DEFS = @CPPFLAGS@ @DEFS@ @LDAP_DEFS@
+AC_DEFS = @CPPFLAGS@ @DEFS@
AC_LIBS = @LDFLAGS@ @LIBS@
AC_CFLAGS = @CFLAGS@
AC_LDFLAGS =
-LIBTERMCAP = @LIBTERMCAP@
+KRB_LIBS = @KRB_LIBS@
+TERMCAP_LIBS = @TERMCAP_LIBS@
# Our Defaults
CC = $(AC_CC)
-DEFS = $(LDAP_DEFS) $(VINCLUDEDIR) $(INCLUDEDIR) $(XDEFS) $(AC_DEFS)
-LIBS = $(VLIBS) $(LDAP_LIBS) $(XLIBS) $(AC_LIBS)
+DEFS = $(LDAP_INCPATH) $(XINCPATH) $(XDEFS) $(AC_DEFS)
+LIBS = $(LDAP_LIBS) $(XLIBS) $(AC_LIBS)
CFLAGS = $(AC_CFLAGS) $(DEFS) $(DEFINES)
LDFLAGS = $(AC_LDFLAGS)
-all: all-common FORCE
-install: install-common FORCE
-clean: clean-common FORCE
-veryclean: veryclean-common FORCE
-depend: depend-common FORCE
+all: all-common all-local FORCE
+install: install-common install-local FORCE
+clean: clean-common clean-local FORCE
+veryclean: veryclean-common veryclean-local FORCE
+depend: depend-common depend-local FORCE
+
+# empty common rules
+all-common:
+install-common:
+clean-common:
+veryclean-common: clean-common FORCE
+depend-common:
+lint-common:
+lint5-common:
# empty local rules
all-local:
install-local:
clean-local:
-veryclean-local:
+veryclean-local: clean-local FORCE
depend-local:
lint-local:
lint5-local:
-Makefile: Makefile.in ${top_srcdir}/config.status
- @if [ $(top_srcdir) = $(srcdir) ]; then ; \
- ./config.status ; \
- else ; \
- echo "Makefile out of date, run config.status from $top_srcdir" ; \
- exit 1 ; \
- fi
+veryclean: FORCE
+ $(RM) Makefile
+
+Makefile: Makefile.in $(top_srcdir)/build/top.mk
# empty rule for forcing rules
FORCE: