Makefile revision 1.31
11.31Stv# $NetBSD: Makefile,v 1.31 2002/01/29 10:20:31 tv Exp $ 21.31Stv 31.31Stv# XXX Note: NO_DBSYM and NO_MAKEFS are stopgap temporary variables for use 41.31Stv# with the development of non-NetBSD hosting support. These will go away. 51.1Stv 61.3Stv.include <bsd.own.mk> 71.3Stv 81.24Sthorpej# XXX We can't currently build the toolchain for x86-64. 91.24Sthorpej.if ${MACHINE_ARCH} != "x86_64" 101.31StvTOOLCHAIN_BITS= toolchain .WAIT ${NO_DBSYM:D:Udbsym} mdsetimage 111.31Stv.endif 121.31Stv 131.31Stv.if ${MKLINT} != "no" 141.31StvLINT_BITS= lint lint1 lint2 151.24Sthorpej.endif 161.24Sthorpej 171.16Stv# Dependencies in SUBDIR below ordered to maximize parallel ability. 181.14Stv.if !defined(NOSUBDIR) 191.29StvSUBDIR= host-mkdep .WAIT compat .WAIT \ 201.16Stv binstall .WAIT \ 211.31Stv crunchgen gencat lorder makewhatis mkdep mtree \ 221.31Stv rpcgen texinfo tsort \ 231.24Sthorpej ${TOOLCHAIN_BITS} \ 241.16Stv yacc .WAIT \ 251.16Stv groff \ 261.16Stv lex .WAIT \ 271.31Stv ${LINT_BITS} asn1_compile compile_et config \ 281.31Stv ${NO_MAKEFS:D:Umakefs} menuc mklocale msgc pax pwd_mkdb zic 291.22Stv 301.22Stv.if ${MKMAINTAINERTOOLS:Uno} != "no" 311.22StvSUBDIR+= m4 .WAIT autoconf 321.25Smrg.endif 331.25Smrg 341.25Smrg.if ${MACHINE} == sparc || ${MACHINE} == sparc64 351.25SmrgSUBDIR+= sparc-installboot 361.22Stv.endif 371.17Stv.endif 381.17Stv 391.18Sjmc.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes" 401.17Stvrealall install: _warn 411.19Sjmc.if ${MKTOOLS:Uyes} == "no" 421.17Stv_warn: 431.17Stv @echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and' 441.17Stv @echo '*** updating your host toolchain. This should be used only as a' 451.17Stv @echo '*** temporary workaround for toolchain problems, as it will result' 461.23Swiz @echo '*** in version skew and build errors over time!' 471.18Sjmc.else 481.18Sjmc_warn: 491.18Sjmc.endif 501.17Stv 511.17Stv.for dir in ${SUBDIR:N.WAIT} 521.17Stvall-${dir} depend-${dir} dependall-${dir} install-${dir}: 531.17Stv @true 541.17Stv.endfor 551.14Stv.endif 561.1Stv 571.1Stv.include <bsd.subdir.mk> 581.11Stv.include <bsd.obj.mk> 591.16Stv 601.16Stv# For each .WAIT point, make sure the previous target is installed before 611.16Stv# building a dependent target. 621.16Stv_dep:= 631.16Stv_last:= 641.16Stv.for d in ${SUBDIR} 651.16Stv_this:= ${d} 661.16Stv.if ${_this} == ".WAIT" 671.16Stv_dep:= ${_dep} install-${_last} 681.16Stv.else 691.16Stv_last:= ${d} 701.16Stvdepend-${d} all-${d} dependall-${d}: ${_dep} 711.16Stv.endif 721.16Stv.endfor 731.12Stv 741.12Stvcleantools: 751.12Stv rm -r -f tools.${HOST_OSTYPE} 76