]> git.sur5r.net Git - openldap/commitdiff
From BOOLEAN_LDAP etc/. Added manually.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 16 Sep 1998 03:26:06 +0000 (03:26 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 16 Sep 1998 03:26:06 +0000 (03:26 +0000)
build/dir.mk [new file with mode: 0644]
build/info.mk [new file with mode: 0644]
build/lib.mk [new file with mode: 0644]
build/rules.mk [new file with mode: 0644]
build/srv.mk [new file with mode: 0644]
build/top.mk [new file with mode: 0644]

diff --git a/build/dir.mk b/build/dir.mk
new file mode 100644 (file)
index 0000000..e78f0be
--- /dev/null
@@ -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 (file)
index 0000000..5ea8e75
--- /dev/null
@@ -0,0 +1,5 @@
+##
+## Makefile Template for Non-Source Directories
+##
+
+
diff --git a/build/lib.mk b/build/lib.mk
new file mode 100644 (file)
index 0000000..21d2117
--- /dev/null
@@ -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 (file)
index 0000000..00e63c3
--- /dev/null
@@ -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 (file)
index 0000000..461549b
--- /dev/null
@@ -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 (file)
index 0000000..78ac505
--- /dev/null
@@ -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: