Makefile revision 1.24
11.24Sthorpej# $NetBSD: Makefile,v 1.24 2001/12/31 22:35:41 thorpej Exp $ 21.1Stv 31.3Stv.include <bsd.own.mk> 41.3Stv 51.24Sthorpej# XXX We can't currently build the toolchain for x86-64. 61.24Sthorpej.if ${MACHINE_ARCH} != "x86_64" 71.24SthorpejTOOLCHAIN_BITS= toolchain .WAIT dbsym mdsetimage 81.24Sthorpej.endif 91.24Sthorpej 101.16Stv# Dependencies in SUBDIR below ordered to maximize parallel ability. 111.14Stv.if !defined(NOSUBDIR) 121.22StvSUBDIR= mkdep .WAIT compat .WAIT \ 131.16Stv binstall .WAIT \ 141.16Stv crunchgen gencat lint lint2 lorder mtree rpcgen \ 151.20Sthorpej texinfo tsort makewhatis \ 161.24Sthorpej ${TOOLCHAIN_BITS} \ 171.16Stv yacc .WAIT \ 181.16Stv groff \ 191.16Stv lex .WAIT \ 201.21Sjmc asn1_compile compile_et config lint1 msgc menuc mklocale \ 211.21Sjmc pwd_mkdb 221.22Stv 231.22Stv.if ${MKMAINTAINERTOOLS:Uno} != "no" 241.22StvSUBDIR+= m4 .WAIT autoconf 251.22Stv.endif 261.17Stv.endif 271.17Stv 281.18Sjmc.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes" 291.17Stvrealall install: _warn 301.19Sjmc.if ${MKTOOLS:Uyes} == "no" 311.17Stv_warn: 321.17Stv @echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and' 331.17Stv @echo '*** updating your host toolchain. This should be used only as a' 341.17Stv @echo '*** temporary workaround for toolchain problems, as it will result' 351.23Swiz @echo '*** in version skew and build errors over time!' 361.18Sjmc.else 371.18Sjmc_warn: 381.18Sjmc.endif 391.17Stv 401.17Stv.for dir in ${SUBDIR:N.WAIT} 411.17Stvall-${dir} depend-${dir} dependall-${dir} install-${dir}: 421.17Stv @true 431.17Stv.endfor 441.14Stv.endif 451.1Stv 461.1Stv.include <bsd.subdir.mk> 471.11Stv.include <bsd.obj.mk> 481.16Stv 491.16Stv# For each .WAIT point, make sure the previous target is installed before 501.16Stv# building a dependent target. 511.16Stv_dep:= 521.16Stv_last:= 531.16Stv.for d in ${SUBDIR} 541.16Stv_this:= ${d} 551.16Stv.if ${_this} == ".WAIT" 561.16Stv_dep:= ${_dep} install-${_last} 571.16Stv.else 581.16Stv_last:= ${d} 591.16Stvdepend-${d} all-${d} dependall-${d}: ${_dep} 601.16Stv.endif 611.16Stv.endfor 621.12Stv 631.12Stvcleantools: 641.12Stv rm -r -f tools.${HOST_OSTYPE} 65