Makefile.inc1 (245318) | Makefile.inc1 (245440) |
---|---|
1# | 1# |
2# $FreeBSD: head/Makefile.inc1 245318 2013-01-11 23:44:35Z brooks $ | 2# $FreeBSD: head/Makefile.inc1 245440 2013-01-15 00:12:34Z brooks $ |
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# -DNO_SHARE do not go into share subdir 8# -DKERNFAST define NO_KERNEL{CONFIG,CLEAN,DEPEND,OBJ} 9# -DNO_KERNELCONFIG do not run config in ${MAKE} buildkernel 10# -DNO_KERNELCLEAN do not run ${MAKE} clean in ${MAKE} buildkernel 11# -DNO_KERNELDEPEND do not run ${MAKE} depend in ${MAKE} buildkernel 12# -DNO_KERNELOBJ do not run ${MAKE} obj in ${MAKE} buildkernel 13# -DNO_PORTSUPDATE do not update ports in ${MAKE} update 14# -DNO_DOCUPDATE do not update doc in ${MAKE} update 15# -DNO_WWWUPDATE do not update www in ${MAKE} update | 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# -DNO_SHARE do not go into share subdir 8# -DKERNFAST define NO_KERNEL{CONFIG,CLEAN,DEPEND,OBJ} 9# -DNO_KERNELCONFIG do not run config in ${MAKE} buildkernel 10# -DNO_KERNELCLEAN do not run ${MAKE} clean in ${MAKE} buildkernel 11# -DNO_KERNELDEPEND do not run ${MAKE} depend in ${MAKE} buildkernel 12# -DNO_KERNELOBJ do not run ${MAKE} obj in ${MAKE} buildkernel 13# -DNO_PORTSUPDATE do not update ports in ${MAKE} update 14# -DNO_DOCUPDATE do not update doc in ${MAKE} update 15# -DNO_WWWUPDATE do not update www in ${MAKE} update |
16# -DDB_FROM_SRC use the user/group databases in src/etc instead of 17# the system database when installing. |
|
16# -DNO_CTF do not run the DTrace CTF conversion tools on built objects 17# LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list 18# LOCAL_LIB_DIRS="list of dirs" to add additional dirs to libraries target 19# LOCAL_MTREE="list of mtree files" to process to allow local directories 20# to be created before files are installed 21# LOCAL_TOOL_DIRS="list of dirs" to add additional dirs to the build-tools 22# list 23# TARGET="machine" to crossbuild world for a different machine type --- 311 unchanged lines hidden (view full) --- 335 DESTDIR=${LIB32TMP} \ 336 -DCOMPAT_32BIT \ 337 -DNO_CPU_CFLAGS \ 338 -DNO_CTF \ 339 -DNO_LINT 340 341LIB32WMAKE= ${LIB32WMAKEENV} ${MAKE} ${LIB32WMAKEFLAGS} \ 342 -DWITHOUT_BIND -DWITHOUT_MAN -DWITHOUT_INFO -DWITHOUT_HTML | 18# -DNO_CTF do not run the DTrace CTF conversion tools on built objects 19# LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list 20# LOCAL_LIB_DIRS="list of dirs" to add additional dirs to libraries target 21# LOCAL_MTREE="list of mtree files" to process to allow local directories 22# to be created before files are installed 23# LOCAL_TOOL_DIRS="list of dirs" to add additional dirs to the build-tools 24# list 25# TARGET="machine" to crossbuild world for a different machine type --- 311 unchanged lines hidden (view full) --- 337 DESTDIR=${LIB32TMP} \ 338 -DCOMPAT_32BIT \ 339 -DNO_CPU_CFLAGS \ 340 -DNO_CTF \ 341 -DNO_LINT 342 343LIB32WMAKE= ${LIB32WMAKEENV} ${MAKE} ${LIB32WMAKEFLAGS} \ 344 -DWITHOUT_BIND -DWITHOUT_MAN -DWITHOUT_INFO -DWITHOUT_HTML |
343LIB32IMAKE= ${LIB32WMAKE:NINSTALL=*:NDESTDIR=*:N_LDSCRIPTROOT=*} -DNO_INCS | 345LIB32IMAKE= ${LIB32WMAKE:NINSTALL=*:NDESTDIR=*:N_LDSCRIPTROOT=*} -DNO_INCS \ 346 ${IMAKE_INSTALL} |
344.endif 345 | 347.endif 348 |
346# install stage | |
347IMAKEENV= ${CROSSENV:N_LDSCRIPTROOT=*} | 349IMAKEENV= ${CROSSENV:N_LDSCRIPTROOT=*} |
348IMAKE= ${IMAKEENV} ${MAKE} -f Makefile.inc1 | 350IMAKE= ${IMAKEENV} ${MAKE} -f Makefile.inc1 \ 351 ${IMAKE_INSTALL} ${IMAKE_MTREE} |
349.if empty(.MAKEFLAGS:M-n) 350IMAKEENV+= PATH=${STRICTTMPPATH}:${INSTALLTMP} \ 351 LD_LIBRARY_PATH=${INSTALLTMP} \ 352 PATH_LOCALE=${INSTALLTMP}/locale 353IMAKE+= __MAKE_SHELL=${INSTALLTMP}/sh 354.else 355IMAKEENV+= PATH=${TMPPATH}:${INSTALLTMP} 356.endif | 352.if empty(.MAKEFLAGS:M-n) 353IMAKEENV+= PATH=${STRICTTMPPATH}:${INSTALLTMP} \ 354 LD_LIBRARY_PATH=${INSTALLTMP} \ 355 PATH_LOCALE=${INSTALLTMP}/locale 356IMAKE+= __MAKE_SHELL=${INSTALLTMP}/sh 357.else 358IMAKEENV+= PATH=${TMPPATH}:${INSTALLTMP} 359.endif |
360.if defined(DB_FROM_SRC) 361IMAKE_INSTALL= INSTALL="install -N ${.CURDIR}/etc" 362IMAKE_MTREE= MTREE_CMD="nmtree -N ${.CURDIR}/etc" 363.endif |
|
357 358# kernel stage 359KMAKEENV= ${WMAKEENV} 360KMAKE= ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} 361 362# 363# buildworld 364# --- 225 unchanged lines hidden (view full) --- 590# 591# installcheck 592# 593# Checks to be sure system is ready for installworld/installkernel. 594# 595installcheck: 596 597# | 364 365# kernel stage 366KMAKEENV= ${WMAKEENV} 367KMAKE= ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} 368 369# 370# buildworld 371# --- 225 unchanged lines hidden (view full) --- 597# 598# installcheck 599# 600# Checks to be sure system is ready for installworld/installkernel. 601# 602installcheck: 603 604# |
598# Require DESTDIR to be set if installing for a different architecture. | 605# Require DESTDIR to be set if installing for a different architecture or 606# using the user/group database in the source tree. |
599# | 607# |
600.if ${TARGET_ARCH} != ${MACHINE_ARCH} || ${TARGET} != ${MACHINE} | 608.if ${TARGET_ARCH} != ${MACHINE_ARCH} || ${TARGET} != ${MACHINE} || \ 609 defined(DB_FROM_SRC) |
601.if !make(distributeworld) 602installcheck: installcheck_DESTDIR 603installcheck_DESTDIR: 604.if !defined(DESTDIR) || empty(DESTDIR) 605 @echo "ERROR: Please set DESTDIR!"; \ 606 false 607.endif 608.endif 609.endif 610 | 610.if !make(distributeworld) 611installcheck: installcheck_DESTDIR 612installcheck_DESTDIR: 613.if !defined(DESTDIR) || empty(DESTDIR) 614 @echo "ERROR: Please set DESTDIR!"; \ 615 false 616.endif 617.endif 618.endif 619 |
620.if !defined(DB_FROM_SRC) |
|
611# 612# Check for missing UIDs/GIDs. 613# 614CHECK_UIDS= auditdistd 615CHECK_GIDS= audit 616.if ${MK_SENDMAIL} != "no" 617CHECK_UIDS+= smmsp 618CHECK_GIDS+= smmsp --- 11 unchanged lines hidden (view full) --- 630 fi 631.endfor 632.for gid in ${CHECK_GIDS} 633 @if ! `find / -prune -group ${gid} >/dev/null 2>&1`; then \ 634 echo "ERROR: Required ${gid} group is missing, see /usr/src/UPDATING."; \ 635 false; \ 636 fi 637.endfor | 621# 622# Check for missing UIDs/GIDs. 623# 624CHECK_UIDS= auditdistd 625CHECK_GIDS= audit 626.if ${MK_SENDMAIL} != "no" 627CHECK_UIDS+= smmsp 628CHECK_GIDS+= smmsp --- 11 unchanged lines hidden (view full) --- 640 fi 641.endfor 642.for gid in ${CHECK_GIDS} 643 @if ! `find / -prune -group ${gid} >/dev/null 2>&1`; then \ 644 echo "ERROR: Required ${gid} group is missing, see /usr/src/UPDATING."; \ 645 false; \ 646 fi 647.endfor |
648.endif |
|
638 639# 640# Required install tools to be saved in a scratch dir for safety. 641# 642.if ${MK_INFO} != "no" 643_install-info= install-info 644.endif 645.if ${MK_ZONEINFO} != "no" --- 41 unchanged lines hidden (view full) --- 687 echo $$2; \ 688 else \ 689 echo "Required library $$1 not found." >&2; \ 690 exit 1; \ 691 fi; \ 692 done); \ 693 cp $$libs $$progs ${INSTALLTMP} 694 cp -R $${PATH_LOCALE:-"/usr/share/locale"} ${INSTALLTMP}/locale | 649 650# 651# Required install tools to be saved in a scratch dir for safety. 652# 653.if ${MK_INFO} != "no" 654_install-info= install-info 655.endif 656.if ${MK_ZONEINFO} != "no" --- 41 unchanged lines hidden (view full) --- 698 echo $$2; \ 699 else \ 700 echo "Required library $$1 not found." >&2; \ 701 exit 1; \ 702 fi; \ 703 done); \ 704 cp $$libs $$progs ${INSTALLTMP} 705 cp -R $${PATH_LOCALE:-"/usr/share/locale"} ${INSTALLTMP}/locale |
706 rm -f ${METALOG} |
|
695.if make(distributeworld) 696.for dist in ${EXTRA_DISTRIBUTIONS} 697 -mkdir ${DESTDIR}/${DISTDIR}/${dist} 698 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.root.dist \ 699 -p ${DESTDIR}/${DISTDIR}/${dist} >/dev/null 700 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 701 -p ${DESTDIR}/${DISTDIR}/${dist}/usr >/dev/null 702 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ --- 45 unchanged lines hidden (view full) --- 748 @echo "--------------------------------------------------------------" 749 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 distribute 750.if defined(LIB32TMP) && ${MK_LIB32} != "no" 751 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 distribute32 \ 752 DISTRIBUTION=lib32 753.endif 754 755distrib-dirs distribution: | 707.if make(distributeworld) 708.for dist in ${EXTRA_DISTRIBUTIONS} 709 -mkdir ${DESTDIR}/${DISTDIR}/${dist} 710 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.root.dist \ 711 -p ${DESTDIR}/${DISTDIR}/${dist} >/dev/null 712 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ 713 -p ${DESTDIR}/${DISTDIR}/${dist}/usr >/dev/null 714 mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ --- 45 unchanged lines hidden (view full) --- 760 @echo "--------------------------------------------------------------" 761 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 distribute 762.if defined(LIB32TMP) && ${MK_LIB32} != "no" 763 ${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 distribute32 \ 764 DISTRIBUTION=lib32 765.endif 766 767distrib-dirs distribution: |
756 cd ${.CURDIR}/etc; ${CROSSENV} PATH=${TMPPATH} ${MAKE} ${.TARGET} | 768 cd ${.CURDIR}/etc; ${CROSSENV} PATH=${TMPPATH} ${MAKE} \ 769 ${IMAKE_INSTALL} ${.TARGET} |
757 758# 759# buildkernel and installkernel 760# 761# Which kernels to build and/or install is specified by setting 762# KERNCONF. If not defined a GENERIC kernel is built/installed. 763# Only the existing (depending TARGET) config files are used 764# for building kernels and only the first of these is designated --- 289 unchanged lines hidden (view full) --- 1054.if ${BOOTSTRAPPING} < 900006 1055_lex= usr.bin/lex 1056.endif 1057 1058.if ${BOOTSTRAPPING} < 1000013 1059_yacc= usr.bin/yacc 1060.endif 1061 | 770 771# 772# buildkernel and installkernel 773# 774# Which kernels to build and/or install is specified by setting 775# KERNCONF. If not defined a GENERIC kernel is built/installed. 776# Only the existing (depending TARGET) config files are used 777# for building kernels and only the first of these is designated --- 289 unchanged lines hidden (view full) --- 1067.if ${BOOTSTRAPPING} < 900006 1068_lex= usr.bin/lex 1069.endif 1070 1071.if ${BOOTSTRAPPING} < 1000013 1072_yacc= usr.bin/yacc 1073.endif 1074 |
1075.if defined(DB_FROM_SRC) && ${BOOTSTRAPPING} < 1000026 1076_nmtree= lib/libnetbsd \ 1077 usr.sbin/nmtree 1078.endif 1079 |
|
1062.if ${BOOTSTRAPPING} >= 900040 && ${BOOTSTRAPPING} < 900041 1063_awk= usr.bin/awk 1064.endif 1065 1066.if ${MK_BSNMP} != "no" && !exists(/usr/sbin/gensnmptree) 1067_gensnmptree= usr.sbin/bsnmpd/gensnmptree 1068.endif 1069 --- 45 unchanged lines hidden (view full) --- 1115 usr.bin/makewhatis \ 1116 ${_mklocale} \ 1117 usr.bin/rpcgen \ 1118 ${_sed} \ 1119 ${_yacc} \ 1120 ${_lex} \ 1121 usr.bin/xinstall \ 1122 ${_gensnmptree} \ | 1080.if ${BOOTSTRAPPING} >= 900040 && ${BOOTSTRAPPING} < 900041 1081_awk= usr.bin/awk 1082.endif 1083 1084.if ${MK_BSNMP} != "no" && !exists(/usr/sbin/gensnmptree) 1085_gensnmptree= usr.sbin/bsnmpd/gensnmptree 1086.endif 1087 --- 45 unchanged lines hidden (view full) --- 1133 usr.bin/makewhatis \ 1134 ${_mklocale} \ 1135 usr.bin/rpcgen \ 1136 ${_sed} \ 1137 ${_yacc} \ 1138 ${_lex} \ 1139 usr.bin/xinstall \ 1140 ${_gensnmptree} \ |
1123 usr.sbin/config | 1141 usr.sbin/config \ 1142 ${_nmtree} |
1124 ${_+_}@${ECHODIR} "===> ${_tool} (obj,depend,all,install)"; \ 1125 cd ${.CURDIR}/${_tool}; \ 1126 ${MAKE} DIRPRFX=${_tool}/ obj; \ 1127 ${MAKE} DIRPRFX=${_tool}/ depend; \ 1128 ${MAKE} DIRPRFX=${_tool}/ all; \ 1129 ${MAKE} DIRPRFX=${_tool}/ DESTDIR=${MAKEOBJDIRPREFIX}/legacy install 1130.endfor 1131 --- 596 unchanged lines hidden --- | 1143 ${_+_}@${ECHODIR} "===> ${_tool} (obj,depend,all,install)"; \ 1144 cd ${.CURDIR}/${_tool}; \ 1145 ${MAKE} DIRPRFX=${_tool}/ obj; \ 1146 ${MAKE} DIRPRFX=${_tool}/ depend; \ 1147 ${MAKE} DIRPRFX=${_tool}/ all; \ 1148 ${MAKE} DIRPRFX=${_tool}/ DESTDIR=${MAKEOBJDIRPREFIX}/legacy install 1149.endfor 1150 --- 596 unchanged lines hidden --- |