--- /dev/null
+##
+## Makes subdirectories
+##
+
+all: allsubs
+allsubs: FORCE
+ @echo "Making all in `$(PWD)`"
+ @for i in $(SUBDIRS); do \
+ echo " Entering subdirectory $$i"; \
+ ( cd $$i; $(MAKE) $(MFLAGS) all ); \
+ echo " "; \
+ done
+
+install: installsubs
+installsubs: FORCE
+ @echo "Making install in `$(PWD)`"
+ @for i in $(SUBDIRS); do \
+ echo " Entering subdirectory $$i"; \
+ ( cd $$i; $(MAKE) $(MFLAGS) install ); \
+ echo " "; \
+ done
+
+clean: cleansubs
+cleansubs: FORCE
+ @echo "Making clean in `$(PWD)`"
+ @for i in $(SUBDIRS); do \
+ echo " Entering subdirectory $$i"; \
+ ( cd $$i; $(MAKE) $(MFLAGS) clean ); \
+ echo " "; \
+ done
+
+veryclean: verysubs
+verysubs: FORCE
+ @echo "Making veryclean in `$(PWD)`"
+ @for i in $(SUBDIRS); do \
+ echo " Entering subdirectory $$i"; \
+ ( cd $$i; $(MAKE) $(MFLAGS) veryclean ); \
+ echo " "; \
+ done
+
+depend: dependsubs
+dependsubs: FORCE
+ @echo "Making depend in `$(PWD)`"
+ @for i in $(SUBDIRS); do \
+ echo " Entering subdirectory $$i"; \
+ ( cd $$i; $(MAKE) $(MFLAGS) depend ); \
+ echo " "; \
+ done
--- /dev/null
+##
+## Makefile Template for Non-Source Directories
+##
+
+
--- /dev/null
+##
+## Makefile Template for Libraries
+##
+
+all: $(LIBRARY) $(PROGRAMS)
+
+$(LIBRARY): version.o
+ $(AR) ru $@ $(OBJS) version.o
+ @$(RANLIB) $@; \
+ $(RM) ../$@; \
+ (d=`$(PWD)` ; $(LN_S) `$(BASENAME) $$d`/$@ ../$@)
+
+version.c: $(OBJS)
+ $(RM) $@
+ (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` \
+ h=`$(HOSTNAME)` t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ -e "s|%VERSION%|$${v}|" \
+ < Version.c > $@)
+
+install: all
+
+lint: FORCE
+ $(LINT) $(DEFS) $(DEFINES) $(SRCS)
+
+lint5: FORCE
+ $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
+
+clean: FORCE
+ $(RM) $(LIBRARY) ../$(LIBRARY) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) \
+ *.o a.out core version.c
+
+depend: FORCE
+ $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
+
--- /dev/null
+##
+## Makefile Template for Programs
+##
+
+all: $(PROGRAMS)
+
+install: all
+
+lint: FORCE
+ $(LINT) $(DEFS) $(DEFINES) $(SRCS)
+
+lint5: FORCE
+ $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
+
+clean: FORCE
+ $(RM) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) \
+ *.o a.out core
+
+depend: FORCE
+ $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
+
--- /dev/null
+##
+## Makefile Template for Servers
+##
+
+all: FORCE
+ @if [ "$(BUILD_SRV)" = "yes" ]; then \
+ $(MAKE) $(MFLAGS) all-srv; \
+ else \
+ echo "run configure with $(BUILD_OPT) to build $(PROGRAMS)"; \
+ fi
+
+clean: clean-srv FORCE
+lint: FORCE
+ @if [ "$(BUILD_SRV)" = "yes" ]; then \
+ $(MAKE) $(MFLAGS) lint-srv; \
+ else \
+ echo "run configure with $(BUILD_OPT) to lint $(PROGRAMS)"; \
+ fi
+
+5lint: FORCE
+ @if [ "$(BUILD_SRV)" = "yes" ]; then \
+ $(MAKE) $(MFLAGS) 5lint-srv; \
+ else \
+ echo "run configure with $(BUILD_OPT) to 5lint $(PROGRAMS)"; \
+ fi
+
+depend: FORCE
+ @if [ "$(BUILD_SRV)" = "yes" ]; then \
+ $(MAKE) $(MFLAGS) depend-srv; \
+ else \
+ echo "run configure with $(BUILD_OPT) to mkdepend $(PROGRAMS)"; \
+ fi
+
+all-srv: FORCE
+
+install-srv: all-srv FORCE
+
+lint-srv: FORCE
+ $(LINT) $(DEFS) $(DEFINES) $(SRCS)
+
+5lint-srv: FORCE
+ $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
+
+clean-srv: FORCE
+ $(RM) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) \
+ *.o a.out core
+
+depend-srv: FORCE
+ $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
--- /dev/null
+##
+## Copyright 1998 Net Boolean Incorporated
+##
+@SET_MAKE@
+
+SHELL = /bin/sh
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+sbindir = @sbindir@
+libexecdir = @libexecdir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@/ldap
+sharedstatedir = @sharedstatedir@
+localstatedir = @localstatedir@
+libdir = @libdir@
+infodir = @infodir@
+mandir = @mandir@
+includedir = @includedir@
+
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+
+LN = ln
+LN_S = @LN_S@
+RM = rm -f
+MAKEINFO = @MAKEINFO@
+RANLIB = @RANLIB@
+AR = ar
+
+LINT = lint
+5LINT = 5lint
+MKDEP = mkdep
+
+# Misc UNIX commands used in makefiles
+SED = sed
+DATE = date
+HOSTNAME = uname -n
+BASENAME = basename
+PWD = pwd
+CAT = cat
+MKDIR = mkdir
+
+VERSIONFILE = $(top_srcdir)/build/version
+
+INCLUDEDIR = -I$(top_srcdir)/include $(XINCLUDEDIR)
+
+LDAP_LIBDIR = $(top_srcdir)/libraries
+LDAP_LIBS = -lldap -llber -lldif
+LDAP_LIBDEPEND = $(LDAP_LIBDIR)/libldap.a
+
+# AutoConfig generated
+AC_CC = @CC@
+AC_DEFS = @DEFS@ @LDAP_DEFS@
+AC_LIBS = @LIBS@
+AC_CFLAGS = @CFLAGS@
+AC_LDFLAGS = @LDFLAGS@
+
+LIBCRYPT = @LIBCRYPT@
+LIBTERMCAP = @LIBTERMCAP@
+LIBDB = @LIBDB@
+
+# Our Defaults
+CC = $(AC_CC)
+DEFS = $(AC_DEFS) $(INCLUDEDIR) $(LDAP_DEFS)
+LIBS = -L$(LDAP_LIBDIR) $(LDAP_LIBS) $(XLIBS) $(AC_LIBS)
+
+CFLAGS = $(AC_CFLAGS) $(DEFS) $(DEFINES)
+LDFLAGS = $(AC_LDFLAGS)
+
+default: all
+
+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
+
+# empty rule for forcing rules
+FORCE: