X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/3106e3f1973a9e6623108c7bd8ce525f9e79d2c4..693d820755e1d8b09fae6de6ff3d4cbf2549d316:/Makefile diff --git a/Makefile b/Makefile index eccd25fd79..c8951e4648 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # @(#)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.31 1994/01/05 20:11:49 nate Exp $ # SUBDIR= @@ -38,6 +38,16 @@ SUBDIR+= usr.bin 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 @@ -79,10 +89,12 @@ mk: @echo "--------------------------------------------------------------" @echo " Rebuilding ${DESTDIR}/usr/share/mk" @echo "--------------------------------------------------------------" +.if defined(CLOBBER) # DONT DO THIS!! rm -rf ${DESTDIR}/usr/share/mk # DONT DO THIS!! mkdir ${DESTDIR}/usr/share/mk - chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/mk - chmod 755 ${DESTDIR}/usr/share/mk + # DONT DO THIS!! chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/share/mk + # DONT DO THIS!! chmod 755 ${DESTDIR}/usr/share/mk +.endif cd ${.CURDIR}/share/mk; make install; includes: @@ -97,11 +109,34 @@ includes: 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}/lib/libcurses; make beforeinstall cd ${.CURDIR}/lib/libc; make beforeinstall +# 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 +# need to be run once on a system. + +bootstrapld: directories cleandist mk includes + @echo "--------------------------------------------------------------" + @echo " Building new shlib compiler tools" + @echo "--------------------------------------------------------------" + # 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}/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}/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 + libraries: # setenv NOPROFILE if you do not want profiled libraries @echo "--------------------------------------------------------------" @@ -109,10 +144,7 @@ libraries: @echo "--------------------------------------------------------------" @echo .if defined(CLOBBER) - rm -rf ${DESTDIR}/usr/lib - mkdir ${DESTDIR}/usr/lib - chown -R bin.bin ${DESTDIR}/usr/lib - chmod 755 ${DESTDIR}/usr/lib + 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 @@ -126,8 +158,8 @@ tools: @echo " Rebuilding ${DESTDIR} Compiler and Make" @echo "--------------------------------------------------------------" @echo - cd ${.CURDIR}/gnu/gcc2; make depend all install ${CLEANDIR} obj - cd ${.CURDIR}/usr.bin/make; make depend all install ${CLEANDIR} obj + cd ${.CURDIR}/gnu/gcc2; make depend all install ${CLEANDIR} obj + cd ${.CURDIR}/usr.bin/make; make depend all install ${CLEANDIR} obj mdec: @echo "--------------------------------------------------------------"