# @(#)Makefile 5.1.1.2 (Berkeley) 5/9/91
#
-# $Id: Makefile,v 1.39 1994/02/05 08:33:14 rgrimes Exp $
+# $Id: Makefile,v 1.46 1994/05/02 23:51:19 jkh Exp $
#
SUBDIR=
.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
CLEANDIR= cleandir
.endif
+# Where is the c-compier source. Change this, and gnu/usr.bin/Makefile if you
+# want to use another cc (gcc-2.5.8 for instance)
+CCDIR= ${.CURDIR}/gnu/usr.bin/cc
+#CCDIR= ${.CURDIR}/gnu/usr.bin/cc25
+
world: directories cleandist mk includes libraries tools mdec
@echo "--------------------------------------------------------------"
@echo " Rebuilding ${DESTDIR} The whole thing"
cd ${.CURDIR}/share/man; make makedb
directories:
+ @echo "--------------------------------------------------------------"
+ @echo " Making directories"
+ @echo "--------------------------------------------------------------"
cd ${.CURDIR}/etc; make distrib-dirs
cleandist:
chmod 755 ${DESTDIR}/usr/include
.endif
cd ${.CURDIR}/include; make install
- cd ${.CURDIR}/gnu/usr.bin/cc/libobjc; make beforeinstall
+ cd ${CCDIR}/libobjc; make beforeinstall
cd ${.CURDIR}/gnu/lib/libg++; 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
cd ${.CURDIR}/usr.bin/strip; make -DNOPIC depend 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 ${CCDIR}; make -DNOPIC depend all install ${CLEANDIR} obj
+ cd ${CCDIR}/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}/gnu/usr.bin/ld/rtld; make depend all install ${CLEANDIR} obj
+# Standard database make routines are slow especially for
+# big passwd files. You can have much faster routines, but
+# loose binary compatibility with previous versions and with
+# other BSD-like systems. If you want to setup much faster
+# routines, define PW_COMPACT envirnoment variable (f.e.
+# 'setenv PW_COMPACT' in csh) and use bootstrappwd target
+# into /usr/src/Makefile. If you will want to return this
+# changes back, use the same target without defining
+# PW_COMPACT.
+
+bootstrappwd: directories
+ -rm -f ${.CURDIR}/lib/libc/obj/getpwent.o ${.CURDIR}/lib/libc/getpwent.o
+ cd ${.CURDIR}/lib/libc; make all
+ -rm -f ${.CURDIR}/usr.sbin/pwd_mkdb/obj/pwd_mkdb.o ${.CURDIR}/usr.sbin/pwd_mkdb/pwd_mkdb.o
+ cd ${.CURDIR}/usr.sbin/pwd_mkdb; make all install ${CLEANDIR}
+ cp /etc/master.passwd /etc/mp.t; pwd_mkdb /etc/mp.t
+ cp ${.CURDIR}/lib/libc/obj/libc* /usr/lib
+ cd ${.CURDIR}/lib/libc; make install ${CLEANDIR}
+ -rm -f ${.CURDIR}/usr.bin/passwd/obj/getpwent.o ${.CURDIR}/usr.bin/passwd/getpwent.o
+ cd ${.CURDIR}/usr.bin/passwd; make all install ${CLEANDIR}
+ cd ${.CURDIR}/bin; make clean all install ${CLEANDIR}
+ cd ${.CURDIR}/sbin; make clean all install ${CLEANDIR}
+ @echo "--------------------------------------------------------------"
+ @echo " Do a reboot now because all daemons need restarting"
+ @echo "--------------------------------------------------------------"
+
libraries:
# setenv NOPROFILE if you do not want profiled libraries
@echo "--------------------------------------------------------------"
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/usr.bin/cc/libgcc; make depend all install ${CLEANDIR} obj
+ cd ${CCDIR}/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
+.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/kdb; make depend all install ${CLEANDIR} obj
+.endif
tools:
@echo "--------------------------------------------------------------"
@echo " Rebuilding ${DESTDIR} Compiler and Make"
@echo "--------------------------------------------------------------"
@echo
- cd ${.CURDIR}/gnu/usr.bin/cc; make depend all install ${CLEANDIR} obj
+ cd ${CCDIR}; make depend all install ${CLEANDIR} obj
cd ${.CURDIR}/usr.bin/make; make depend all install ${CLEANDIR} obj
mdec: