version 1.217, 2003/07/21 02:01:42 |
version 1.226, 2004/01/06 07:25:40 |
|
|
# |
# |
# This is the top-level makefile for building NetBSD. For an outline of |
# This is the top-level makefile for building NetBSD. For an outline of |
# how to build a snapshot or release, as well as other release engineering |
# how to build a snapshot or release, as well as other release engineering |
# information, see http://www.netbsd.org/developers/releng/index.html |
# information, see http://www.NetBSD.org/developers/releng/index.html |
# |
# |
# Not everything you can set or do is documented in this makefile. In |
# Not everything you can set or do is documented in this makefile. In |
# particular, you should review the files in /usr/share/mk (especially |
# particular, you should review the files in /usr/share/mk (especially |
|
|
# includes: installs include files. |
# includes: installs include files. |
# do-tools-compat: builds the "libnbcompat" library; needed for some |
# do-tools-compat: builds the "libnbcompat" library; needed for some |
# random host tool programs in the source tree. |
# random host tool programs in the source tree. |
# do-gnu-lib-libgcc: builds and installs prerequisites from gnu/lib/libgcc |
# do-gnu-lib-libgcc3: builds and installs prerequisites from gnu/lib/libgcc3 |
# do-lib-csu: builds and installs prerequisites from lib/csu. |
# do-lib-csu: builds and installs prerequisites from lib/csu. |
# do-lib-libc: builds and installs prerequisites from lib/libc. |
# do-lib-libc: builds and installs prerequisites from lib/libc. |
|
# do-lib-libdes: builds and installs prerequisites from lib/libdes. |
# do-lib: builds and installs prerequisites from lib. |
# do-lib: builds and installs prerequisites from lib. |
# do-gnu-lib: builds and installs prerequisites from gnu/lib. |
# do-gnu-lib: builds and installs prerequisites from gnu/lib. |
# do-ld.so: builds and installs prerequisites from libexec/ld.*_so. |
# do-ld.so: builds and installs prerequisites from libexec/ld.*_so. |
# do-build: builds and installs the entire system. |
# do-build: builds and installs the entire system. |
# do-obsolete: builds and installs the entire system. |
# do-obsolete: installs the obsolete sets (for the postinstall-* targets). |
# |
# |
|
|
.if ${.MAKEFLAGS:M${.CURDIR}/share/mk} == "" |
.if ${.MAKEFLAGS:M${.CURDIR}/share/mk} == "" |
Line 160 postinstall-fix-obsolete: .NOTMAIN |
|
Line 161 postinstall-fix-obsolete: .NOTMAIN |
|
# |
# |
# Targets (in order!) called by "make build". |
# Targets (in order!) called by "make build". |
# |
# |
|
.if ${USE_TOOLS_TOOLCHAIN} == "no" |
|
LIBGCC_EXT=3 |
|
.else |
|
LIBGCC_EXT= |
|
.endif |
|
|
BUILDTARGETS+= check-tools |
BUILDTARGETS+= check-tools |
.if ${MKUPDATE} == "no" && !defined(NOCLEANDIR) |
.if ${MKUPDATE} == "no" && !defined(NOCLEANDIR) |
Line 179 BUILDTARGETS+= includes |
|
Line 185 BUILDTARGETS+= includes |
|
.endif |
.endif |
BUILDTARGETS+= do-tools-compat |
BUILDTARGETS+= do-tools-compat |
.if ${MKGCC} != "no" |
.if ${MKGCC} != "no" |
BUILDTARGETS+= do-gnu-lib-libgcc |
BUILDTARGETS+= do-gnu-lib-libgcc${LIBGCC_EXT} |
.endif |
.endif |
BUILDTARGETS+= do-lib-csu do-lib-libc do-lib do-gnu-lib do-ld.so do-build |
BUILDTARGETS+= do-lib-csu do-lib-libc |
|
.if ${MKCRYPTO} != "no" |
|
BUILDTARGETS+= do-lib-libdes |
|
.endif |
|
BUILDTARGETS+= do-lib do-gnu-lib |
|
BUILDTARGETS+= do-ld.so |
|
BUILDTARGETS+= do-build |
BUILDTARGETS+= do-obsolete |
BUILDTARGETS+= do-obsolete |
|
|
# |
# |
|
|
.for tgt in ${BUILDTARGETS} |
.for tgt in ${BUILDTARGETS} |
@(cd ${.CURDIR} && ${MAKE} ${tgt}) |
@(cd ${.CURDIR} && ${MAKE} ${tgt}) |
.endfor |
.endfor |
|
(cd ${.CURDIR}/etc && ${MAKE} install-etc-release) |
@echo "Build started at: ${START_TIME}" |
@echo "Build started at: ${START_TIME}" |
@printf "Build finished at: " && date |
@printf "Build finished at: " && date |
.endif |
.endif |
Line 288 release snapshot: |
|
Line 301 release snapshot: |
|
# |
# |
|
|
check-tools: |
check-tools: |
.if ${TOOLCHAIN_MISSING} == "yes" && !defined(EXTERNAL_TOOLCHAIN) |
.if ${TOOLCHAIN_MISSING} != "no" && !defined(EXTERNAL_TOOLCHAIN) |
@echo '*** WARNING: Building on MACHINE=${MACHINE} with missing toolchain.' |
@echo '*** WARNING: Building on MACHINE=${MACHINE} with missing toolchain.' |
@echo '*** May result in a failed build or corrupt binaries!' |
@echo '*** May result in a failed build or corrupt binaries!' |
.elif defined(EXTERNAL_TOOLCHAIN) |
.elif defined(EXTERNAL_TOOLCHAIN) |
Line 310 do-${targ}: ${targ} |
|
Line 323 do-${targ}: ${targ} |
|
@true |
@true |
.endfor |
.endfor |
|
|
.for dir in tools tools/compat lib/csu gnu/lib/libgcc lib/libc lib gnu/lib |
.for dir in tools tools/compat lib/csu gnu/lib/libgcc${LIBGCC_EXT} lib/libc lib/libdes lib gnu/lib |
do-${dir:S/\//-/g}: |
do-${dir:S/\//-/g}: |
.for targ in dependall install |
.for targ in dependall install |
(cd ${.CURDIR}/${dir} && ${MAKE} ${targ}) |
(cd ${.CURDIR}/${dir} && ${MAKE} ${targ}) |