Makefile revision 1.29
11.29Stv#	$NetBSD: Makefile,v 1.29 2002/01/10 17:04:20 tv 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.29StvSUBDIR=	host-mkdep .WAIT compat .WAIT \
131.16Stv	binstall .WAIT \
141.29Stv		crunchgen gencat lint lint2 lorder mkdep mtree rpcgen \
151.20Sthorpej		texinfo tsort makewhatis \
161.24Sthorpej	${TOOLCHAIN_BITS} \
171.16Stv	yacc .WAIT \
181.16Stv		groff \
191.16Stv	lex .WAIT \
201.28Slukem		asn1_compile compile_et config lint1 msgc menuc makefs \
211.26Smrg		mklocale pwd_mkdb zic
221.22Stv
231.22Stv.if ${MKMAINTAINERTOOLS:Uno} != "no"
241.22StvSUBDIR+=	m4 .WAIT autoconf
251.25Smrg.endif
261.25Smrg
271.25Smrg.if ${MACHINE} == sparc || ${MACHINE} == sparc64
281.25SmrgSUBDIR+=	sparc-installboot
291.22Stv.endif
301.17Stv.endif
311.17Stv
321.18Sjmc.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes"
331.17Stvrealall install: _warn
341.19Sjmc.if ${MKTOOLS:Uyes} == "no"
351.17Stv_warn:
361.17Stv	@echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
371.17Stv	@echo '*** updating your host toolchain.  This should be used only as a'
381.17Stv	@echo '*** temporary workaround for toolchain problems, as it will result'
391.23Swiz	@echo '*** in version skew and build errors over time!'
401.18Sjmc.else
411.18Sjmc_warn:
421.18Sjmc.endif
431.17Stv
441.17Stv.for dir in ${SUBDIR:N.WAIT}
451.17Stvall-${dir} depend-${dir} dependall-${dir} install-${dir}:
461.17Stv	@true
471.17Stv.endfor
481.14Stv.endif
491.1Stv
501.1Stv.include <bsd.subdir.mk>
511.11Stv.include <bsd.obj.mk>
521.16Stv
531.16Stv# For each .WAIT point, make sure the previous target is installed before
541.16Stv# building a dependent target.
551.16Stv_dep:=
561.16Stv_last:=
571.16Stv.for d in ${SUBDIR}
581.16Stv_this:=		${d}
591.16Stv.if ${_this} == ".WAIT"
601.16Stv_dep:=		${_dep} install-${_last}
611.16Stv.else
621.16Stv_last:=		${d}
631.16Stvdepend-${d} all-${d} dependall-${d}: ${_dep}
641.16Stv.endif
651.16Stv.endfor
661.12Stv
671.12Stvcleantools:
681.12Stv	rm -r -f tools.${HOST_OSTYPE}
69