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