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