From: Kurt Zeilenga Date: Wed, 16 Sep 1998 03:26:06 +0000 (+0000) Subject: From BOOLEAN_LDAP etc/. Added manually. X-Git-Tag: PHP3_TOOL_0_0~18^2~142 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=319aa913162c0e16592b8b41d26adf4ba4a98176;p=openldap From BOOLEAN_LDAP etc/. Added manually. --- diff --git a/build/dir.mk b/build/dir.mk new file mode 100644 index 0000000000..e78f0be086 --- /dev/null +++ b/build/dir.mk @@ -0,0 +1,48 @@ +## +## 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 diff --git a/build/info.mk b/build/info.mk new file mode 100644 index 0000000000..5ea8e7520b --- /dev/null +++ b/build/info.mk @@ -0,0 +1,5 @@ +## +## Makefile Template for Non-Source Directories +## + + diff --git a/build/lib.mk b/build/lib.mk new file mode 100644 index 0000000000..21d2117d5d --- /dev/null +++ b/build/lib.mk @@ -0,0 +1,35 @@ +## +## 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) + diff --git a/build/rules.mk b/build/rules.mk new file mode 100644 index 0000000000..00e63c3f90 --- /dev/null +++ b/build/rules.mk @@ -0,0 +1,21 @@ +## +## 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) + diff --git a/build/srv.mk b/build/srv.mk new file mode 100644 index 0000000000..461549bd73 --- /dev/null +++ b/build/srv.mk @@ -0,0 +1,49 @@ +## +## 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) diff --git a/build/top.mk b/build/top.mk new file mode 100644 index 0000000000..78ac505a4b --- /dev/null +++ b/build/top.mk @@ -0,0 +1,89 @@ +## +## 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: