5457974230
everything else. Now it's possible for the target mkdep to build and install like "normal" host-tools do; should remove the function decl warnings reported by greywolf@starwolf.com on current-users.
69 lines
1.6 KiB
Makefile
69 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.29 2002/01/10 17:04:20 tv Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
# XXX We can't currently build the toolchain for x86-64.
|
|
.if ${MACHINE_ARCH} != "x86_64"
|
|
TOOLCHAIN_BITS= toolchain .WAIT dbsym mdsetimage
|
|
.endif
|
|
|
|
# Dependencies in SUBDIR below ordered to maximize parallel ability.
|
|
.if !defined(NOSUBDIR)
|
|
SUBDIR= host-mkdep .WAIT compat .WAIT \
|
|
binstall .WAIT \
|
|
crunchgen gencat lint lint2 lorder mkdep mtree rpcgen \
|
|
texinfo tsort makewhatis \
|
|
${TOOLCHAIN_BITS} \
|
|
yacc .WAIT \
|
|
groff \
|
|
lex .WAIT \
|
|
asn1_compile compile_et config lint1 msgc menuc makefs \
|
|
mklocale pwd_mkdb zic
|
|
|
|
.if ${MKMAINTAINERTOOLS:Uno} != "no"
|
|
SUBDIR+= m4 .WAIT autoconf
|
|
.endif
|
|
|
|
.if ${MACHINE} == sparc || ${MACHINE} == sparc64
|
|
SUBDIR+= sparc-installboot
|
|
.endif
|
|
.endif
|
|
|
|
.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes"
|
|
realall install: _warn
|
|
.if ${MKTOOLS:Uyes} == "no"
|
|
_warn:
|
|
@echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
|
|
@echo '*** updating your host toolchain. This should be used only as a'
|
|
@echo '*** temporary workaround for toolchain problems, as it will result'
|
|
@echo '*** in version skew and build errors over time!'
|
|
.else
|
|
_warn:
|
|
.endif
|
|
|
|
.for dir in ${SUBDIR:N.WAIT}
|
|
all-${dir} depend-${dir} dependall-${dir} install-${dir}:
|
|
@true
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.subdir.mk>
|
|
.include <bsd.obj.mk>
|
|
|
|
# For each .WAIT point, make sure the previous target is installed before
|
|
# building a dependent target.
|
|
_dep:=
|
|
_last:=
|
|
.for d in ${SUBDIR}
|
|
_this:= ${d}
|
|
.if ${_this} == ".WAIT"
|
|
_dep:= ${_dep} install-${_last}
|
|
.else
|
|
_last:= ${d}
|
|
depend-${d} all-${d} dependall-${d}: ${_dep}
|
|
.endif
|
|
.endfor
|
|
|
|
cleantools:
|
|
rm -r -f tools.${HOST_OSTYPE}
|