Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/Makefile,v rcsdiff: /ftp/cvs/cvsroot/src/Makefile,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.262.2.4 retrieving revision 1.266 diff -u -p -r1.262.2.4 -r1.266 --- src/Makefile 2011/01/06 05:19:54 1.262.2.4 +++ src/Makefile 2009/01/19 07:19:09 1.266 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.262.2.4 2011/01/06 05:19:54 riz Exp $ +# $NetBSD: Makefile,v 1.266 2009/01/19 07:19:09 jmmv Exp $ # # This is the top-level makefile for building NetBSD. For an outline of @@ -94,7 +94,10 @@ # do-external-lib: builds and installs prerequisites from external/lib. # do-sys-rump-fs-lib: builds and installs prerequisites from sys/rump/fs/lib # do-sys-rump-net-lib: builds and installs prerequisites from sys/rump/net/lib +# do-sys-modules: builds and installs kernel modules (used by rump binaries) # do-ld.so: builds and installs prerequisites from libexec/ld.*_so. +# do-compat-external-lib: builds and installs prerequisites from +# compat/external/lib if ${MKCOMPAT} != "no". # do-compat-lib-csu: builds and installs prerequisites from compat/lib/csu # if ${MKCOMPAT} != "no". # do-compat-libgcc: builds and installs prerequisites from @@ -177,17 +180,17 @@ _POSTINSTALL= ${.CURDIR}/usr.sbin/postin postinstall-check: .PHONY @echo " === Post installation checks ===" - AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi + MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi @echo " ================================" postinstall-fix: .NOTMAIN .PHONY @echo " === Post installation fixes ===" - AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix + MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix @echo " ===============================" postinstall-fix-obsolete: .NOTMAIN .PHONY @echo " === Removing obsolete files ===" - AWK=${TOOL_AWK:Q} MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete + MAKE=${MAKE:Q} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete @echo " ===============================" @@ -235,10 +238,14 @@ BUILDTARGET+= do-libpcc BUILDTARGETS+= do-lib-libc BUILDTARGETS+= do-lib do-gnu-lib do-external-lib BUILDTARGETS+= do-sys-rump-fs-lib do-sys-rump-net-lib +.if (${MACHINE} != "evbppc") +BUILDTARGETS+= do-sys-modules +.endif .if ${MKCOMPAT} != "no" BUILDTARGETS+= do-compat-lib-csu BUILDTARGETS+= do-compat-libgcc BUILDTARGETS+= do-compat-lib-libc +BUILDTARGETS+= do-compat-external-lib .endif BUILDTARGETS+= do-ld.so BUILDTARGETS+= do-build @@ -397,23 +404,20 @@ BUILD_CC_LIB+= external/bsd/pcc/crtstuff BUILD_CC_LIB+= external/bsd/pcc/libpcc .endif -.for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib sys/rump/fs/lib sys/rump/net/lib +.if ${MKCOMPAT} != "no" +BUILD_COMPAT_LIBS= compat/lib/csu ${BUILD_CC_LIB:S/^/compat\//} compat/lib/libc +BUILD_COMPAT_LIBS+= compat/external/lib +.else +BUILD_COMPAT_LIBS= +.endif + +.for dir in tools tools/compat lib/csu ${BUILD_CC_LIB} lib/libc lib/libdes lib gnu/lib external/lib sys/rump/fs/lib sys/rump/net/lib sys/modules ${BUILD_COMPAT_LIBS} do-${dir:S/\//-/g}: .PHONY .MAKE .for targ in dependall install ${MAKEDIRTARGET} ${dir} ${targ} .endfor .endfor -.if ${MKCOMPAT} != "no" -COMPAT_SUBDIR_LIST=lib/csu ${BUILD_CC_LIB} lib/libc -.for dir in ${COMPAT_SUBDIR_LIST} -do-compat-${dir:S/\//-/g}: .PHONY .MAKE -.for targ in obj dependall install - ${MAKEDIRTARGET} compat ${targ} BOOTSTRAP_SUBDIRS="../../../${dir}" -.endfor -.endfor -.endif - do-top-obj: .PHONY .MAKE ${MAKEDIRTARGET} . obj NOSUBDIR=