Makefile revision 1.261
11.261Sapb# $NetBSD: Makefile,v 1.261 2008/10/25 15:03:44 apb Exp $ 21.95Scjs 31.193Slukem# 41.95Scjs# This is the top-level makefile for building NetBSD. For an outline of 51.95Scjs# how to build a snapshot or release, as well as other release engineering 61.221Ssalo# information, see http://www.NetBSD.org/developers/releng/index.html 71.95Scjs# 81.95Scjs# Not everything you can set or do is documented in this makefile. In 91.95Scjs# particular, you should review the files in /usr/share/mk (especially 101.95Scjs# bsd.README) for general information on building programs and writing 111.95Scjs# Makefiles within this structure, and see the comments in src/etc/Makefile 121.95Scjs# for further information on installation and release set options. 131.95Scjs# 141.95Scjs# Variables listed below can be set on the make command line (highest 151.95Scjs# priority), in /etc/mk.conf (middle priority), or in the environment 161.95Scjs# (lowest priority). 171.95Scjs# 181.95Scjs# Variables: 191.101Ssommerfe# DESTDIR is the target directory for installation of the compiled 201.101Ssommerfe# software. It defaults to /. Note that programs are built against 211.101Ssommerfe# libraries installed in DESTDIR. 221.214Slukem# MKMAN, if `no', will prevent building of manual pages. 231.214Slukem# MKOBJDIRS, if not `no', will build object directories at 241.101Ssommerfe# an appropriate point in a build. 251.214Slukem# MKSHARE, if `no', will prevent building and installing 261.95Scjs# anything in /usr/share. 271.214Slukem# MKUPDATE, if not `no', will avoid a `make cleandir' at the start of 281.178Senami# `make build', as well as having the effects listed in 291.178Senami# /usr/share/mk/bsd.README. 301.125Smrg# NOCLEANDIR, if defined, will avoid a `make cleandir' at the start 311.178Senami# of the `make build'. 321.119Stoddpw# NOINCLUDES will avoid the `make includes' usually done by `make build'. 331.95Scjs# 341.214Slukem# See mk.conf(5) for more details. 351.214Slukem# 361.214Slukem# 371.95Scjs# Targets: 381.137Stv# build: 391.196Slukem# Builds a full release of NetBSD in DESTDIR, except for the 401.196Slukem# /etc configuration files. 411.196Slukem# If BUILD_DONE is set, this is an empty target. 421.196Slukem# distribution: 431.196Slukem# Builds a full release of NetBSD in DESTDIR, including the /etc 441.196Slukem# configuration files. 451.196Slukem# buildworld: 461.196Slukem# As per `make distribution', except that it ensures that DESTDIR 471.196Slukem# is not the root directory. 481.196Slukem# installworld: 491.196Slukem# Install the distribution from DESTDIR to INSTALLWORLDDIR (which 501.196Slukem# defaults to the root directory). Ensures that INSTALLWORLDDIR 511.196Slukem# is the not root directory if cross compiling. 521.137Stv# release: 531.240Slukem# Does a `make distribution', and then tars up the DESTDIR files 541.252Slukem# into ${RELEASEDIR}/${RELEASEMACHINEDIR}, in release(7) format. 551.196Slukem# (See etc/Makefile for more information on this.) 561.137Stv# regression-tests: 571.137Stv# Runs the regression tests in "regress" on this host. 581.206Slukem# sets: 591.252Slukem# Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets 601.252Slukem# from ${DESTDIR} 611.206Slukem# sourcesets: 621.206Slukem# Populate ${RELEASEDIR}/source/sets from ${NETBSDSRCDIR} 631.241Sapb# syspkgs: 641.252Slukem# Populate ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/syspkgs 651.252Slukem# from ${DESTDIR} 661.243Sapb# iso-image: 671.248Sjnemeth# Create CD-ROM image in RELEASEDIR/iso. 681.243Sapb# RELEASEDIR must already have been populated by `make release' 691.243Sapb# or equivalent. 701.248Sjnemeth# iso-image-source: 711.248Sjnemeth# Create CD-ROM image with source in RELEASEDIR/iso. 721.248Sjnemeth# RELEASEDIR must already have been populated by 731.248Sjnemeth# `make release sourcesets' or equivalent. 741.123Smrg# 751.137Stv# Targets invoked by `make build,' in order: 761.155Stv# cleandir: cleans the tree. 771.261Sapb# do-top-obj: creates the top level object directory. 781.260Sapb# do-tools-obj: creates object directories for the host toolchain. 791.260Sapb# do-tools: builds host toolchain. 801.137Stv# obj: creates object directories. 811.208Slukem# do-distrib-dirs: creates the distribution directories. 821.208Slukem# includes: installs include files. 831.202Sthorpej# do-tools-compat: builds the "libnbcompat" library; needed for some 841.202Sthorpej# random host tool programs in the source tree. 851.238Slukem# do-lib-csu: builds and installs prerequisites from lib/csu. 861.249Slukem# do-libgcc: builds and installs prerequisites from 871.249Slukem# gnu/lib/crtstuff${LIBGCC_EXT} (if necessary) and 881.249Slukem# gnu/lib/libgcc${LIBGCC_EXT}. 891.256Sgmcgarry# do-libpcc: builds and install prerequisites from 901.256Sgmcgarry# external/bsd/pcc/crtstuff and external/bsd/pcc/libpcc. 911.186Sthorpej# do-lib-libc: builds and installs prerequisites from lib/libc. 921.143Stv# do-lib: builds and installs prerequisites from lib. 931.143Stv# do-gnu-lib: builds and installs prerequisites from gnu/lib. 941.253Slukem# do-external-lib: builds and installs prerequisites from external/lib. 951.259Spooka# do-sys-rump-fs-lib: builds and installs prerequisites from sys/rump/fs/lib 961.259Spooka# do-sys-rump-net-lib: builds and installs prerequisites from sys/rump/net/lib 971.189Sitohy# do-ld.so: builds and installs prerequisites from libexec/ld.*_so. 981.137Stv# do-build: builds and installs the entire system. 991.257Slukem# do-x11: builds and installs X11; either 1001.258Sjnemeth# X11R7 from src/external/mit/xorg if ${MKXORG} != "no" 1011.257Slukem# or X11R6 from src/x11 if ${MKX11} != "no" 1021.222Slukem# do-obsolete: installs the obsolete sets (for the postinstall-* targets). 1031.193Slukem# 1041.32Scgd 1051.146Stv.if ${.MAKEFLAGS:M${.CURDIR}/share/mk} == "" 1061.146Stv.MAKEFLAGS: -m ${.CURDIR}/share/mk 1071.146Stv.endif 1081.163Stv 1091.193Slukem# 1101.163Stv# If _SRC_TOP_OBJ_ gets set here, we will end up with a directory that may 1111.163Stv# not be the top level objdir, because "make obj" can happen in the *middle* 1121.163Stv# of "make build" (long after <bsd.own.mk> is calculated it). So, pre-set 1131.163Stv# _SRC_TOP_OBJ_ here so it will not be added to ${.MAKEOVERRIDES}. 1141.193Slukem# 1151.163Stv_SRC_TOP_OBJ_= 1161.148Sjmc 1171.146Stv.include <bsd.own.mk> 1181.4Scgd 1191.193Slukem# 1201.137Stv# Sanity check: make sure that "make build" is not invoked simultaneously 1211.137Stv# with a standard recursive target. 1221.193Slukem# 1231.137Stv 1241.137Stv.if make(build) || make(release) || make(snapshot) 1251.137Stv.for targ in ${TARGETS:Nobj:Ncleandir} 1261.137Stv.if make(${targ}) && !target(.BEGIN) 1271.137Stv.BEGIN: 1281.137Stv @echo 'BUILD ABORTED: "make build" and "make ${targ}" are mutually exclusive.' 1291.137Stv @false 1301.137Stv.endif 1311.137Stv.endfor 1321.137Stv.endif 1331.58Stv 1341.261Sapb# 1351.261Sapb# _SUBDIR is used to set SUBDIR, after removing directories that have 1361.261Sapb# BUILD_${dir}=no, or that have no ${dir}/Makefile. 1371.261Sapb# 1381.253Slukem_SUBDIR= tools lib include gnu external bin games libexec sbin usr.bin 1391.251Sjmmv_SUBDIR+= usr.sbin share rescue sys etc tests .WAIT distrib regress 1401.105Sassar 1411.137Stv.for dir in ${_SUBDIR} 1421.261Sapb.if "${dir}" == ".WAIT" \ 1431.261Sapb || (${BUILD_${dir}:Uyes} != "no" && exists(${dir}/Makefile)) 1441.137StvSUBDIR+= ${dir} 1451.36Sexplorer.endif 1461.137Stv.endfor 1471.21Scgd 1481.13Sbrezak.if exists(regress) 1491.242Sdslregression-tests: .PHONY .MAKE 1501.10Scgd @echo Running regression tests... 1511.232Slukem ${MAKEDIRTARGET} regress regress 1521.13Sbrezak.endif 1531.20Scgd 1541.214Slukem.if ${MKUNPRIVED} != "no" 1551.179SthorpejNOPOSTINSTALL= # defined 1561.179Sthorpej.endif 1571.179Sthorpej 1581.242Sdslafterinstall: .PHONY .MAKE 1591.137Stv.if ${MKMAN} != "no" 1601.232Slukem ${MAKEDIRTARGET} share/man makedb 1611.137Stv.endif 1621.214Slukem.if (${MKUNPRIVED} != "no" && ${MKINFO} != "no") 1631.232Slukem ${MAKEDIRTARGET} gnu/usr.bin/texinfo/install-info infodir-meta 1641.176Slukem.endif 1651.179Sthorpej.if !defined(NOPOSTINSTALL) 1661.232Slukem ${MAKEDIRTARGET} . postinstall-check 1671.159Sperry.endif 1681.170Slukem 1691.239Slukem_POSTINSTALL= ${.CURDIR}/usr.sbin/postinstall/postinstall 1701.239Slukem 1711.228Slukempostinstall-check: .PHONY 1721.169Slukem @echo " === Post installation checks ===" 1731.250Spavel ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi 1741.171Slukem @echo " ================================" 1751.171Slukem 1761.228Slukempostinstall-fix: .NOTMAIN .PHONY 1771.171Slukem @echo " === Post installation fixes ===" 1781.239Slukem ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix 1791.212Slukem @echo " ===============================" 1801.212Slukem 1811.228Slukempostinstall-fix-obsolete: .NOTMAIN .PHONY 1821.212Slukem @echo " === Removing obsolete files ===" 1831.239Slukem ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete 1841.212Slukem @echo " ===============================" 1851.169Slukem 1861.108Serh 1871.193Slukem# 1881.137Stv# Targets (in order!) called by "make build". 1891.193Slukem# 1901.256Sgmcgarry.if defined(HAVE_GCC) 1911.245Smrg.if ${HAVE_GCC} == "3" 1921.220SmrgLIBGCC_EXT=3 1931.245Smrg.else 1941.244SmrgLIBGCC_EXT=4 1951.220Smrg.endif 1961.256Sgmcgarry.endif 1971.123Smrg 1981.156StvBUILDTARGETS+= check-tools 1991.214Slukem.if ${MKUPDATE} == "no" && !defined(NOCLEANDIR) 2001.155StvBUILDTARGETS+= cleandir 2011.155Stv.endif 2021.261Sapb.if ${MKOBJDIRS} != "no" 2031.261SapbBUILDTARGETS+= do-top-obj 2041.261Sapb.endif 2051.261Sapb.if ${USETOOLS} == "yes" # { 2061.149Stv.if ${MKOBJDIRS} != "no" 2071.260SapbBUILDTARGETS+= do-tools-obj 2081.123Smrg.endif 2091.152StvBUILDTARGETS+= do-tools 2101.261Sapb.endif # USETOOLS # } 2111.260Sapb.if ${MKOBJDIRS} != "no" 2121.260SapbBUILDTARGETS+= obj 2131.260Sapb.endif 2141.137Stv.if !defined(NODISTRIBDIRS) 2151.137StvBUILDTARGETS+= do-distrib-dirs 2161.131Stv.endif 2171.137Stv.if !defined(NOINCLUDES) 2181.137StvBUILDTARGETS+= includes 2191.131Stv.endif 2201.202SthorpejBUILDTARGETS+= do-tools-compat 2211.231SskrllBUILDTARGETS+= do-lib-csu 2221.207Sdrochner.if ${MKGCC} != "no" 2231.249SlukemBUILDTARGETS+= do-libgcc 2241.207Sdrochner.endif 2251.256Sgmcgarry.if ${MKPCC} != "no" 2261.256SgmcgarryBUILDTARGET+= do-libpcc 2271.256Sgmcgarry.endif 2281.231SskrllBUILDTARGETS+= do-lib-libc 2291.253SlukemBUILDTARGETS+= do-lib do-gnu-lib do-external-lib 2301.259SpookaBUILDTARGETS+= do-sys-rump-fs-lib do-sys-rump-net-lib 2311.224SlukemBUILDTARGETS+= do-ld.so 2321.224SlukemBUILDTARGETS+= do-build 2331.257Slukem.if ${MKX11} != "no" || ${MKXORG} != "no" 2341.227SlukemBUILDTARGETS+= do-x11 2351.227Slukem.endif 2361.200SlukemBUILDTARGETS+= do-obsolete 2371.131Stv 2381.193Slukem# 2391.137Stv# Enforce proper ordering of some rules. 2401.193Slukem# 2411.123Smrg 2421.137Stv.ORDER: ${BUILDTARGETS} 2431.228Slukemincludes-lib: .PHONY includes-include includes-sys 2441.228Slukemincludes-gnu: .PHONY includes-lib 2451.123Smrg 2461.193Slukem# 2471.137Stv# Build the system and install into DESTDIR. 2481.193Slukem# 2491.123Smrg 2501.191SlukemSTART_TIME!= date 2511.191Slukem 2521.242Sdslbuild: .PHONY .MAKE 2531.137Stv.if defined(BUILD_DONE) 2541.137Stv @echo "Build already installed into ${DESTDIR}" 2551.137Stv.else 2561.191Slukem @echo "Build started at: ${START_TIME}" 2571.145Stv.for tgt in ${BUILDTARGETS} 2581.232Slukem ${MAKEDIRTARGET} . ${tgt} 2591.145Stv.endfor 2601.232Slukem ${MAKEDIRTARGET} etc install-etc-release 2611.191Slukem @echo "Build started at: ${START_TIME}" 2621.172Sbjh21 @printf "Build finished at: " && date 2631.71Smycroft.endif 2641.160Sthorpej 2651.193Slukem# 2661.160Sthorpej# Build a full distribution, but not a release (i.e. no sets into 2671.193Slukem# ${RELEASEDIR}). "buildworld" enforces a build to ${DESTDIR} != / 2681.193Slukem# 2691.160Sthorpej 2701.242Sdsldistribution buildworld: .PHONY .MAKE 2711.194Slukem.if make(buildworld) && \ 2721.194Slukem (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/") 2731.193Slukem @echo "Won't make ${.TARGET} with DESTDIR=/" 2741.193Slukem @false 2751.193Slukem.endif 2761.232Slukem ${MAKEDIRTARGET} . build NOPOSTINSTALL=1 2771.232Slukem ${MAKEDIRTARGET} etc distribution INSTALL_DONE=1 2781.181Sthorpej.if defined(DESTDIR) && ${DESTDIR} != "" && ${DESTDIR} != "/" 2791.232Slukem ${MAKEDIRTARGET} . postinstall-fix-obsolete 2801.232Slukem ${MAKEDIRTARGET} distrib/sets checkflist 2811.181Sthorpej.endif 2821.192Slukem @echo "make ${.TARGET} started at: ${START_TIME}" 2831.185Slukem @printf "make ${.TARGET} finished at: " && date 2841.123Smrg 2851.193Slukem# 2861.193Slukem# Install the distribution from $DESTDIR to $INSTALLWORLDDIR (defaults to `/') 2871.193Slukem# If installing to /, ensures that the host's operating system is NetBSD and 2881.193Slukem# the host's `uname -m` == ${MACHINE}. 2891.193Slukem# 2901.193Slukem 2911.193SlukemHOST_UNAME_S!= uname -s 2921.193SlukemHOST_UNAME_M!= uname -m 2931.193Slukem 2941.242Sdslinstallworld: .PHONY .MAKE 2951.194Slukem.if (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/") 2961.193Slukem @echo "Can't make ${.TARGET} to DESTDIR=/" 2971.193Slukem @false 2981.193Slukem.endif 2991.193Slukem.if !defined(INSTALLWORLDDIR) || \ 3001.193Slukem ${INSTALLWORLDDIR} == "" || ${INSTALLWORLDDIR} == "/" 3011.193Slukem.if (${HOST_UNAME_S} != "NetBSD") 3021.193Slukem @echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_S} to NetBSD with INSTALLWORLDDIR=/" 3031.193Slukem @false 3041.193Slukem.endif 3051.193Slukem.if (${HOST_UNAME_M} != ${MACHINE}) 3061.193Slukem @echo "Won't cross-make ${.TARGET} from ${HOST_UNAME_M} to ${MACHINE} with INSTALLWORLDDIR=/" 3071.193Slukem @false 3081.193Slukem.endif 3091.193Slukem.endif 3101.232Slukem ${MAKEDIRTARGET} distrib/sets installsets \ 3111.232Slukem INSTALLDIR=${INSTALLWORLDDIR:U/} INSTALLSETS= 3121.232Slukem ${MAKEDIRTARGET} . postinstall-check DESTDIR=${INSTALLWORLDDIR} 3131.193Slukem @echo "make ${.TARGET} started at: ${START_TIME}" 3141.193Slukem @printf "make ${.TARGET} finished at: " && date 3151.199Slukem 3161.199Slukem# 3171.206Slukem# Create sets from $DESTDIR or $NETBSDSRCDIR into $RELEASEDIR 3181.199Slukem# 3191.199Slukem 3201.241Sapb.for tgt in sets sourcesets syspkgs 3211.242Sdsl${tgt}: .PHONY .MAKE 3221.232Slukem ${MAKEDIRTARGET} distrib/sets ${tgt} 3231.206Slukem.endfor 3241.193Slukem 3251.193Slukem# 3261.240Slukem# Build a release or snapshot (implies "make distribution"). Note that 3271.181Sthorpej# in this case, the set lists will be checked before the tar files 3281.181Sthorpej# are made. 3291.193Slukem# 3301.123Smrg 3311.242Sdslrelease snapshot: .PHONY .MAKE 3321.240Slukem ${MAKEDIRTARGET} . distribution 3331.240Slukem ${MAKEDIRTARGET} etc release DISTRIBUTION_DONE=1 3341.192Slukem @echo "make ${.TARGET} started at: ${START_TIME}" 3351.185Slukem @printf "make ${.TARGET} finished at: " && date 3361.123Smrg 3371.193Slukem# 3381.243Sapb# Create a CD-ROM image. 3391.243Sapb# 3401.243Sapb 3411.243Sapbiso-image: .PHONY 3421.247Sbouyer ${MAKEDIRTARGET} distrib iso_image 3431.243Sapb ${MAKEDIRTARGET} etc iso-image 3441.243Sapb @echo "make ${.TARGET} started at: ${START_TIME}" 3451.243Sapb @printf "make ${.TARGET} finished at: " && date 3461.243Sapb 3471.248Sjnemethiso-image-source: .PHONY 3481.248Sjnemeth ${MAKEDIRTARGET} distrib iso_image CDSOURCE=true 3491.248Sjnemeth ${MAKEDIRTARGET} etc iso-image 3501.248Sjnemeth @echo "make ${.TARGET} started at: ${START_TIME}" 3511.248Sjnemeth @printf "make ${.TARGET} finished at: " && date 3521.248Sjnemeth 3531.243Sapb# 3541.137Stv# Special components of the "make build" process. 3551.193Slukem# 3561.156Stv 3571.228Slukemcheck-tools: .PHONY 3581.223Slukem.if ${TOOLCHAIN_MISSING} != "no" && !defined(EXTERNAL_TOOLCHAIN) 3591.187Sthorpej @echo '*** WARNING: Building on MACHINE=${MACHINE} with missing toolchain.' 3601.187Sthorpej @echo '*** May result in a failed build or corrupt binaries!' 3611.187Sthorpej.elif defined(EXTERNAL_TOOLCHAIN) 3621.187Sthorpej @echo '*** Using external toolchain rooted at ${EXTERNAL_TOOLCHAIN}.' 3631.156Stv.endif 3641.173Ssommerfe.if defined(NBUILDJOBS) 3651.173Ssommerfe @echo '*** WARNING: NBUILDJOBS is obsolete; use -j directly instead!' 3661.173Ssommerfe.endif 3671.123Smrg 3681.242Sdsldo-distrib-dirs: .PHONY .MAKE 3691.147Sjmc.if !defined(DESTDIR) || ${DESTDIR} == "" 3701.232Slukem ${MAKEDIRTARGET} etc distrib-dirs DESTDIR=/ 3711.147Sjmc.else 3721.232Slukem ${MAKEDIRTARGET} etc distrib-dirs DESTDIR=${DESTDIR} 3731.147Sjmc.endif 3741.190Slukem 3751.190Slukem.for targ in cleandir obj includes 3761.228Slukemdo-${targ}: .PHONY ${targ} 3771.190Slukem @true 3781.190Slukem.endfor 3791.123Smrg 3801.256Sgmcgarry.if defined(HAVE_GCC) 3811.256SgmcgarryBUILD_CC_LIB= gnu/lib/crtstuff${LIBGCC_EXT} 3821.256SgmcgarryBUILD_CC_LIB+= gnu/lib/libgcc${LIBGCC_EXT} 3831.256Sgmcgarry.elif defined(HAVE_PCC) 3841.256SgmcgarryBUILD_CC_LIB+= external/bsd/pcc/crtstuff 3851.256SgmcgarryBUILD_CC_LIB+= external/bsd/pcc/libpcc 3861.256Sgmcgarry.endif 3871.256Sgmcgarry 3881.259Spooka.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 3891.242Sdsldo-${dir:S/\//-/g}: .PHONY .MAKE 3901.137Stv.for targ in dependall install 3911.232Slukem ${MAKEDIRTARGET} ${dir} ${targ} 3921.137Stv.endfor 3931.184Slukem.endfor 3941.184Slukem 3951.261Sapbdo-top-obj: .PHONY .MAKE 3961.261Sapb ${MAKEDIRTARGET} . obj NOSUBDIR= 3971.261Sapb 3981.260Sapbdo-tools-obj: .PHONY .MAKE 3991.260Sapb ${MAKEDIRTARGET} tools obj 4001.260Sapb 4011.249Slukemdo-libgcc: .PHONY .MAKE 4021.256Sgmcgarry.if defined(HAVE_GCC) 4031.249Slukem.if ${MKGCC} != "no" 4041.249Slukem.if (${HAVE_GCC} == "3" || ${HAVE_GCC} == "4") 4051.249Slukem ${MAKEDIRTARGET} . do-gnu-lib-crtstuff${LIBGCC_EXT} 4061.249Slukem.endif 4071.249Slukem ${MAKEDIRTARGET} . do-gnu-lib-libgcc${LIBGCC_EXT} 4081.249Slukem.endif 4091.256Sgmcgarry.endif 4101.256Sgmcgarry 4111.256Sgmcgarrydo-libpcc: .PHONY .MAKE 4121.256Sgmcgarry.if defined(HAVE_PCC) 4131.256Sgmcgarry.if ${MKPCC} != "no" 4141.256Sgmcgarry ${MAKEDIRTARGET} . do-pcc-lib-crtstuff 4151.256Sgmcgarry ${MAKEDIRTARGET} . do-pcc-lib-libpcc 4161.256Sgmcgarry.endif 4171.256Sgmcgarry.endif 4181.249Slukem 4191.242Sdsldo-ld.so: .PHONY .MAKE 4201.184Slukem.for targ in dependall install 4211.189Sitohy.if (${OBJECT_FMT} == "a.out") 4221.232Slukem ${MAKEDIRTARGET} libexec/ld.aout_so ${targ} 4231.189Sitohy.endif 4241.189Sitohy.if (${OBJECT_FMT} == "ELF") 4251.232Slukem ${MAKEDIRTARGET} libexec/ld.elf_so ${targ} 4261.189Sitohy.endif 4271.137Stv.endfor 4281.143Stv 4291.242Sdsldo-build: .PHONY .MAKE 4301.154Stv.for targ in dependall install 4311.232Slukem ${MAKEDIRTARGET} . ${targ} BUILD_tools=no BUILD_lib=no 4321.154Stv.endfor 4331.200Slukem 4341.242Sdsldo-x11: .PHONY .MAKE 4351.254Smrg.if ${MKXORG} != "no" 4361.254Smrg ${MAKEDIRTARGET} external/mit/xorg build 4371.257Slukem.elif ${MKX11} != "no" 4381.257Slukem ${MAKEDIRTARGET} x11 build 4391.254Smrg.else 4401.257Slukem @echo "Neither MKX11 or MKXORG is enabled" 4411.257Slukem @false 4421.254Smrg.endif 4431.227Slukem 4441.242Sdsldo-obsolete: .PHONY .MAKE 4451.232Slukem ${MAKEDIRTARGET} etc install-obsolete-lists 4461.87Scjs 4471.193Slukem# 4481.137Stv# Speedup stubs for some subtrees that don't need to run these rules. 4491.137Stv# (Tells <bsd.subdir.mk> not to recurse for them.) 4501.193Slukem# 4511.129Stv 4521.152Stv.for dir in bin etc distrib games libexec regress sbin usr.sbin tools 4531.228Slukemincludes-${dir}: .PHONY 4541.152Stv @true 4551.152Stv.endfor 4561.152Stv.for dir in etc distrib regress 4571.228Slukeminstall-${dir}: .PHONY 4581.152Stv @true 4591.152Stv.endfor 4601.152Stv 4611.193Slukem# 4621.152Stv# XXX this needs to change when distrib Makefiles are recursion compliant 4631.193Slukem# XXX many distrib subdirs need "cd etc && make snap_pre snap_kern" first... 4641.193Slukem# 4651.228Slukemdependall-distrib depend-distrib all-distrib: .PHONY 4661.136Snathanw @true 4671.130Stv 4681.211Slukem.include <bsd.sys.mk> 4691.151Stv.include <bsd.obj.mk> 4701.209Slukem.include <bsd.kernobj.mk> 4711.146Stv.include <bsd.subdir.mk> 4721.144Stv 4731.228Slukembuild-docs: .PHONY ${.CURDIR}/BUILDING 4741.188Slukem${.CURDIR}/BUILDING: doc/BUILDING.mdoc 4751.230Slukem ${_MKMSG_CREATE} ${.TARGET} 4761.216Slukem ${TOOL_GROFF} -mdoc -Tascii -P-bou $> >$@ 4771.209Slukem 4781.209Slukem 4791.209Slukem# 4801.209Slukem# Display current make(1) parameters 4811.209Slukem# 4821.242Sdslparams: .PHONY .MAKE 4831.232Slukem ${MAKEDIRTARGET} etc params 484