2002-01-09 19:58:35 +03:00
|
|
|
# $NetBSD: Makefile,v 1.27 2002/01/09 16:58:35 tv Exp $
|
2001-08-14 15:01:55 +04:00
|
|
|
|
2001-09-22 08:15:19 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2002-01-01 01:35:41 +03:00
|
|
|
# XXX We can't currently build the toolchain for x86-64.
|
|
|
|
.if ${MACHINE_ARCH} != "x86_64"
|
|
|
|
TOOLCHAIN_BITS= toolchain .WAIT dbsym mdsetimage
|
|
|
|
.endif
|
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
# Dependencies in SUBDIR below ordered to maximize parallel ability.
|
2001-11-02 08:07:22 +03:00
|
|
|
.if !defined(NOSUBDIR)
|
2001-12-12 00:17:56 +03:00
|
|
|
SUBDIR= mkdep .WAIT compat .WAIT \
|
2001-11-13 02:16:17 +03:00
|
|
|
binstall .WAIT \
|
|
|
|
crunchgen gencat lint lint2 lorder mtree rpcgen \
|
2001-11-30 02:51:38 +03:00
|
|
|
texinfo tsort makewhatis \
|
2002-01-01 01:35:41 +03:00
|
|
|
${TOOLCHAIN_BITS} \
|
2001-11-13 02:16:17 +03:00
|
|
|
yacc .WAIT \
|
|
|
|
groff \
|
|
|
|
lex .WAIT \
|
2002-01-09 19:58:35 +03:00
|
|
|
asn1_compile compile_et config lint1 msgc menuc \
|
2002-01-05 10:36:33 +03:00
|
|
|
mklocale pwd_mkdb zic
|
2001-12-12 00:17:56 +03:00
|
|
|
|
|
|
|
.if ${MKMAINTAINERTOOLS:Uno} != "no"
|
|
|
|
SUBDIR+= m4 .WAIT autoconf
|
|
|
|
.endif
|
2002-01-05 10:03:30 +03:00
|
|
|
|
|
|
|
.if ${MACHINE} == sparc || ${MACHINE} == sparc64
|
|
|
|
SUBDIR+= sparc-installboot
|
|
|
|
.endif
|
2001-11-02 08:07:22 +03:00
|
|
|
.endif
|
2001-08-14 15:01:55 +04:00
|
|
|
|
2001-11-22 03:13:10 +03:00
|
|
|
.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes"
|
2001-11-13 19:17:24 +03:00
|
|
|
realall install: _warn
|
2001-11-22 22:09:42 +03:00
|
|
|
.if ${MKTOOLS:Uyes} == "no"
|
2001-11-13 19:17:24 +03:00
|
|
|
_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'
|
2001-12-29 18:45:52 +03:00
|
|
|
@echo '*** in version skew and build errors over time!'
|
2001-11-22 03:13:10 +03:00
|
|
|
.else
|
|
|
|
_warn:
|
|
|
|
.endif
|
2001-11-13 19:17:24 +03:00
|
|
|
|
|
|
|
.for dir in ${SUBDIR:N.WAIT}
|
|
|
|
all-${dir} depend-${dir} dependall-${dir} install-${dir}:
|
|
|
|
@true
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2001-08-14 15:01:55 +04:00
|
|
|
.include <bsd.subdir.mk>
|
2001-10-31 04:20:09 +03:00
|
|
|
.include <bsd.obj.mk>
|
2001-10-31 20:46:08 +03:00
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
# 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
|
|
|
|
|
2001-10-31 20:46:08 +03:00
|
|
|
cleantools:
|
|
|
|
rm -r -f tools.${HOST_OSTYPE}
|