Makefile.inc1 (290017) | Makefile.inc1 (291777) |
---|---|
1# | 1# |
2# $FreeBSD: stable/10/Makefile.inc1 290017 2015-10-26 17:49:13Z bdrewery $ | 2# $FreeBSD: stable/10/Makefile.inc1 291777 2015-12-04 17:56:10Z bdrewery $ |
3# 4# Make command line options: 5# -DNO_CLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir 6# -DNO_CLEAN do not clean at all 7# -DDB_FROM_SRC use the user/group databases in src/etc instead of 8# the system database when installing. 9# -DNO_SHARE do not go into share subdir 10# -DKERNFAST define NO_KERNEL{CONFIG,CLEAN,DEPEND,OBJ} --- 452 unchanged lines hidden (view full) --- 463KMAKE= ${KMAKEENV} ${MAKE} ${.MAKEFLAGS} ${KERNEL_FLAGS} KERNEL=${INSTKERNNAME} 464 465# 466# buildworld 467# 468# Attempt to rebuild the entire system, with reasonable chance of 469# success, regardless of how old your existing system is. 470# | 3# 4# Make command line options: 5# -DNO_CLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir 6# -DNO_CLEAN do not clean at all 7# -DDB_FROM_SRC use the user/group databases in src/etc instead of 8# the system database when installing. 9# -DNO_SHARE do not go into share subdir 10# -DKERNFAST define NO_KERNEL{CONFIG,CLEAN,DEPEND,OBJ} --- 452 unchanged lines hidden (view full) --- 463KMAKE= ${KMAKEENV} ${MAKE} ${.MAKEFLAGS} ${KERNEL_FLAGS} KERNEL=${INSTKERNNAME} 464 465# 466# buildworld 467# 468# Attempt to rebuild the entire system, with reasonable chance of 469# success, regardless of how old your existing system is. 470# |
471_worldtmp: | 471_worldtmp: .PHONY |
472.if ${.CURDIR:C/[^,]//g} != "" 473# The m4 build of sendmail files doesn't like it if ',' is used 474# anywhere in the path of it's files. 475 @echo 476 @echo "*** Error: path to source tree contains a comma ','" 477 @echo 478 false 479.endif --- 107 unchanged lines hidden (view full) --- 587 ${_+_}cd ${.CURDIR}; ${WMAKE} par-depend 588everything: 589 @echo 590 @echo "--------------------------------------------------------------" 591 @echo ">>> stage 4.4: building everything" 592 @echo "--------------------------------------------------------------" 593 ${_+_}cd ${.CURDIR}; ${WMAKE} par-all 594.if defined(LIB32TMP) | 472.if ${.CURDIR:C/[^,]//g} != "" 473# The m4 build of sendmail files doesn't like it if ',' is used 474# anywhere in the path of it's files. 475 @echo 476 @echo "*** Error: path to source tree contains a comma ','" 477 @echo 478 false 479.endif --- 107 unchanged lines hidden (view full) --- 587 ${_+_}cd ${.CURDIR}; ${WMAKE} par-depend 588everything: 589 @echo 590 @echo "--------------------------------------------------------------" 591 @echo ">>> stage 4.4: building everything" 592 @echo "--------------------------------------------------------------" 593 ${_+_}cd ${.CURDIR}; ${WMAKE} par-all 594.if defined(LIB32TMP) |
595build32: | 595build32: .PHONY |
596 @echo 597 @echo "--------------------------------------------------------------" 598 @echo ">>> stage 5.1: building 32 bit shim libraries" 599 @echo "--------------------------------------------------------------" 600 mkdir -p ${LIB32TMP}/usr/include 601 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 602 -p ${LIB32TMP}/usr >/dev/null 603 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ 604 -p ${LIB32TMP}/usr/include >/dev/null 605.if ${MK_DEBUG_FILES} != "no" 606 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.debug.dist \ 607 -p ${LIB32TMP}/usr/lib >/dev/null 608.endif 609 mkdir -p ${WORLDTMP} 610 ln -sf ${.CURDIR}/sys ${WORLDTMP} 611.for _t in obj includes | 596 @echo 597 @echo "--------------------------------------------------------------" 598 @echo ">>> stage 5.1: building 32 bit shim libraries" 599 @echo "--------------------------------------------------------------" 600 mkdir -p ${LIB32TMP}/usr/include 601 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 602 -p ${LIB32TMP}/usr >/dev/null 603 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ 604 -p ${LIB32TMP}/usr/include >/dev/null 605.if ${MK_DEBUG_FILES} != "no" 606 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.debug.dist \ 607 -p ${LIB32TMP}/usr/lib >/dev/null 608.endif 609 mkdir -p ${WORLDTMP} 610 ln -sf ${.CURDIR}/sys ${WORLDTMP} 611.for _t in obj includes |
612 cd ${.CURDIR}/include; ${LIB32WMAKE} DIRPRFX=include/ ${_t} 613 cd ${.CURDIR}/lib; ${LIB32WMAKE} DIRPRFX=lib/ ${_t} | 612 ${_+_}cd ${.CURDIR}/include; ${LIB32WMAKE} DIRPRFX=include/ ${_t} 613 ${_+_}cd ${.CURDIR}/lib; ${LIB32WMAKE} DIRPRFX=lib/ ${_t} |
614.if ${MK_CDDL} != "no" | 614.if ${MK_CDDL} != "no" |
615 cd ${.CURDIR}/cddl/lib; ${LIB32WMAKE} DIRPRFX=cddl/lib/ ${_t} | 615 ${_+_}cd ${.CURDIR}/cddl/lib; ${LIB32WMAKE} DIRPRFX=cddl/lib/ ${_t} |
616.endif | 616.endif |
617 cd ${.CURDIR}/gnu/lib; ${LIB32WMAKE} DIRPRFX=gnu/lib/ ${_t} | 617 ${_+_}cd ${.CURDIR}/gnu/lib; ${LIB32WMAKE} DIRPRFX=gnu/lib/ ${_t} |
618.if ${MK_CRYPT} != "no" | 618.if ${MK_CRYPT} != "no" |
619 cd ${.CURDIR}/secure/lib; ${LIB32WMAKE} DIRPRFX=secure/lib/ ${_t} | 619 ${_+_}cd ${.CURDIR}/secure/lib; ${LIB32WMAKE} DIRPRFX=secure/lib/ ${_t} |
620.endif 621.if ${MK_KERBEROS} != "no" | 620.endif 621.if ${MK_KERBEROS} != "no" |
622 cd ${.CURDIR}/kerberos5/lib; ${LIB32WMAKE} DIRPRFX=kerberos5/lib ${_t} | 622 ${_+_}cd ${.CURDIR}/kerberos5/lib; ${LIB32WMAKE} DIRPRFX=kerberos5/lib ${_t} |
623.endif 624.endfor 625.for _dir in usr.bin/lex/lib | 623.endif 624.endfor 625.for _dir in usr.bin/lex/lib |
626 cd ${.CURDIR}/${_dir}; ${LIB32WMAKE} DIRPRFX=${_dir}/ obj | 626 ${_+_}cd ${.CURDIR}/${_dir}; ${LIB32WMAKE} DIRPRFX=${_dir}/ obj |
627.endfor 628.for _dir in lib/ncurses/ncurses lib/ncurses/ncursesw lib/libmagic | 627.endfor 628.for _dir in lib/ncurses/ncurses lib/ncurses/ncursesw lib/libmagic |
629 cd ${.CURDIR}/${_dir}; \ | 629 ${_+_}cd ${.CURDIR}/${_dir}; \ |
630 WORLDTMP=${WORLDTMP} \ 631 MAKEFLAGS="-m ${.CURDIR}/tools/build/mk ${.MAKEFLAGS}" \ 632 MAKEOBJDIRPREFIX=${OBJTREE}/lib32 ${MAKE} SSP_CFLAGS= DESTDIR= \ 633 DIRPRFX=${_dir}/ -DNO_LINT -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF \ 634 -DEARLY_BUILD build-tools 635.endfor | 630 WORLDTMP=${WORLDTMP} \ 631 MAKEFLAGS="-m ${.CURDIR}/tools/build/mk ${.MAKEFLAGS}" \ 632 MAKEOBJDIRPREFIX=${OBJTREE}/lib32 ${MAKE} SSP_CFLAGS= DESTDIR= \ 633 DIRPRFX=${_dir}/ -DNO_LINT -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF \ 634 -DEARLY_BUILD build-tools 635.endfor |
636 cd ${.CURDIR}; \ | 636 ${_+_}cd ${.CURDIR}; \ |
637 ${LIB32WMAKE} -f Makefile.inc1 libraries 638.for _t in obj depend all | 637 ${LIB32WMAKE} -f Makefile.inc1 libraries 638.for _t in obj depend all |
639 cd ${.CURDIR}/libexec/rtld-elf; PROG=ld-elf32.so.1 ${LIB32WMAKE} \ | 639 ${_+_}cd ${.CURDIR}/libexec/rtld-elf; PROG=ld-elf32.so.1 ${LIB32WMAKE} \ |
640 DIRPRFX=libexec/rtld-elf/ ${_t} | 640 DIRPRFX=libexec/rtld-elf/ ${_t} |
641 cd ${.CURDIR}/usr.bin/ldd; PROG=ldd32 ${LIB32WMAKE} \ | 641 ${_+_}cd ${.CURDIR}/usr.bin/ldd; PROG=ldd32 ${LIB32WMAKE} \ |
642 DIRPRFX=usr.bin/ldd ${_t} 643.endfor 644 | 642 DIRPRFX=usr.bin/ldd ${_t} 643.endfor 644 |
645distribute32 install32: 646 cd ${.CURDIR}/lib; ${LIB32IMAKE} ${.TARGET:S/32$//} | 645distribute32 install32: .MAKE .PHONY 646 ${_+_}cd ${.CURDIR}/lib; ${LIB32IMAKE} ${.TARGET:S/32$//} |
647.if ${MK_CDDL} != "no" | 647.if ${MK_CDDL} != "no" |
648 cd ${.CURDIR}/cddl/lib; ${LIB32IMAKE} ${.TARGET:S/32$//} | 648 ${_+_}cd ${.CURDIR}/cddl/lib; ${LIB32IMAKE} ${.TARGET:S/32$//} |
649.endif | 649.endif |
650 cd ${.CURDIR}/gnu/lib; ${LIB32IMAKE} ${.TARGET:S/32$//} | 650 ${_+_}cd ${.CURDIR}/gnu/lib; ${LIB32IMAKE} ${.TARGET:S/32$//} |
651.if ${MK_CRYPT} != "no" | 651.if ${MK_CRYPT} != "no" |
652 cd ${.CURDIR}/secure/lib; ${LIB32IMAKE} ${.TARGET:S/32$//} | 652 ${_+_}cd ${.CURDIR}/secure/lib; ${LIB32IMAKE} ${.TARGET:S/32$//} |
653.endif 654.if ${MK_KERBEROS} != "no" | 653.endif 654.if ${MK_KERBEROS} != "no" |
655 cd ${.CURDIR}/kerberos5/lib; ${LIB32IMAKE} ${.TARGET:S/32$//} | 655 ${_+_}cd ${.CURDIR}/kerberos5/lib; ${LIB32IMAKE} ${.TARGET:S/32$//} |
656.endif | 656.endif |
657 cd ${.CURDIR}/libexec/rtld-elf; \ | 657 ${_+_}cd ${.CURDIR}/libexec/rtld-elf; \ |
658 PROG=ld-elf32.so.1 ${LIB32IMAKE} ${.TARGET:S/32$//} | 658 PROG=ld-elf32.so.1 ${LIB32IMAKE} ${.TARGET:S/32$//} |
659 cd ${.CURDIR}/usr.bin/ldd; PROG=ldd32 ${LIB32IMAKE} ${.TARGET:S/32$//} | 659 ${_+_}cd ${.CURDIR}/usr.bin/ldd; PROG=ldd32 ${LIB32IMAKE} \ 660 ${.TARGET:S/32$//} |
660.endif 661 662WMAKE_TGTS= 663.if !defined(SUBDIR_OVERRIDE) 664WMAKE_TGTS+= _worldtmp _legacy _bootstrap-tools 665.endif 666WMAKE_TGTS+= _cleanobj _obj _build-tools 667.if !defined(SUBDIR_OVERRIDE) --- 198 unchanged lines hidden (view full) --- 866 sed -e 's#^\./#./${dist}/#' >> ${METALOG} 867 ${IMAKEENV} nmtree -C -f ${.CURDIR}/etc/mtree/BSD.usr.dist | \ 868 sed -e 's#^\./#./${dist}/usr/#' >> ${METALOG} 869 ${IMAKEENV} nmtree -C -f ${.CURDIR}/etc/mtree/BSD.include.dist | \ 870 sed -e 's#^\./#./${dist}/usr/include/#' >> ${METALOG} 871.endif 872.endfor 873 -mkdir ${DESTDIR}/${DISTDIR}/base | 661.endif 662 663WMAKE_TGTS= 664.if !defined(SUBDIR_OVERRIDE) 665WMAKE_TGTS+= _worldtmp _legacy _bootstrap-tools 666.endif 667WMAKE_TGTS+= _cleanobj _obj _build-tools 668.if !defined(SUBDIR_OVERRIDE) --- 198 unchanged lines hidden (view full) --- 867 sed -e 's#^\./#./${dist}/#' >> ${METALOG} 868 ${IMAKEENV} nmtree -C -f ${.CURDIR}/etc/mtree/BSD.usr.dist | \ 869 sed -e 's#^\./#./${dist}/usr/#' >> ${METALOG} 870 ${IMAKEENV} nmtree -C -f ${.CURDIR}/etc/mtree/BSD.include.dist | \ 871 sed -e 's#^\./#./${dist}/usr/include/#' >> ${METALOG} 872.endif 873.endfor 874 -mkdir ${DESTDIR}/${DISTDIR}/base |
874 cd ${.CURDIR}/etc; ${CROSSENV} PATH=${TMPPATH} ${MAKE} \ | 875 ${_+_}cd ${.CURDIR}/etc; ${CROSSENV} PATH=${TMPPATH} ${MAKE} \ |
875 METALOG=${METALOG} ${IMAKE_INSTALL} ${IMAKE_MTREE} \ 876 DISTBASE=/base DESTDIR=${DESTDIR}/${DISTDIR}/base \ 877 LOCAL_MTREE=${LOCAL_MTREE:Q} distrib-dirs 878.endif 879 ${_+_}cd ${.CURDIR}; ${IMAKE} re${.TARGET:S/world$//}; \ 880 ${IMAKEENV} rm -rf ${INSTALLTMP} 881.if make(distributeworld) 882.for dist in ${EXTRA_DISTRIBUTIONS} --- 55 unchanged lines hidden (view full) --- 938 939# 940# reinstall 941# 942# If you have a build server, you can NFS mount the source and obj directories 943# and do a 'make reinstall' on the *client* to install new binaries from the 944# most recent server build. 945# | 876 METALOG=${METALOG} ${IMAKE_INSTALL} ${IMAKE_MTREE} \ 877 DISTBASE=/base DESTDIR=${DESTDIR}/${DISTDIR}/base \ 878 LOCAL_MTREE=${LOCAL_MTREE:Q} distrib-dirs 879.endif 880 ${_+_}cd ${.CURDIR}; ${IMAKE} re${.TARGET:S/world$//}; \ 881 ${IMAKEENV} rm -rf ${INSTALLTMP} 882.if make(distributeworld) 883.for dist in ${EXTRA_DISTRIBUTIONS} --- 55 unchanged lines hidden (view full) --- 939 940# 941# reinstall 942# 943# If you have a build server, you can NFS mount the source and obj directories 944# and do a 'make reinstall' on the *client* to install new binaries from the 945# most recent server build. 946# |
946reinstall: .MAKE | 947reinstall: .MAKE .PHONY |
947 @echo "--------------------------------------------------------------" 948 @echo ">>> Making hierarchy" 949 @echo "--------------------------------------------------------------" 950 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 \ 951 LOCAL_MTREE=${LOCAL_MTREE:Q} hierarchy 952 @echo 953 @echo "--------------------------------------------------------------" 954 @echo ">>> Installing everything" 955 @echo "--------------------------------------------------------------" 956 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 install 957.if defined(LIB32TMP) && ${MK_LIB32} != "no" 958 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 install32 959.endif 960 | 948 @echo "--------------------------------------------------------------" 949 @echo ">>> Making hierarchy" 950 @echo "--------------------------------------------------------------" 951 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 \ 952 LOCAL_MTREE=${LOCAL_MTREE:Q} hierarchy 953 @echo 954 @echo "--------------------------------------------------------------" 955 @echo ">>> Installing everything" 956 @echo "--------------------------------------------------------------" 957 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 install 958.if defined(LIB32TMP) && ${MK_LIB32} != "no" 959 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 install32 960.endif 961 |
961redistribute: .MAKE | 962redistribute: .MAKE .PHONY |
962 @echo "--------------------------------------------------------------" 963 @echo ">>> Distributing everything" 964 @echo "--------------------------------------------------------------" 965 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 distribute 966.if defined(LIB32TMP) && ${MK_LIB32} != "no" 967 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 distribute32 \ 968 DISTRIBUTION=lib32 969.endif 970 | 963 @echo "--------------------------------------------------------------" 964 @echo ">>> Distributing everything" 965 @echo "--------------------------------------------------------------" 966 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 distribute 967.if defined(LIB32TMP) && ${MK_LIB32} != "no" 968 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 distribute32 \ 969 DISTRIBUTION=lib32 970.endif 971 |
971distrib-dirs distribution: .MAKE | 972distrib-dirs distribution: .MAKE .PHONY |
972 cd ${.CURDIR}/etc; ${CROSSENV} PATH=${TMPPATH} ${MAKE} \ 973 ${IMAKE_INSTALL} ${IMAKE_MTREE} METALOG=${METALOG} ${.TARGET} 974 975# 976# buildkernel and installkernel 977# 978# Which kernels to build and/or install is specified by setting 979# KERNCONF. If not defined a GENERIC kernel is built/installed. --- 34 unchanged lines hidden (view full) --- 1014.if exists(${KERNCONFDIR}/${_kernel}) 1015BUILDKERNELS+= ${_kernel} 1016.if empty(INSTALLKERNEL) 1017INSTALLKERNEL= ${_kernel} 1018.endif 1019.endif 1020.endfor 1021 | 973 cd ${.CURDIR}/etc; ${CROSSENV} PATH=${TMPPATH} ${MAKE} \ 974 ${IMAKE_INSTALL} ${IMAKE_MTREE} METALOG=${METALOG} ${.TARGET} 975 976# 977# buildkernel and installkernel 978# 979# Which kernels to build and/or install is specified by setting 980# KERNCONF. If not defined a GENERIC kernel is built/installed. --- 34 unchanged lines hidden (view full) --- 1015.if exists(${KERNCONFDIR}/${_kernel}) 1016BUILDKERNELS+= ${_kernel} 1017.if empty(INSTALLKERNEL) 1018INSTALLKERNEL= ${_kernel} 1019.endif 1020.endif 1021.endfor 1022 |
1022buildkernel ${WMAKE_TGTS} ${.ALLTARGETS:M_*}: .MAKE | 1023${WMAKE_TGTS:N_worldtmp:Nbuild32} ${.ALLTARGETS:M_*:N_worldtmp}: .MAKE .PHONY |
1023 1024# 1025# buildkernel 1026# 1027# Builds all kernels defined by BUILDKERNELS. 1028# | 1024 1025# 1026# buildkernel 1027# 1028# Builds all kernels defined by BUILDKERNELS. 1029# |
1029buildkernel: | 1030buildkernel: .MAKE .PHONY |
1030.if empty(BUILDKERNELS) 1031 @echo "ERROR: Missing kernel configuration file(s) (${KERNCONF})."; \ 1032 false 1033.endif 1034 @echo 1035.for _kernel in ${BUILDKERNELS} 1036 @echo "--------------------------------------------------------------" 1037 @echo ">>> Kernel build for ${_kernel} started on `LC_ALL=C date`" --- 10 unchanged lines hidden (view full) --- 1048 config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} \ 1049 -I '${KERNCONFDIR}' '${KERNCONFDIR}/${_kernel}' 1050.endif 1051.if !defined(NO_CLEAN) && !defined(NO_KERNELCLEAN) 1052 @echo 1053 @echo "--------------------------------------------------------------" 1054 @echo ">>> stage 2.1: cleaning up the object tree" 1055 @echo "--------------------------------------------------------------" | 1031.if empty(BUILDKERNELS) 1032 @echo "ERROR: Missing kernel configuration file(s) (${KERNCONF})."; \ 1033 false 1034.endif 1035 @echo 1036.for _kernel in ${BUILDKERNELS} 1037 @echo "--------------------------------------------------------------" 1038 @echo ">>> Kernel build for ${_kernel} started on `LC_ALL=C date`" --- 10 unchanged lines hidden (view full) --- 1049 config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} \ 1050 -I '${KERNCONFDIR}' '${KERNCONFDIR}/${_kernel}' 1051.endif 1052.if !defined(NO_CLEAN) && !defined(NO_KERNELCLEAN) 1053 @echo 1054 @echo "--------------------------------------------------------------" 1055 @echo ">>> stage 2.1: cleaning up the object tree" 1056 @echo "--------------------------------------------------------------" |
1056 cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} ${CLEANDIR} | 1057 ${_+_}cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} ${CLEANDIR} |
1057.endif 1058.if !defined(NO_KERNELOBJ) 1059 @echo 1060 @echo "--------------------------------------------------------------" 1061 @echo ">>> stage 2.2: rebuilding the object tree" 1062 @echo "--------------------------------------------------------------" | 1058.endif 1059.if !defined(NO_KERNELOBJ) 1060 @echo 1061 @echo "--------------------------------------------------------------" 1062 @echo ">>> stage 2.2: rebuilding the object tree" 1063 @echo "--------------------------------------------------------------" |
1063 cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} obj | 1064 ${_+_}cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} obj |
1064.endif 1065 @echo 1066 @echo "--------------------------------------------------------------" 1067 @echo ">>> stage 2.3: build tools" 1068 @echo "--------------------------------------------------------------" 1069 ${_+_}cd ${.CURDIR}; ${KTMAKE} kernel-tools 1070.if !defined(NO_KERNELDEPEND) 1071 @echo 1072 @echo "--------------------------------------------------------------" 1073 @echo ">>> stage 3.1: making dependencies" 1074 @echo "--------------------------------------------------------------" | 1065.endif 1066 @echo 1067 @echo "--------------------------------------------------------------" 1068 @echo ">>> stage 2.3: build tools" 1069 @echo "--------------------------------------------------------------" 1070 ${_+_}cd ${.CURDIR}; ${KTMAKE} kernel-tools 1071.if !defined(NO_KERNELDEPEND) 1072 @echo 1073 @echo "--------------------------------------------------------------" 1074 @echo ">>> stage 3.1: making dependencies" 1075 @echo "--------------------------------------------------------------" |
1075 cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} depend -DNO_MODULES_OBJ | 1076 ${_+_}cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} depend -DNO_MODULES_OBJ |
1076.endif 1077 @echo 1078 @echo "--------------------------------------------------------------" 1079 @echo ">>> stage 3.2: building everything" 1080 @echo "--------------------------------------------------------------" | 1077.endif 1078 @echo 1079 @echo "--------------------------------------------------------------" 1080 @echo ">>> stage 3.2: building everything" 1081 @echo "--------------------------------------------------------------" |
1081 cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} all -DNO_MODULES_OBJ | 1082 ${_+_}cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} all -DNO_MODULES_OBJ |
1082 @echo "--------------------------------------------------------------" 1083 @echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C date`" 1084 @echo "--------------------------------------------------------------" 1085.endfor 1086 1087# 1088# installkernel, etc. 1089# --- 66 unchanged lines hidden (view full) --- 1156.endfor 1157.endif 1158 1159# 1160# doxygen 1161# 1162# Build the API documentation with doxygen 1163# | 1083 @echo "--------------------------------------------------------------" 1084 @echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C date`" 1085 @echo "--------------------------------------------------------------" 1086.endfor 1087 1088# 1089# installkernel, etc. 1090# --- 66 unchanged lines hidden (view full) --- 1157.endfor 1158.endif 1159 1160# 1161# doxygen 1162# 1163# Build the API documentation with doxygen 1164# |
1164doxygen: | 1165doxygen: .PHONY |
1165 @if [ ! -x `/usr/bin/which doxygen` ]; then \ 1166 echo "You need doxygen (devel/doxygen) to generate the API documentation of the kernel." | /usr/bin/fmt; \ 1167 exit 1; \ 1168 fi | 1166 @if [ ! -x `/usr/bin/which doxygen` ]; then \ 1167 echo "You need doxygen (devel/doxygen) to generate the API documentation of the kernel." | /usr/bin/fmt; \ 1168 exit 1; \ 1169 fi |
1169 cd ${.CURDIR}/tools/kerneldoc/subsys && ${MAKE} obj all | 1170 ${_+_}cd ${.CURDIR}/tools/kerneldoc/subsys && ${MAKE} obj all |
1170 1171# 1172# update 1173# 1174# Update the source tree(s), by running svn/svnup to update to the 1175# latest copy. 1176# 1177update: --- 252 unchanged lines hidden (view full) --- 1430 ${MAKE} DIRPRFX=${_tool}/ depend && \ 1431 ${MAKE} DIRPRFX=${_tool}/ all 1432.endfor 1433 1434 1435# 1436# kernel-tools: Build kernel-building tools 1437# | 1171 1172# 1173# update 1174# 1175# Update the source tree(s), by running svn/svnup to update to the 1176# latest copy. 1177# 1178update: --- 252 unchanged lines hidden (view full) --- 1431 ${MAKE} DIRPRFX=${_tool}/ depend && \ 1432 ${MAKE} DIRPRFX=${_tool}/ all 1433.endfor 1434 1435 1436# 1437# kernel-tools: Build kernel-building tools 1438# |
1438kernel-tools: .MAKE | 1439kernel-tools: |
1439 mkdir -p ${MAKEOBJDIRPREFIX}/usr 1440 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 1441 -p ${MAKEOBJDIRPREFIX}/usr >/dev/null 1442 1443# 1444# cross-tools: Build cross-building tools 1445# 1446.if !defined(TARGET_ARCH) && defined(XDEV_ARCH) --- 28 unchanged lines hidden (view full) --- 1475.endif 1476 1477# The boot2 for pc98 requires gcc. 1478.if ${TARGET} == "pc98" 1479_cc= gnu/usr.bin/cc 1480.endif 1481.endif 1482 | 1440 mkdir -p ${MAKEOBJDIRPREFIX}/usr 1441 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 1442 -p ${MAKEOBJDIRPREFIX}/usr >/dev/null 1443 1444# 1445# cross-tools: Build cross-building tools 1446# 1447.if !defined(TARGET_ARCH) && defined(XDEV_ARCH) --- 28 unchanged lines hidden (view full) --- 1476.endif 1477 1478# The boot2 for pc98 requires gcc. 1479.if ${TARGET} == "pc98" 1480_cc= gnu/usr.bin/cc 1481.endif 1482.endif 1483 |
1483cross-tools: .MAKE | 1484cross-tools: .MAKE .PHONY |
1484.for _tool in \ 1485 ${_clang_libs} \ 1486 ${_clang} \ 1487 ${_binutils} \ 1488 ${_cc} \ 1489 usr.bin/xlint/lint1 usr.bin/xlint/lint2 usr.bin/xlint/xlint \ 1490 ${_btxld} \ 1491 ${_crunchide} \ --- 15 unchanged lines hidden (view full) --- 1507 MACHINE=${TARGET} MACHINE_ARCH=${TARGET_ARCH} \ 1508 -DWITHOUT_GDB -DNO_TESTS \ 1509 SSP_CFLAGS= \ 1510 -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT -DWITHOUT_MAN \ 1511 -DNO_PIC -DNO_PROFILE -DNO_SHARED \ 1512 -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF \ 1513 -DWITHOUT_CLANG_FULL -DWITHOUT_LLDB 1514 | 1485.for _tool in \ 1486 ${_clang_libs} \ 1487 ${_clang} \ 1488 ${_binutils} \ 1489 ${_cc} \ 1490 usr.bin/xlint/lint1 usr.bin/xlint/lint2 usr.bin/xlint/xlint \ 1491 ${_btxld} \ 1492 ${_crunchide} \ --- 15 unchanged lines hidden (view full) --- 1508 MACHINE=${TARGET} MACHINE_ARCH=${TARGET_ARCH} \ 1509 -DWITHOUT_GDB -DNO_TESTS \ 1510 SSP_CFLAGS= \ 1511 -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT -DWITHOUT_MAN \ 1512 -DNO_PIC -DNO_PROFILE -DNO_SHARED \ 1513 -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF \ 1514 -DWITHOUT_CLANG_FULL -DWITHOUT_LLDB 1515 |
1515native-xtools: .MAKE | 1516native-xtools: .PHONY |
1516 mkdir -p ${OBJTREE}/nxb-bin/bin 1517 mkdir -p ${OBJTREE}/nxb-bin/sbin 1518 mkdir -p ${OBJTREE}/nxb-bin/usr 1519 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 1520 -p ${OBJTREE}/nxb-bin/usr >/dev/null 1521 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ 1522 -p ${OBJTREE}/nxb-bin/usr/include >/dev/null 1523.for _tool in \ --- 60 unchanged lines hidden (view full) --- 1584 ${NXBMAKE} DIRPRFX=${_tool}/ depend && \ 1585 ${NXBMAKE} DIRPRFX=${_tool}/ all && \ 1586 ${NXBMAKE} DIRPRFX=${_tool}/ DESTDIR=${OBJTREE}/nxb-bin install 1587.endfor 1588 1589# 1590# hierarchy - ensure that all the needed directories are present 1591# | 1517 mkdir -p ${OBJTREE}/nxb-bin/bin 1518 mkdir -p ${OBJTREE}/nxb-bin/sbin 1519 mkdir -p ${OBJTREE}/nxb-bin/usr 1520 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 1521 -p ${OBJTREE}/nxb-bin/usr >/dev/null 1522 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ 1523 -p ${OBJTREE}/nxb-bin/usr/include >/dev/null 1524.for _tool in \ --- 60 unchanged lines hidden (view full) --- 1585 ${NXBMAKE} DIRPRFX=${_tool}/ depend && \ 1586 ${NXBMAKE} DIRPRFX=${_tool}/ all && \ 1587 ${NXBMAKE} DIRPRFX=${_tool}/ DESTDIR=${OBJTREE}/nxb-bin install 1588.endfor 1589 1590# 1591# hierarchy - ensure that all the needed directories are present 1592# |
1592hierarchy hier: .MAKE 1593 cd ${.CURDIR}/etc && ${HMAKE} distrib-dirs | 1593hierarchy hier: .MAKE .PHONY 1594 ${_+_}cd ${.CURDIR}/etc && ${HMAKE} distrib-dirs |
1594 1595# 1596# libraries - build all libraries, and install them under ${DESTDIR}. 1597# 1598# The list of libraries with dependents (${_prebuild_libs}) and their 1599# interdependencies (__L) are built automatically by the 1600# ${.CURDIR}/tools/make_libdeps.sh script. 1601# | 1595 1596# 1597# libraries - build all libraries, and install them under ${DESTDIR}. 1598# 1599# The list of libraries with dependents (${_prebuild_libs}) and their 1600# interdependencies (__L) are built automatically by the 1601# ${.CURDIR}/tools/make_libdeps.sh script. 1602# |
1602libraries: .MAKE 1603 cd ${.CURDIR} && \ | 1603libraries: .MAKE .PHONY 1604 ${_+_}cd ${.CURDIR} && \ |
1604 ${MAKE} -f Makefile.inc1 _prereq_libs && \ 1605 ${MAKE} -f Makefile.inc1 _startup_libs && \ 1606 ${MAKE} -f Makefile.inc1 _prebuild_libs && \ 1607 ${MAKE} -f Makefile.inc1 _generic_libs 1608 1609# 1610# static libgcc.a prerequisite for shared libc 1611# --- 482 unchanged lines hidden (view full) --- 2094.endif 2095 2096.ORDER: xdev-build xdev-install 2097xdev: xdev-build xdev-install 2098 2099.ORDER: _xb-worldtmp _xb-bootstrap-tools _xb-build-tools _xb-cross-tools 2100xdev-build: _xb-worldtmp _xb-bootstrap-tools _xb-build-tools _xb-cross-tools 2101 | 1605 ${MAKE} -f Makefile.inc1 _prereq_libs && \ 1606 ${MAKE} -f Makefile.inc1 _startup_libs && \ 1607 ${MAKE} -f Makefile.inc1 _prebuild_libs && \ 1608 ${MAKE} -f Makefile.inc1 _generic_libs 1609 1610# 1611# static libgcc.a prerequisite for shared libc 1612# --- 482 unchanged lines hidden (view full) --- 2095.endif 2096 2097.ORDER: xdev-build xdev-install 2098xdev: xdev-build xdev-install 2099 2100.ORDER: _xb-worldtmp _xb-bootstrap-tools _xb-build-tools _xb-cross-tools 2101xdev-build: _xb-worldtmp _xb-bootstrap-tools _xb-build-tools _xb-cross-tools 2102 |
2102_xb-worldtmp: | 2103_xb-worldtmp: .PHONY |
2103 mkdir -p ${CDTMP}/usr 2104 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 2105 -p ${CDTMP}/usr >/dev/null 2106 | 2104 mkdir -p ${CDTMP}/usr 2105 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 2106 -p ${CDTMP}/usr >/dev/null 2107 |
2107_xb-bootstrap-tools: | 2108_xb-bootstrap-tools: .PHONY |
2108.for _tool in \ 2109 ${_clang_tblgen} 2110 ${_+_}@${ECHODIR} "===> ${_tool} (obj,depend,all,install)"; \ 2111 cd ${.CURDIR}/${_tool} && \ 2112 ${CDMAKE} DIRPRFX=${_tool}/ obj && \ 2113 ${CDMAKE} DIRPRFX=${_tool}/ depend && \ 2114 ${CDMAKE} DIRPRFX=${_tool}/ all && \ 2115 ${CDMAKE} DIRPRFX=${_tool}/ DESTDIR=${CDTMP} install 2116.endfor 2117 | 2109.for _tool in \ 2110 ${_clang_tblgen} 2111 ${_+_}@${ECHODIR} "===> ${_tool} (obj,depend,all,install)"; \ 2112 cd ${.CURDIR}/${_tool} && \ 2113 ${CDMAKE} DIRPRFX=${_tool}/ obj && \ 2114 ${CDMAKE} DIRPRFX=${_tool}/ depend && \ 2115 ${CDMAKE} DIRPRFX=${_tool}/ all && \ 2116 ${CDMAKE} DIRPRFX=${_tool}/ DESTDIR=${CDTMP} install 2117.endfor 2118 |
2118_xb-build-tools: | 2119_xb-build-tools: .PHONY |
2119 ${_+_}@cd ${.CURDIR}; \ 2120 ${CDBENV} ${MAKE} -f Makefile.inc1 ${NOFUN} build-tools 2121 | 2120 ${_+_}@cd ${.CURDIR}; \ 2121 ${CDBENV} ${MAKE} -f Makefile.inc1 ${NOFUN} build-tools 2122 |
2122_xb-cross-tools: | 2123_xb-cross-tools: .PHONY |
2123.for _tool in \ 2124 ${_binutils} \ 2125 usr.bin/ar \ 2126 ${_clang_libs} \ 2127 ${_clang} \ 2128 ${_cc} 2129 ${_+_}@${ECHODIR} "===> xdev ${_tool} (obj,depend,all)"; \ 2130 cd ${.CURDIR}/${_tool} && \ 2131 ${CDMAKE} DIRPRFX=${_tool}/ obj && \ 2132 ${CDMAKE} DIRPRFX=${_tool}/ depend && \ 2133 ${CDMAKE} DIRPRFX=${_tool}/ all 2134.endfor 2135 | 2124.for _tool in \ 2125 ${_binutils} \ 2126 usr.bin/ar \ 2127 ${_clang_libs} \ 2128 ${_clang} \ 2129 ${_cc} 2130 ${_+_}@${ECHODIR} "===> xdev ${_tool} (obj,depend,all)"; \ 2131 cd ${.CURDIR}/${_tool} && \ 2132 ${CDMAKE} DIRPRFX=${_tool}/ obj && \ 2133 ${CDMAKE} DIRPRFX=${_tool}/ depend && \ 2134 ${CDMAKE} DIRPRFX=${_tool}/ all 2135.endfor 2136 |
2136_xi-mtree: | 2137_xi-mtree: .PHONY |
2137 ${_+_}@${ECHODIR} "mtree populating ${XDDESTDIR}" 2138 mkdir -p ${XDDESTDIR} 2139 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.root.dist \ 2140 -p ${XDDESTDIR} >/dev/null 2141 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 2142 -p ${XDDESTDIR}/usr >/dev/null 2143 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ 2144 -p ${XDDESTDIR}/usr/include >/dev/null 2145.if ${MK_TESTS} != "no" 2146 mkdir -p ${XDDESTDIR}${TESTSBASE} 2147 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.tests.dist \ 2148 -p ${XDDESTDIR}${TESTSBASE} >/dev/null 2149.endif 2150 2151.ORDER: xdev-build _xi-mtree _xi-cross-tools _xi-includes _xi-libraries _xi-links 2152xdev-install: xdev-build _xi-mtree _xi-cross-tools _xi-includes _xi-libraries _xi-links 2153 | 2138 ${_+_}@${ECHODIR} "mtree populating ${XDDESTDIR}" 2139 mkdir -p ${XDDESTDIR} 2140 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.root.dist \ 2141 -p ${XDDESTDIR} >/dev/null 2142 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 2143 -p ${XDDESTDIR}/usr >/dev/null 2144 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ 2145 -p ${XDDESTDIR}/usr/include >/dev/null 2146.if ${MK_TESTS} != "no" 2147 mkdir -p ${XDDESTDIR}${TESTSBASE} 2148 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.tests.dist \ 2149 -p ${XDDESTDIR}${TESTSBASE} >/dev/null 2150.endif 2151 2152.ORDER: xdev-build _xi-mtree _xi-cross-tools _xi-includes _xi-libraries _xi-links 2153xdev-install: xdev-build _xi-mtree _xi-cross-tools _xi-includes _xi-libraries _xi-links 2154 |
2154_xi-cross-tools: | 2155_xi-cross-tools: .PHONY |
2155 @echo "_xi-cross-tools" 2156.for _tool in \ 2157 ${_binutils} \ 2158 usr.bin/ar \ 2159 ${_clang_libs} \ 2160 ${_clang} \ 2161 ${_cc} 2162 ${_+_}@${ECHODIR} "===> xdev ${_tool} (install)"; \ 2163 cd ${.CURDIR}/${_tool}; \ 2164 ${CDMAKE} DIRPRFX=${_tool}/ install DESTDIR=${XDDESTDIR} 2165.endfor 2166 | 2156 @echo "_xi-cross-tools" 2157.for _tool in \ 2158 ${_binutils} \ 2159 usr.bin/ar \ 2160 ${_clang_libs} \ 2161 ${_clang} \ 2162 ${_cc} 2163 ${_+_}@${ECHODIR} "===> xdev ${_tool} (install)"; \ 2164 cd ${.CURDIR}/${_tool}; \ 2165 ${CDMAKE} DIRPRFX=${_tool}/ install DESTDIR=${XDDESTDIR} 2166.endfor 2167 |
2167_xi-includes: | 2168_xi-includes: .PHONY |
2168 ${_+_}cd ${.CURDIR}; ${CD2MAKE} -f Makefile.inc1 par-includes \ 2169 DESTDIR=${XDDESTDIR} 2170 | 2169 ${_+_}cd ${.CURDIR}; ${CD2MAKE} -f Makefile.inc1 par-includes \ 2170 DESTDIR=${XDDESTDIR} 2171 |
2171_xi-libraries: | 2172_xi-libraries: .PHONY |
2172 ${_+_}cd ${.CURDIR}; ${CD2MAKE} -f Makefile.inc1 libraries \ 2173 DESTDIR=${XDDESTDIR} 2174 | 2173 ${_+_}cd ${.CURDIR}; ${CD2MAKE} -f Makefile.inc1 libraries \ 2174 DESTDIR=${XDDESTDIR} 2175 |
2175_xi-links: | 2176_xi-links: .PHONY |
2176 ${_+_}cd ${XDDESTDIR}/usr/bin; \ 2177 mkdir -p ../../../../usr/bin; \ 2178 for i in *; do \ 2179 ln -sf ../../${XDTP}/usr/bin/$$i \ 2180 ../../../../usr/bin/${XDDIR}-$$i; \ 2181 ln -sf ../../${XDTP}/usr/bin/$$i \ 2182 ../../../../usr/bin/${XDDIR}${OSREL}-$$i; \ 2183 done 2184.else 2185xdev xdev-build xdev-install: 2186 @echo "*** Error: Both XDEV and XDEV_ARCH must be defined for \"${.TARGET}\" target" 2187.endif | 2177 ${_+_}cd ${XDDESTDIR}/usr/bin; \ 2178 mkdir -p ../../../../usr/bin; \ 2179 for i in *; do \ 2180 ln -sf ../../${XDTP}/usr/bin/$$i \ 2181 ../../../../usr/bin/${XDDIR}-$$i; \ 2182 ln -sf ../../${XDTP}/usr/bin/$$i \ 2183 ../../../../usr/bin/${XDDIR}${OSREL}-$$i; \ 2184 done 2185.else 2186xdev xdev-build xdev-install: 2187 @echo "*** Error: Both XDEV and XDEV_ARCH must be defined for \"${.TARGET}\" target" 2188.endif |