# @(#)Makefile 5.1.1.2 (Berkeley) 5/9/91
#
-# $Id: Makefile,v 1.19 1993/10/25 21:09:32 rgrimes Exp $
+# $Id: Makefile,v 1.24 1993/11/10 05:22:52 paul Exp $
#
SUBDIR=
CLEANDIR= cleandir
.endif
-world: directories cleandist mk includes libraries tools mdec
+world: directories cleandist mk includes bootstrapld libraries tools mdec
@echo "--------------------------------------------------------------"
@echo " Rebuilding ${DESTDIR} The whole thing"
@echo "--------------------------------------------------------------"
cd ${.CURDIR}/lib/libcurses; make beforeinstall
cd ${.CURDIR}/lib/libc; make beforeinstall
+# XXX -- This will go away later -- hack to get up to speed with shlibs
+# setenv NOBOOTSTRAPLD to prevent building new shlib tools.
+# This is to save build time if you've already done it before,
+# you MUST run it the first time you get the new sources.
+
+bootstrapld:
+.if !defined(NOBOOTSTRAPLD)
+ @echo "--------------------------------------------------------------"
+ @echo " Building new shlib compiler tools"
+ @echo "--------------------------------------------------------------"
+ cd ${.CURDIR}/usr.bin/strip; make 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/ld; make -DNOPIC depend all install ${CLEANDIR} obj
+ cd ${.CURDIR}/gnu/gcc2/libgcc; make 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}/gnu/ld/rtld; make depend all install ${CLEANDIR} obj
+.endif
+
libraries:
# setenv NOPROFILE if you do not want profiled libraries
@echo "--------------------------------------------------------------"