This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history] / Makefile
index eccd25f..47e1f90 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.19 1993/10/25 21:09:32 rgrimes Exp $
+#      $Id: Makefile,v 1.21 1993/11/09 21:41:30 paul Exp $
 #
 
 SUBDIR=
 #
 
 SUBDIR=
@@ -50,7 +50,7 @@ CLEANDIR=
 CLEANDIR=      cleandir
 .endif
 
 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 "--------------------------------------------------------------"
        @echo "--------------------------------------------------------------"
        @echo " Rebuilding ${DESTDIR} The whole thing"
        @echo "--------------------------------------------------------------"
@@ -102,6 +102,28 @@ includes:
        cd ${.CURDIR}/lib/libcurses;            make beforeinstall
        cd ${.CURDIR}/lib/libc;                 make beforeinstall
 
        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
+       NOPIC=nopic
+       cd ${.CURDIR}/gnu/gcc2; make depend all install
+       cd ${.CURDIR}/gnu/ld; make depend all install ${CLEANDIR} obj
+       NOPIC=
+       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 "--------------------------------------------------------------"
 libraries:
        # setenv NOPROFILE if you do not want profiled libraries
        @echo "--------------------------------------------------------------"