Added tickadj to start of xntpd, this improves performance to nominal.
[unix-history] / Makefile
index 8b745cc..f6a7de5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 #      @(#)Makefile    5.1.1.2 (Berkeley) 5/9/91
 #
 #      @(#)Makefile    5.1.1.2 (Berkeley) 5/9/91
 #
-#      $Id: Makefile,v 1.29 1993/12/16 01:30:15 ljo Exp $
+#      $Id: Makefile,v 1.40 1994/02/18 02:03:17 rgrimes Exp $
 #
 
 SUBDIR=
 #
 
 SUBDIR=
@@ -22,6 +22,13 @@ SUBDIR+= include
 .if exists(lib)
 SUBDIR+= lib
 .endif
 .if exists(lib)
 SUBDIR+= lib
 .endif
+
+# This contains both libraries and includes, which stuff below depends
+# upon.
+.if exists(kerberosIV) && !defined(NOCRYPT)
+SUBDIR+= kerberosIV
+.endif
+
 .if exists(libexec)
 SUBDIR+= libexec
 .endif
 .if exists(libexec)
 SUBDIR+= libexec
 .endif
@@ -38,6 +45,16 @@ SUBDIR+= usr.bin
 SUBDIR+= usr.sbin
 .endif
 
 SUBDIR+= usr.sbin
 .endif
 
+# This is for people who want to have src/ports, src/local built
+# automatically.  
+.if defined(MAKE_LOCAL) & exists(local) & exists(local/Makefile)
+SUBDIR+= local
+.endif
+.if defined(MAKE_PORTS) & exists(ports) & exists(ports/Makefile)
+SUBDIR+= ports
+.endif
+
+
 # Special cases: etc sys
 # Not ported: kerberosIV
 
 # Special cases: etc sys
 # Not ported: kerberosIV
 
@@ -56,7 +73,6 @@ world:        directories cleandist mk includes libraries tools mdec
        @echo "--------------------------------------------------------------"
        @echo
        make depend all install
        @echo "--------------------------------------------------------------"
        @echo
        make depend all install
-       cd ${.CURDIR}/usr.sbin/sendmail/src;    make install
        cd ${.CURDIR}/share/man;                make makedb
 
 directories:
        cd ${.CURDIR}/share/man;                make makedb
 
 directories:
@@ -68,9 +84,22 @@ cleandist:
        @echo " Cleaning up the source tree, and rebuilding the obj tree"
        @echo "--------------------------------------------------------------"
        @echo
        @echo " Cleaning up the source tree, and rebuilding the obj tree"
        @echo "--------------------------------------------------------------"
        @echo
-       here=`pwd`; dest=/usr/obj/`echo $$here | sed 's,/usr/src,,'`; \
+       here=`pwd`; dest=/usr/obj`echo $$here | sed 's,^/usr/src,,'`; \
+       if test -d /usr/obj -a ! -d $$dest; then \
+               mkdir -p $$dest; \
+       else \
+               true; \
+       fi; \
        cd $$dest; rm -rf ${SUBDIR}
        find . -name obj | xargs -n30 rm -rf
        cd $$dest; rm -rf ${SUBDIR}
        find . -name obj | xargs -n30 rm -rf
+.if defined(MAKE_LOCAL) & exists(local) & exists(local/Makefile)
+       # The cd is done as local may well be a symbolic link
+       -cd local ; find . -name obj | xargs -n30 rm -rf
+.endif
+.if defined(MAKE_PORTS) & exists(ports) & exists(ports/Makefile)
+       # The cd is done as local may well be a symbolic link
+       -cd ports ; find . -name obj | xargs -n30 rm -rf
+.endif
        make cleandir
        make obj
 .endif
        make cleandir
        make obj
 .endif
@@ -99,11 +128,13 @@ includes:
        chmod 755 ${DESTDIR}/usr/include
 .endif
        cd ${.CURDIR}/include;                  make install
        chmod 755 ${DESTDIR}/usr/include
 .endif
        cd ${.CURDIR}/include;                  make install
-       cd ${.CURDIR}/gnu/gcc2/libobjc;         make beforeinstall
-       cd ${.CURDIR}/gnu/libg++;               make beforeinstall
-       cd ${.CURDIR}/gnu/libregex;             make beforeinstall
+       cd ${.CURDIR}/gnu/usr.bin/cc/libobjc;   make beforeinstall
+       cd ${.CURDIR}/gnu/lib/libg++;           make beforeinstall
        cd ${.CURDIR}/lib/libcurses;            make beforeinstall
        cd ${.CURDIR}/lib/libc;                 make beforeinstall
        cd ${.CURDIR}/lib/libcurses;            make beforeinstall
        cd ${.CURDIR}/lib/libc;                 make beforeinstall
+.if !defined(NOCRYPT) && exists(${.CURDIR}/kerberosIV)
+       cd ${.CURDIR}/kerberosIV/include;       make install
+.endif
 
 # You MUST run this the first time you get the new sources to boot strap
 # the shared library tools onto you system.  This target should only
 
 # You MUST run this the first time you get the new sources to boot strap
 # the shared library tools onto you system.  This target should only
@@ -113,19 +144,19 @@ bootstrapld:      directories cleandist mk includes
        @echo "--------------------------------------------------------------"
        @echo " Building new shlib compiler tools"
        @echo "--------------------------------------------------------------"
        @echo "--------------------------------------------------------------"
        @echo " Building new shlib compiler tools"
        @echo "--------------------------------------------------------------"
-       # These tools need built very eary do to a.out.h changes:
-       # possible ar needed too
+       # These tools need to be built very early due to a.out.h changes:
+       # It is possible that ar is needed
        cd ${.CURDIR}/usr.bin/mkdep;    make -DNOPIC depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/usr.bin/nm;       make -DNOPIC depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/usr.bin/ranlib;   make -DNOPIC depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/usr.bin/strip;    make -DNOPIC depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/usr.bin/mkdep;    make -DNOPIC depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/usr.bin/nm;       make -DNOPIC depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/usr.bin/ranlib;   make -DNOPIC depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/usr.bin/strip;    make -DNOPIC depend all install ${CLEANDIR} obj
-       cd ${.CURDIR}/gnu/ld;           make -DNOPIC depend all install ${CLEANDIR} obj
-       cd ${.CURDIR}/gnu/gas;          make depend all install ${CLEANDIR} obj
-       cd ${.CURDIR}/gnu/gcc2;         make -DNOPIC depend all install ${CLEANDIR} obj
-       cd ${.CURDIR}/gnu/gcc2/libgcc;  make all install ${CLEANDIR} obj
+       cd ${.CURDIR}/gnu/usr.bin/ld;   make -DNOPIC depend all install ${CLEANDIR} obj
+       cd ${.CURDIR}/gnu/usr.bin/as;   make depend all install ${CLEANDIR} obj
+       cd ${.CURDIR}/gnu/usr.bin/cc;   make -DNOPIC depend all install ${CLEANDIR} obj
+       cd ${.CURDIR}/gnu/usr.bin/cc/libgcc;    make all install ${CLEANDIR} obj
        cd ${.CURDIR}/lib/csu.i386;     make depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/lib/libc;         make depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/lib/csu.i386;     make depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/lib/libc;         make depend all install ${CLEANDIR} obj
-       cd ${.CURDIR}/gnu/ld/rtld;      make depend all install ${CLEANDIR} obj
+       cd ${.CURDIR}/gnu/usr.bin/ld/rtld;      make depend all install ${CLEANDIR} obj
 
 libraries:
        # setenv NOPROFILE if you do not want profiled libraries
 
 libraries:
        # setenv NOPROFILE if you do not want profiled libraries
@@ -136,19 +167,24 @@ libraries:
 .if defined(CLOBBER)
        find ${DESTDIR}/usr/lib \! -name '*.s[ao].*' -a \! -type d | xargs -n30 rm -rf
 .endif
 .if defined(CLOBBER)
        find ${DESTDIR}/usr/lib \! -name '*.s[ao].*' -a \! -type d | xargs -n30 rm -rf
 .endif
-       cd ${.CURDIR}/lib;              make depend all install ${CLEANDIR} obj
-       cd ${.CURDIR}/gnu/gcc2/libgcc;  make depend all install ${CLEANDIR} obj
-       cd ${.CURDIR}/gnu/libg++;       make depend all install ${CLEANDIR} obj
-       cd ${.CURDIR}/gnu/libregex;     make depend all install ${CLEANDIR} obj
-       cd ${.CURDIR}/gnu/libmalloc;    make depend all install ${CLEANDIR} obj
+       cd ${.CURDIR}/lib;                      make depend all install ${CLEANDIR} obj
+       cd ${.CURDIR}/gnu/usr.bin/cc/libgcc;    make depend all install ${CLEANDIR} obj
+       cd ${.CURDIR}/gnu/lib/libg++;           make depend all install ${CLEANDIR} obj
+       cd ${.CURDIR}/gnu/lib/libregex;         make depend all install ${CLEANDIR} obj
+       cd ${.CURDIR}/gnu/lib/libmalloc;        make depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/usr.bin/lex;      make depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/usr.bin/lex;      make depend all install ${CLEANDIR} obj
+.if exists(${.CURDIR}/kerberosIV) && !defined(NOCRYPT)
+       cd ${.CURDIR}/kerberosIV/des;   make depend all install ${CLEANDIR} obj
+       cd ${.CURDIR}/kerberosIV/krb;   make depend all install ${CLEANDIR} obj
+       cd ${.CURDIR}/kerberosIV/kdc;   make depend all install ${CLEANDIR} obj
+.endif
 
 tools:
        @echo "--------------------------------------------------------------"
        @echo " Rebuilding ${DESTDIR} Compiler and Make"
        @echo "--------------------------------------------------------------"
        @echo
 
 tools:
        @echo "--------------------------------------------------------------"
        @echo " Rebuilding ${DESTDIR} Compiler and Make"
        @echo "--------------------------------------------------------------"
        @echo
-       cd ${.CURDIR}/gnu/gcc2;         make depend all install ${CLEANDIR} obj
+       cd ${.CURDIR}/gnu/usr.bin/cc;   make depend all install ${CLEANDIR} obj
        cd ${.CURDIR}/usr.bin/make;     make depend all install ${CLEANDIR} obj
 
 mdec:
        cd ${.CURDIR}/usr.bin/make;     make depend all install ${CLEANDIR} obj
 
 mdec: