Home | History | Annotate | Line # | Download | only in tools
Makefile revision 1.25
      1  1.25      mrg #	$NetBSD: Makefile,v 1.25 2002/01/05 07:03:30 mrg Exp $
      2   1.1       tv 
      3   1.3       tv .include <bsd.own.mk>
      4   1.3       tv 
      5  1.24  thorpej # XXX We can't currently build the toolchain for x86-64.
      6  1.24  thorpej .if ${MACHINE_ARCH} != "x86_64"
      7  1.24  thorpej TOOLCHAIN_BITS= toolchain .WAIT dbsym mdsetimage
      8  1.24  thorpej .endif
      9  1.24  thorpej 
     10  1.16       tv # Dependencies in SUBDIR below ordered to maximize parallel ability.
     11  1.14       tv .if !defined(NOSUBDIR)
     12  1.22       tv SUBDIR=	mkdep .WAIT compat .WAIT \
     13  1.16       tv 	binstall .WAIT \
     14  1.16       tv 		crunchgen gencat lint lint2 lorder mtree rpcgen \
     15  1.20  thorpej 		texinfo tsort makewhatis \
     16  1.24  thorpej 	${TOOLCHAIN_BITS} \
     17  1.16       tv 	yacc .WAIT \
     18  1.16       tv 		groff \
     19  1.16       tv 	lex .WAIT \
     20  1.25      mrg 		asn1_compile compile_et config lint1 msgc menuc makefs \
     21  1.25      mrg 		mklocale pwd_mkdb
     22  1.22       tv 
     23  1.22       tv .if ${MKMAINTAINERTOOLS:Uno} != "no"
     24  1.22       tv SUBDIR+=	m4 .WAIT autoconf
     25  1.25      mrg .endif
     26  1.25      mrg 
     27  1.25      mrg .if ${MACHINE} == sparc || ${MACHINE} == sparc64
     28  1.25      mrg SUBDIR+=	sparc-installboot
     29  1.22       tv .endif
     30  1.17       tv .endif
     31  1.17       tv 
     32  1.18      jmc .if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes"
     33  1.17       tv realall install: _warn
     34  1.19      jmc .if ${MKTOOLS:Uyes} == "no"
     35  1.17       tv _warn:
     36  1.17       tv 	@echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
     37  1.17       tv 	@echo '*** updating your host toolchain.  This should be used only as a'
     38  1.17       tv 	@echo '*** temporary workaround for toolchain problems, as it will result'
     39  1.23      wiz 	@echo '*** in version skew and build errors over time!'
     40  1.18      jmc .else
     41  1.18      jmc _warn:
     42  1.18      jmc .endif
     43  1.17       tv 
     44  1.17       tv .for dir in ${SUBDIR:N.WAIT}
     45  1.17       tv all-${dir} depend-${dir} dependall-${dir} install-${dir}:
     46  1.17       tv 	@true
     47  1.17       tv .endfor
     48  1.14       tv .endif
     49   1.1       tv 
     50   1.1       tv .include <bsd.subdir.mk>
     51  1.11       tv .include <bsd.obj.mk>
     52  1.16       tv 
     53  1.16       tv # For each .WAIT point, make sure the previous target is installed before
     54  1.16       tv # building a dependent target.
     55  1.16       tv _dep:=
     56  1.16       tv _last:=
     57  1.16       tv .for d in ${SUBDIR}
     58  1.16       tv _this:=		${d}
     59  1.16       tv .if ${_this} == ".WAIT"
     60  1.16       tv _dep:=		${_dep} install-${_last}
     61  1.16       tv .else
     62  1.16       tv _last:=		${d}
     63  1.16       tv depend-${d} all-${d} dependall-${d}: ${_dep}
     64  1.16       tv .endif
     65  1.16       tv .endfor
     66  1.12       tv 
     67  1.12       tv cleantools:
     68  1.12       tv 	rm -r -f tools.${HOST_OSTYPE}
     69