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