Makefile revision 1.35
11.35Spk#	$NetBSD: Makefile,v 1.35 2002/02/11 07:21:41 pk Exp $
21.31Stv
31.32Stv# XXX Note: NO_DBSYM is a stopgap temporary variable for use
41.32Stv# with the development of non-NetBSD hosting support.  This 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.16Stv# Dependencies in SUBDIR below ordered to maximize parallel ability.
141.14Stv.if !defined(NOSUBDIR)
151.29StvSUBDIR=	host-mkdep .WAIT compat .WAIT \
161.16Stv	binstall .WAIT \
171.32Stv		cap_mkdb crunchgen ctags gencat lint lint2 lorder \
181.32Stv		m4 makewhatis mkdep mtree rpcgen tsort uudecode \
191.32Stv	texinfo .WAIT \
201.16Stv	yacc .WAIT \
211.16Stv		groff \
221.16Stv	lex .WAIT \
231.32Stv	${TOOLCHAIN_BITS} \
241.32Stv		asn1_compile compile_et config lint1 \
251.32Stv		makefs menuc mklocale msgc pax pwd_mkdb zic
261.22Stv
271.22Stv.if ${MKMAINTAINERTOOLS:Uno} != "no"
281.32StvSUBDIR+=	autoconf
291.25Smrg.endif
301.25Smrg
311.25Smrg.if ${MACHINE} == sparc || ${MACHINE} == sparc64
321.25SmrgSUBDIR+=	sparc-installboot
331.22Stv.endif
341.17Stv.endif
351.17Stv
361.18Sjmc.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes"
371.17Stvrealall install: _warn
381.19Sjmc.if ${MKTOOLS:Uyes} == "no"
391.17Stv_warn:
401.17Stv	@echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
411.17Stv	@echo '*** updating your host toolchain.  This should be used only as a'
421.17Stv	@echo '*** temporary workaround for toolchain problems, as it will result'
431.23Swiz	@echo '*** in version skew and build errors over time!'
441.18Sjmc.else
451.18Sjmc_warn:
461.18Sjmc.endif
471.17Stv
481.17Stv.for dir in ${SUBDIR:N.WAIT}
491.17Stvall-${dir} depend-${dir} dependall-${dir} install-${dir}:
501.17Stv	@true
511.17Stv.endfor
521.14Stv.endif
531.1Stv
541.1Stv.include <bsd.subdir.mk>
551.11Stv.include <bsd.obj.mk>
561.16Stv
571.16Stv# For each .WAIT point, make sure the previous target is installed before
581.16Stv# building a dependent target.
591.35Spk_dep:=
601.16Stv_last:=
611.16Stv.for d in ${SUBDIR}
621.16Stv_this:=		${d}
631.16Stv.if ${_this} == ".WAIT"
641.35Spk_dep:=		${_dep} install-${_last}
651.34Spk.ORDER: depend-${_last} all-${_last} dependall-${_last} install-${_last}
661.16Stv.else
671.16Stv_last:=		${d}
681.35Spkdepend-${d} all-${d} dependall-${d}: ${_dep}
691.16Stv.endif
701.16Stv.endfor
711.12Stv
721.12Stvcleantools:
731.12Stv	rm -r -f tools.${HOST_OSTYPE}
74