Sun Dec 13 09:10:16 2009 UTC ()
enable MAKEDIRTARGET to be called with a separate environment,
called $MAKEDIRTARGETENV, defaulting to nothing.


(mrg)
diff -r1.611 -r1.612 src/share/mk/bsd.own.mk

cvs diff -r1.611 -r1.612 src/share/mk/bsd.own.mk (switch to unified diff)

--- src/share/mk/bsd.own.mk 2009/12/13 09:01:46 1.611
+++ src/share/mk/bsd.own.mk 2009/12/13 09:10:16 1.612
@@ -1,1072 +1,1073 @@ @@ -1,1072 +1,1073 @@
1# $NetBSD: bsd.own.mk,v 1.611 2009/12/13 09:01:46 mrg Exp $ 1# $NetBSD: bsd.own.mk,v 1.612 2009/12/13 09:10:16 mrg Exp $
2 2
3# This needs to be before bsd.init.mk 3# This needs to be before bsd.init.mk
4.if defined(BSD_MK_COMPAT_FILE) 4.if defined(BSD_MK_COMPAT_FILE)
5.include <${BSD_MK_COMPAT_FILE}> 5.include <${BSD_MK_COMPAT_FILE}>
6.endif 6.endif
7 7
8.if !defined(_BSD_OWN_MK_) 8.if !defined(_BSD_OWN_MK_)
9_BSD_OWN_MK_=1 9_BSD_OWN_MK_=1
10 10
11MAKECONF?= /etc/mk.conf 11MAKECONF?= /etc/mk.conf
12.-include "${MAKECONF}" 12.-include "${MAKECONF}"
13 13
14# 14#
15# CPU model, derived from MACHINE_ARCH 15# CPU model, derived from MACHINE_ARCH
16# 16#
17MACHINE_CPU= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips/:C/sh3e[bl]/sh3/:S/m68000/m68k/:S/armeb/arm/} 17MACHINE_CPU= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips/:C/sh3e[bl]/sh3/:S/m68000/m68k/:S/armeb/arm/}
18 18
19# 19#
20# Subdirectory used below ${RELEASEDIR} when building a release 20# Subdirectory used below ${RELEASEDIR} when building a release
21# 21#
22RELEASEMACHINEDIR?= ${MACHINE} 22RELEASEMACHINEDIR?= ${MACHINE}
23 23
24# 24#
25# Subdirectory or path component used for the following paths: 25# Subdirectory or path component used for the following paths:
26# distrib/${RELEASEMACHINE} 26# distrib/${RELEASEMACHINE}
27# distrib/notes/${RELEASEMACHINE} 27# distrib/notes/${RELEASEMACHINE}
28# etc/etc.${RELEASEMACHINE} 28# etc/etc.${RELEASEMACHINE}
29# Used when building a release. 29# Used when building a release.
30# 30#
31RELEASEMACHINE?= ${MACHINE} 31RELEASEMACHINE?= ${MACHINE}
32 32
33# 33#
34# NEED_OWN_INSTALL_TARGET is set to "no" by pkgsrc/mk/bsd.pkg.mk to 34# NEED_OWN_INSTALL_TARGET is set to "no" by pkgsrc/mk/bsd.pkg.mk to
35# ensure that things defined by <bsd.own.mk> (default targets, 35# ensure that things defined by <bsd.own.mk> (default targets,
36# INSTALL_FILE, etc.) are not conflicting with bsd.pkg.mk. 36# INSTALL_FILE, etc.) are not conflicting with bsd.pkg.mk.
37# 37#
38NEED_OWN_INSTALL_TARGET?= yes 38NEED_OWN_INSTALL_TARGET?= yes
39 39
40# 40#
41# This lists the platforms which do not have working in-tree toolchains. 41# This lists the platforms which do not have working in-tree toolchains.
42# For the in-tree gcc 3.3.2 toolchain, this list is empty. 42# For the in-tree gcc 3.3.2 toolchain, this list is empty.
43# If some future port is not supported by the in-tree toolchain, this 43# If some future port is not supported by the in-tree toolchain, this
44# should be set to "yes" for that port only. 44# should be set to "yes" for that port only.
45# 45#
46TOOLCHAIN_MISSING?= no 46TOOLCHAIN_MISSING?= no
47 47
48# default to GCC4 48# default to GCC4
49.if !defined(HAVE_GCC) && !defined(HAVE_PCC) 49.if !defined(HAVE_GCC) && !defined(HAVE_PCC)
50HAVE_GCC= 4 50HAVE_GCC= 4
51.endif 51.endif
52 52
53# default to GDB6 53# default to GDB6
54HAVE_GDB?= 6 54HAVE_GDB?= 6
55 55
56# default to binutils 2.19 56# default to binutils 2.19
57HAVE_BINUTILS?= 219 57HAVE_BINUTILS?= 219
58 58
59CPPFLAG_ISYSTEM= -isystem 59CPPFLAG_ISYSTEM= -isystem
60.if defined(HAVE_GCC) 60.if defined(HAVE_GCC)
61.if ${HAVE_GCC} == 3 61.if ${HAVE_GCC} == 3
62CPPFLAG_ISYSTEMXX= -isystem-cxx 62CPPFLAG_ISYSTEMXX= -isystem-cxx
63.else # GCC 4 63.else # GCC 4
64CPPFLAG_ISYSTEMXX= -cxx-isystem 64CPPFLAG_ISYSTEMXX= -cxx-isystem
65.endif 65.endif
66.endif 66.endif
67 67
68.if empty(.MAKEFLAGS:M-V*) 68.if empty(.MAKEFLAGS:M-V*)
69.if defined(MAKEOBJDIRPREFIX) || defined(MAKEOBJDIR) 69.if defined(MAKEOBJDIRPREFIX) || defined(MAKEOBJDIR)
70PRINTOBJDIR= ${MAKE} -r -V .OBJDIR -f /dev/null xxx 70PRINTOBJDIR= ${MAKE} -r -V .OBJDIR -f /dev/null xxx
71.else 71.else
72PRINTOBJDIR= ${MAKE} -V .OBJDIR 72PRINTOBJDIR= ${MAKE} -V .OBJDIR
73.endif 73.endif
74.else 74.else
75PRINTOBJDIR= echo # prevent infinite recursion 75PRINTOBJDIR= echo # prevent infinite recursion
76.endif 76.endif
77 77
78# 78#
79# Determine if running in the NetBSD source tree by checking for the 79# Determine if running in the NetBSD source tree by checking for the
80# existence of build.sh and tools/ in the current or a parent directory, 80# existence of build.sh and tools/ in the current or a parent directory,
81# and setting _SRC_TOP_ to the result. 81# and setting _SRC_TOP_ to the result.
82# 82#
83.if !defined(_SRC_TOP_) # { 83.if !defined(_SRC_TOP_) # {
84_SRC_TOP_!= cd ${.CURDIR}; while :; do \ 84_SRC_TOP_!= cd ${.CURDIR}; while :; do \
85 here=`pwd`; \ 85 here=`pwd`; \
86 [ -f build.sh ] && [ -d tools ] && { echo $$here; break; }; \ 86 [ -f build.sh ] && [ -d tools ] && { echo $$here; break; }; \
87 case $$here in /) echo ""; break;; esac; \ 87 case $$here in /) echo ""; break;; esac; \
88 cd ..; done 88 cd ..; done
89 89
90.MAKEOVERRIDES+= _SRC_TOP_ 90.MAKEOVERRIDES+= _SRC_TOP_
91 91
92.endif # } 92.endif # }
93 93
94# 94#
95# If _SRC_TOP_ != "", we're within the NetBSD source tree, so set 95# If _SRC_TOP_ != "", we're within the NetBSD source tree, so set
96# defaults for NETBSDSRCDIR and _SRC_TOP_OBJ_. 96# defaults for NETBSDSRCDIR and _SRC_TOP_OBJ_.
97# 97#
98.if (${_SRC_TOP_} != "") # { 98.if (${_SRC_TOP_} != "") # {
99 99
100NETBSDSRCDIR?= ${_SRC_TOP_} 100NETBSDSRCDIR?= ${_SRC_TOP_}
101 101
102.if !defined(_SRC_TOP_OBJ_) 102.if !defined(_SRC_TOP_OBJ_)
103_SRC_TOP_OBJ_!= cd ${_SRC_TOP_} && ${PRINTOBJDIR} 103_SRC_TOP_OBJ_!= cd ${_SRC_TOP_} && ${PRINTOBJDIR}
104.MAKEOVERRIDES+= _SRC_TOP_OBJ_ 104.MAKEOVERRIDES+= _SRC_TOP_OBJ_
105.endif 105.endif
106 106
107.endif # _SRC_TOP_ != "" # } 107.endif # _SRC_TOP_ != "" # }
108 108
109 109
110.if (${_SRC_TOP_} != "") && \ 110.if (${_SRC_TOP_} != "") && \
111 (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) 111 (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN))
112USETOOLS?= yes 112USETOOLS?= yes
113.endif 113.endif
114USETOOLS?= no 114USETOOLS?= no
115 115
116 116
117.if ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "mips64" || \ 117.if ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "mips64" || \
118 ${MACHINE_ARCH} == "sh3" 118 ${MACHINE_ARCH} == "sh3"
119.BEGIN: 119.BEGIN:
120 @echo "Must set MACHINE_ARCH to one of ${MACHINE_ARCH}eb or ${MACHINE_ARCH}el" 120 @echo "Must set MACHINE_ARCH to one of ${MACHINE_ARCH}eb or ${MACHINE_ARCH}el"
121 @false 121 @false
122.elif defined(REQUIRETOOLS) && \ 122.elif defined(REQUIRETOOLS) && \
123 (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) && \ 123 (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) && \
124 ${USETOOLS} == "no" 124 ${USETOOLS} == "no"
125.BEGIN: 125.BEGIN:
126 @echo "USETOOLS=no, but this component requires a version-specific host toolchain" 126 @echo "USETOOLS=no, but this component requires a version-specific host toolchain"
127 @false 127 @false
128.endif 128.endif
129 129
130# 130#
131# Host platform information; may be overridden 131# Host platform information; may be overridden
132# 132#
133.if !defined(HOST_OSTYPE) 133.if !defined(HOST_OSTYPE)
134_HOST_OSNAME!= uname -s 134_HOST_OSNAME!= uname -s
135_HOST_OSREL!= uname -r 135_HOST_OSREL!= uname -r
136# For _HOST_ARCH, if uname -p fails, or prints "unknown", or prints 136# For _HOST_ARCH, if uname -p fails, or prints "unknown", or prints
137# something that does not look like an identifier, then use uname -m. 137# something that does not look like an identifier, then use uname -m.
138_HOST_ARCH!= uname -p 2>/dev/null 138_HOST_ARCH!= uname -p 2>/dev/null
139_HOST_ARCH:= ${HOST_ARCH:tW:C/.*[^-_A-Za-z0-9].*//:S/unknown//} 139_HOST_ARCH:= ${HOST_ARCH:tW:C/.*[^-_A-Za-z0-9].*//:S/unknown//}
140.if empty(_HOST_ARCH) 140.if empty(_HOST_ARCH)
141_HOST_ARCH!= uname -m 141_HOST_ARCH!= uname -m
142.endif 142.endif
143HOST_OSTYPE:= ${_HOST_OSNAME}-${_HOST_OSREL:C/\([^\)]*\)//g:[*]:C/ /_/g}-${_HOST_ARCH:C/\([^\)]*\)//g:[*]:C/ /_/g} 143HOST_OSTYPE:= ${_HOST_OSNAME}-${_HOST_OSREL:C/\([^\)]*\)//g:[*]:C/ /_/g}-${_HOST_ARCH:C/\([^\)]*\)//g:[*]:C/ /_/g}
144.MAKEOVERRIDES+= HOST_OSTYPE 144.MAKEOVERRIDES+= HOST_OSTYPE
145.endif # !defined(HOST_OSTYPE) 145.endif # !defined(HOST_OSTYPE)
146 146
147.if ${USETOOLS} == "yes" # { 147.if ${USETOOLS} == "yes" # {
148 148
149# 149#
150# Provide a default for TOOLDIR. 150# Provide a default for TOOLDIR.
151# 151#
152.if !defined(TOOLDIR) 152.if !defined(TOOLDIR)
153TOOLDIR:= ${_SRC_TOP_OBJ_}/tooldir.${HOST_OSTYPE} 153TOOLDIR:= ${_SRC_TOP_OBJ_}/tooldir.${HOST_OSTYPE}
154.MAKEOVERRIDES+= TOOLDIR 154.MAKEOVERRIDES+= TOOLDIR
155.endif 155.endif
156 156
157# 157#
158# This is the prefix used for the NetBSD-sourced tools. 158# This is the prefix used for the NetBSD-sourced tools.
159# 159#
160_TOOL_PREFIX?= nb 160_TOOL_PREFIX?= nb
161 161
162# 162#
163# If an external toolchain base is specified, use it. 163# If an external toolchain base is specified, use it.
164# 164#
165.if defined(EXTERNAL_TOOLCHAIN) # { 165.if defined(EXTERNAL_TOOLCHAIN) # {
166AR= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ar 166AR= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ar
167AS= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-as 167AS= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-as
168LD= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ld 168LD= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ld
169NM= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-nm 169NM= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-nm
170OBJCOPY= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objcopy 170OBJCOPY= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objcopy
171OBJDUMP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objdump 171OBJDUMP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objdump
172RANLIB= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ranlib 172RANLIB= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ranlib
173SIZE= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-size 173SIZE= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-size
174STRIP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strip 174STRIP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strip
175 175
176CC= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc 176CC= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc
177CPP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-cpp 177CPP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-cpp
178CXX= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-c++ 178CXX= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-c++
179FC= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-g77 179FC= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-g77
180OBJC= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc 180OBJC= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc
181.else # } { 181.else # } {
182# Define default locations for common tools. 182# Define default locations for common tools.
183.if ${USETOOLS_BINUTILS:Uyes} == "yes" # { 183.if ${USETOOLS_BINUTILS:Uyes} == "yes" # {
184AR= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ar 184AR= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ar
185AS= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-as 185AS= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-as
186LD= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld 186LD= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld
187NM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-nm 187NM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-nm
188OBJCOPY= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objcopy 188OBJCOPY= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objcopy
189OBJDUMP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objdump 189OBJDUMP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objdump
190RANLIB= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib 190RANLIB= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib
191SIZE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-size 191SIZE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-size
192STRIP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip 192STRIP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip
193.endif # } 193.endif # }
194 194
195.if defined(HAVE_GCC) && ${USETOOLS_GCC:Uyes} == "yes" # { 195.if defined(HAVE_GCC) && ${USETOOLS_GCC:Uyes} == "yes" # {
196CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc 196CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc
197CPP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-cpp 197CPP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-cpp
198CXX= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-c++ 198CXX= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-c++
199FC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-g77 199FC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-g77
200OBJC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc 200OBJC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc
201.endif # } 201.endif # }
202 202
203.if defined(HAVE_PCC) && ${USETOOLS_PCC:Uyes} == "yes" 203.if defined(HAVE_PCC) && ${USETOOLS_PCC:Uyes} == "yes"
204CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-pcc 204CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-pcc
205CPP= ${TOOLDIR}/libexec/${MACHINE_GNU_PLATFORM}-cpp 205CPP= ${TOOLDIR}/libexec/${MACHINE_GNU_PLATFORM}-cpp
206CXX= false 206CXX= false
207FC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-f77 207FC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-f77
208OBJC= false 208OBJC= false
209.endif 209.endif
210 210
211.endif # EXTERNAL_TOOLCHAIN # } 211.endif # EXTERNAL_TOOLCHAIN # }
212 212
213HOST_MKDEP= ${TOOLDIR}/bin/${_TOOL_PREFIX}host-mkdep 213HOST_MKDEP= ${TOOLDIR}/bin/${_TOOL_PREFIX}host-mkdep
214 214
215DBSYM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-dbsym 215DBSYM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-dbsym
216ELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff 216ELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff
217INSTALL= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install 217INSTALL= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install
218LEX= ${TOOLDIR}/bin/${_TOOL_PREFIX}lex 218LEX= ${TOOLDIR}/bin/${_TOOL_PREFIX}lex
219LINT= CC=${CC:Q} ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-lint 219LINT= CC=${CC:Q} ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-lint
220LORDER= NM=${NM:Q} MKTEMP=${TOOL_MKTEMP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder 220LORDER= NM=${NM:Q} MKTEMP=${TOOL_MKTEMP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder
221MKDEP= CC=${CC:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep 221MKDEP= CC=${CC:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep
222PAXCTL= ${TOOLDIR}/bin/${_TOOL_PREFIX}paxctl 222PAXCTL= ${TOOLDIR}/bin/${_TOOL_PREFIX}paxctl
223TSORT= ${TOOLDIR}/bin/${_TOOL_PREFIX}tsort -q 223TSORT= ${TOOLDIR}/bin/${_TOOL_PREFIX}tsort -q
224YACC= ${TOOLDIR}/bin/${_TOOL_PREFIX}yacc 224YACC= ${TOOLDIR}/bin/${_TOOL_PREFIX}yacc
225 225
226TOOL_AMIGAAOUT2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-aout2bb 226TOOL_AMIGAAOUT2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-aout2bb
227TOOL_AMIGAELF2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-elf2bb 227TOOL_AMIGAELF2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-elf2bb
228TOOL_AMIGATXLT= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-txlt 228TOOL_AMIGATXLT= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-txlt
229TOOL_ASN1_COMPILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}asn1_compile 229TOOL_ASN1_COMPILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}asn1_compile
230TOOL_ATF_COMPILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}atf-compile 230TOOL_ATF_COMPILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}atf-compile
231TOOL_AWK= ${TOOLDIR}/bin/${_TOOL_PREFIX}awk 231TOOL_AWK= ${TOOLDIR}/bin/${_TOOL_PREFIX}awk
232TOOL_CAP_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}cap_mkdb 232TOOL_CAP_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}cap_mkdb
233TOOL_CAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}cat 233TOOL_CAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}cat
234TOOL_CKSUM= ${TOOLDIR}/bin/${_TOOL_PREFIX}cksum 234TOOL_CKSUM= ${TOOLDIR}/bin/${_TOOL_PREFIX}cksum
235TOOL_COMPILE_ET= ${TOOLDIR}/bin/${_TOOL_PREFIX}compile_et 235TOOL_COMPILE_ET= ${TOOLDIR}/bin/${_TOOL_PREFIX}compile_et
236TOOL_CONFIG= ${TOOLDIR}/bin/${_TOOL_PREFIX}config 236TOOL_CONFIG= ${TOOLDIR}/bin/${_TOOL_PREFIX}config
237TOOL_CRUNCHGEN= MAKE=${.MAKE:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}crunchgen 237TOOL_CRUNCHGEN= MAKE=${.MAKE:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}crunchgen
238TOOL_CTAGS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctags 238TOOL_CTAGS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctags
239TOOL_DB= ${TOOLDIR}/bin/${_TOOL_PREFIX}db 239TOOL_DB= ${TOOLDIR}/bin/${_TOOL_PREFIX}db
240TOOL_DISKLABEL= ${TOOLDIR}/bin/nbdisklabel-${MAKEWRAPPERMACHINE} 240TOOL_DISKLABEL= ${TOOLDIR}/bin/nbdisklabel-${MAKEWRAPPERMACHINE}
241TOOL_EQN= ${TOOLDIR}/bin/${_TOOL_PREFIX}eqn 241TOOL_EQN= ${TOOLDIR}/bin/${_TOOL_PREFIX}eqn
242TOOL_FDISK= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk 242TOOL_FDISK= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk
243TOOL_FGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}fgen 243TOOL_FGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}fgen
244TOOL_GENASSYM= ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym 244TOOL_GENASSYM= ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym
245TOOL_GENCAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}gencat 245TOOL_GENCAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}gencat
246TOOL_GMAKE= ${TOOLDIR}/bin/${_TOOL_PREFIX}gmake 246TOOL_GMAKE= ${TOOLDIR}/bin/${_TOOL_PREFIX}gmake
247TOOL_GREP= ${TOOLDIR}/bin/${_TOOL_PREFIX}grep 247TOOL_GREP= ${TOOLDIR}/bin/${_TOOL_PREFIX}grep
248TOOL_GROFF= PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}groff 248TOOL_GROFF= PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}groff
249TOOL_HEXDUMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}hexdump 249TOOL_HEXDUMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}hexdump
250TOOL_HP300MKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hp300-mkboot 250TOOL_HP300MKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hp300-mkboot
251TOOL_HP700MKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hp700-mkboot 251TOOL_HP700MKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hp700-mkboot
252TOOL_INDXBIB= ${TOOLDIR}/bin/${_TOOL_PREFIX}indxbib 252TOOL_INDXBIB= ${TOOLDIR}/bin/${_TOOL_PREFIX}indxbib
253TOOL_INSTALLBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}installboot 253TOOL_INSTALLBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}installboot
254TOOL_INSTALL_INFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}install-info 254TOOL_INSTALL_INFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}install-info
255TOOL_JOIN= ${TOOLDIR}/bin/${_TOOL_PREFIX}join 255TOOL_JOIN= ${TOOLDIR}/bin/${_TOOL_PREFIX}join
256TOOL_M4= ${TOOLDIR}/bin/${_TOOL_PREFIX}m4 256TOOL_M4= ${TOOLDIR}/bin/${_TOOL_PREFIX}m4
257TOOL_MACPPCFIXCOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}macppc-fixcoff 257TOOL_MACPPCFIXCOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}macppc-fixcoff
258TOOL_MAKEFS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makefs 258TOOL_MAKEFS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makefs
259TOOL_MAKEINFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}makeinfo 259TOOL_MAKEINFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}makeinfo
260TOOL_MAKEWHATIS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makewhatis 260TOOL_MAKEWHATIS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makewhatis
261TOOL_MANDOC_ASCII= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tascii 261TOOL_MANDOC_ASCII= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tascii
262TOOL_MANDOC_HTML= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Thtml 262TOOL_MANDOC_HTML= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Thtml
263TOOL_MANDOC_LINT= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tlint 263TOOL_MANDOC_LINT= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tlint
264TOOL_MDSETIMAGE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-mdsetimage 264TOOL_MDSETIMAGE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-mdsetimage
265TOOL_MENUC= MENUDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}menuc 265TOOL_MENUC= MENUDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}menuc
266TOOL_MIPSELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff 266TOOL_MIPSELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff
267TOOL_MKCSMAPPER= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkcsmapper 267TOOL_MKCSMAPPER= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkcsmapper
268TOOL_MKESDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkesdb 268TOOL_MKESDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkesdb
269TOOL_MKLOCALE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mklocale 269TOOL_MKLOCALE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mklocale
270TOOL_MKMAGIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}file 270TOOL_MKMAGIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}file
271TOOL_MKTEMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}mktemp 271TOOL_MKTEMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}mktemp
272TOOL_MSGC= MSGDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}msgc 272TOOL_MSGC= MSGDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}msgc
273TOOL_MTREE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mtree 273TOOL_MTREE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mtree
274TOOL_PAX= ${TOOLDIR}/bin/${_TOOL_PREFIX}pax 274TOOL_PAX= ${TOOLDIR}/bin/${_TOOL_PREFIX}pax
275TOOL_PIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}pic 275TOOL_PIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}pic
276TOOL_PKG_CREATE= ${TOOLDIR}/bin/${_TOOL_PREFIX}pkg_create 276TOOL_PKG_CREATE= ${TOOLDIR}/bin/${_TOOL_PREFIX}pkg_create
277TOOL_POWERPCMKBOOTIMAGE=${TOOLDIR}/bin/${_TOOL_PREFIX}powerpc-mkbootimage 277TOOL_POWERPCMKBOOTIMAGE=${TOOLDIR}/bin/${_TOOL_PREFIX}powerpc-mkbootimage
278TOOL_PWD_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}pwd_mkdb 278TOOL_PWD_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}pwd_mkdb
279TOOL_REFER= ${TOOLDIR}/bin/${_TOOL_PREFIX}refer 279TOOL_REFER= ${TOOLDIR}/bin/${_TOOL_PREFIX}refer
280TOOL_ROFF_ASCII= PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}nroff 280TOOL_ROFF_ASCII= PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}nroff
281TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi 281TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi
282TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html 282TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html
283TOOL_ROFF_PS= ${TOOL_GROFF} -Tps 283TOOL_ROFF_PS= ${TOOL_GROFF} -Tps
284TOOL_ROFF_RAW= ${TOOL_GROFF} -Z 284TOOL_ROFF_RAW= ${TOOL_GROFF} -Z
285TOOL_RPCGEN= RPCGEN_CPP=${CPP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}rpcgen 285TOOL_RPCGEN= RPCGEN_CPP=${CPP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}rpcgen
286TOOL_SED= ${TOOLDIR}/bin/${_TOOL_PREFIX}sed 286TOOL_SED= ${TOOLDIR}/bin/${_TOOL_PREFIX}sed
287TOOL_SOELIM= ${TOOLDIR}/bin/${_TOOL_PREFIX}soelim 287TOOL_SOELIM= ${TOOLDIR}/bin/${_TOOL_PREFIX}soelim
288TOOL_SPARKCRC= ${TOOLDIR}/bin/${_TOOL_PREFIX}sparkcrc 288TOOL_SPARKCRC= ${TOOLDIR}/bin/${_TOOL_PREFIX}sparkcrc
289TOOL_STAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}stat 289TOOL_STAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}stat
290TOOL_STRFILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}strfile 290TOOL_STRFILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}strfile
291TOOL_SUNLABEL= ${TOOLDIR}/bin/${_TOOL_PREFIX}sunlabel 291TOOL_SUNLABEL= ${TOOLDIR}/bin/${_TOOL_PREFIX}sunlabel
292TOOL_TBL= ${TOOLDIR}/bin/${_TOOL_PREFIX}tbl 292TOOL_TBL= ${TOOLDIR}/bin/${_TOOL_PREFIX}tbl
293TOOL_UUDECODE= ${TOOLDIR}/bin/${_TOOL_PREFIX}uudecode 293TOOL_UUDECODE= ${TOOLDIR}/bin/${_TOOL_PREFIX}uudecode
294TOOL_VGRIND= ${TOOLDIR}/bin/${_TOOL_PREFIX}vgrind -f 294TOOL_VGRIND= ${TOOLDIR}/bin/${_TOOL_PREFIX}vgrind -f
295TOOL_ZIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}zic 295TOOL_ZIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}zic
296 296
297.else # USETOOLS != yes # } { 297.else # USETOOLS != yes # } {
298 298
299TOOL_AMIGAAOUT2BB= amiga-aout2bb 299TOOL_AMIGAAOUT2BB= amiga-aout2bb
300TOOL_AMIGAELF2BB= amiga-elf2bb 300TOOL_AMIGAELF2BB= amiga-elf2bb
301TOOL_AMIGATXLT= amiga-txlt 301TOOL_AMIGATXLT= amiga-txlt
302TOOL_ASN1_COMPILE= asn1_compile 302TOOL_ASN1_COMPILE= asn1_compile
303TOOL_ATF_COMPILE= atf-compile 303TOOL_ATF_COMPILE= atf-compile
304TOOL_AWK= awk 304TOOL_AWK= awk
305TOOL_CAP_MKDB= cap_mkdb 305TOOL_CAP_MKDB= cap_mkdb
306TOOL_CAT= cat 306TOOL_CAT= cat
307TOOL_CKSUM= cksum 307TOOL_CKSUM= cksum
308TOOL_COMPILE_ET= compile_et 308TOOL_COMPILE_ET= compile_et
309TOOL_CONFIG= config 309TOOL_CONFIG= config
310TOOL_CRUNCHGEN= crunchgen 310TOOL_CRUNCHGEN= crunchgen
311TOOL_CTAGS= ctags 311TOOL_CTAGS= ctags
312TOOL_DB= db 312TOOL_DB= db
313TOOL_DISKLABEL= disklabel 313TOOL_DISKLABEL= disklabel
314TOOL_EQN= eqn 314TOOL_EQN= eqn
315TOOL_FDISK= fdisk 315TOOL_FDISK= fdisk
316TOOL_FGEN= fgen 316TOOL_FGEN= fgen
317TOOL_GENASSYM= genassym 317TOOL_GENASSYM= genassym
318TOOL_GENCAT= gencat 318TOOL_GENCAT= gencat
319TOOL_GMAKE= gmake 319TOOL_GMAKE= gmake
320TOOL_GREP= grep 320TOOL_GREP= grep
321TOOL_GROFF= groff 321TOOL_GROFF= groff
322TOOL_HEXDUMP= hexdump 322TOOL_HEXDUMP= hexdump
323TOOL_HP300MKBOOT= hp300-mkboot 323TOOL_HP300MKBOOT= hp300-mkboot
324TOOL_HP700MKBOOT= hp700-mkboot 324TOOL_HP700MKBOOT= hp700-mkboot
325TOOL_INDXBIB= indxbib 325TOOL_INDXBIB= indxbib
326TOOL_INSTALLBOOT= installboot 326TOOL_INSTALLBOOT= installboot
327TOOL_INSTALL_INFO= install-info 327TOOL_INSTALL_INFO= install-info
328TOOL_JOIN= join 328TOOL_JOIN= join
329TOOL_M4= m4 329TOOL_M4= m4
330TOOL_MACPPCFIXCOFF= macppc-fixcoff 330TOOL_MACPPCFIXCOFF= macppc-fixcoff
331TOOL_MAKEFS= makefs 331TOOL_MAKEFS= makefs
332TOOL_MAKEINFO= makeinfo 332TOOL_MAKEINFO= makeinfo
333TOOL_MAKEWHATIS= /usr/libexec/makewhatis 333TOOL_MAKEWHATIS= /usr/libexec/makewhatis
334TOOL_MDSETIMAGE= mdsetimage 334TOOL_MDSETIMAGE= mdsetimage
335TOOL_MENUC= menuc 335TOOL_MENUC= menuc
336TOOL_MIPSELF2ECOFF= mips-elf2ecoff 336TOOL_MIPSELF2ECOFF= mips-elf2ecoff
337TOOL_MKCSMAPPER= mkcsmapper 337TOOL_MKCSMAPPER= mkcsmapper
338TOOL_MKESDB= mkesdb 338TOOL_MKESDB= mkesdb
339TOOL_MKLOCALE= mklocale 339TOOL_MKLOCALE= mklocale
340TOOL_MKMAGIC= file 340TOOL_MKMAGIC= file
341TOOL_MKTEMP= mktemp 341TOOL_MKTEMP= mktemp
342TOOL_MSGC= msgc 342TOOL_MSGC= msgc
343TOOL_MTREE= mtree 343TOOL_MTREE= mtree
344TOOL_PAX= pax 344TOOL_PAX= pax
345TOOL_PIC= pic 345TOOL_PIC= pic
346TOOL_PKG_CREATE= pkg_create 346TOOL_PKG_CREATE= pkg_create
347TOOL_POWERPCMKBOOTIMAGE= powerpc-mkbootimage 347TOOL_POWERPCMKBOOTIMAGE= powerpc-mkbootimage
348TOOL_PWD_MKDB= pwd_mkdb 348TOOL_PWD_MKDB= pwd_mkdb
349TOOL_REFER= refer 349TOOL_REFER= refer
350TOOL_ROFF_ASCII= nroff 350TOOL_ROFF_ASCII= nroff
351TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi 351TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi
352TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html 352TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html
353TOOL_ROFF_PS= ${TOOL_GROFF} -Tps 353TOOL_ROFF_PS= ${TOOL_GROFF} -Tps
354TOOL_ROFF_RAW= ${TOOL_GROFF} -Z 354TOOL_ROFF_RAW= ${TOOL_GROFF} -Z
355TOOL_RPCGEN= rpcgen 355TOOL_RPCGEN= rpcgen
356TOOL_SED= sed 356TOOL_SED= sed
357TOOL_SOELIM= soelim 357TOOL_SOELIM= soelim
358TOOL_SPARKCRC= sparkcrc 358TOOL_SPARKCRC= sparkcrc
359TOOL_STAT= stat 359TOOL_STAT= stat
360TOOL_STRFILE= strfile 360TOOL_STRFILE= strfile
361TOOL_SUNLABEL= sunlabel 361TOOL_SUNLABEL= sunlabel
362TOOL_TBL= tbl 362TOOL_TBL= tbl
363TOOL_UUDECODE= uudecode 363TOOL_UUDECODE= uudecode
364TOOL_VGRIND= vgrind -f 364TOOL_VGRIND= vgrind -f
365TOOL_ZIC= zic 365TOOL_ZIC= zic
366 366
367.endif # USETOOLS != yes # } 367.endif # USETOOLS != yes # }
368 368
369# 369#
370# Targets to check if DESTDIR or RELEASEDIR is provided 370# Targets to check if DESTDIR or RELEASEDIR is provided
371# 371#
372.if !target(check_DESTDIR) 372.if !target(check_DESTDIR)
373check_DESTDIR: .PHONY .NOTMAIN 373check_DESTDIR: .PHONY .NOTMAIN
374.if !defined(DESTDIR) 374.if !defined(DESTDIR)
375 @echo "setenv DESTDIR before doing that!" 375 @echo "setenv DESTDIR before doing that!"
376 @false 376 @false
377.else 377.else
378 @true 378 @true
379.endif 379.endif
380.endif 380.endif
381 381
382.if !target(check_RELEASEDIR) 382.if !target(check_RELEASEDIR)
383check_RELEASEDIR: .PHONY .NOTMAIN 383check_RELEASEDIR: .PHONY .NOTMAIN
384.if !defined(RELEASEDIR) 384.if !defined(RELEASEDIR)
385 @echo "setenv RELEASEDIR before doing that!" 385 @echo "setenv RELEASEDIR before doing that!"
386 @false 386 @false
387.else 387.else
388 @true 388 @true
389.endif 389.endif
390.endif 390.endif
391 391
392 392
393.if ${USETOOLS} == "yes" # { 393.if ${USETOOLS} == "yes" # {
394# 394#
395# Make sure DESTDIR is set, so that builds with these tools always 395# Make sure DESTDIR is set, so that builds with these tools always
396# get appropriate -nostdinc, -nostdlib, etc. handling. The default is 396# get appropriate -nostdinc, -nostdlib, etc. handling. The default is
397# <empty string>, meaning start from /, the root directory. 397# <empty string>, meaning start from /, the root directory.
398# 398#
399DESTDIR?= 399DESTDIR?=
400.endif # } 400.endif # }
401 401
402# 402#
403# Build a dynamically linked /bin and /sbin, with the necessary shared 403# Build a dynamically linked /bin and /sbin, with the necessary shared
404# libraries moved from /usr/lib to /lib and the shared linker moved 404# libraries moved from /usr/lib to /lib and the shared linker moved
405# from /usr/libexec to /lib 405# from /usr/libexec to /lib
406# 406#
407# Note that if the BINDIR is not /bin or /sbin, then we always use the 407# Note that if the BINDIR is not /bin or /sbin, then we always use the
408# non-DYNAMICROOT behavior (i.e. it is only enabled for programs in /bin 408# non-DYNAMICROOT behavior (i.e. it is only enabled for programs in /bin
409# and /sbin). See <bsd.shlib.mk>. 409# and /sbin). See <bsd.shlib.mk>.
410# 410#
411MKDYNAMICROOT?= yes 411MKDYNAMICROOT?= yes
412 412
413# 413#
414# Where the system object and source trees are kept; can be configurable 414# Where the system object and source trees are kept; can be configurable
415# by the user in case they want them in ~/foosrc and ~/fooobj (for example). 415# by the user in case they want them in ~/foosrc and ~/fooobj (for example).
416# 416#
417BSDSRCDIR?= /usr/src 417BSDSRCDIR?= /usr/src
418BSDOBJDIR?= /usr/obj 418BSDOBJDIR?= /usr/obj
419NETBSDSRCDIR?= ${BSDSRCDIR} 419NETBSDSRCDIR?= ${BSDSRCDIR}
420 420
421BINGRP?= wheel 421BINGRP?= wheel
422BINOWN?= root 422BINOWN?= root
423BINMODE?= 555 423BINMODE?= 555
424NONBINMODE?= 444 424NONBINMODE?= 444
425 425
426MANDIR?= /usr/share/man 426MANDIR?= /usr/share/man
427MANGRP?= wheel 427MANGRP?= wheel
428MANOWN?= root 428MANOWN?= root
429MANMODE?= ${NONBINMODE} 429MANMODE?= ${NONBINMODE}
430MANINSTALL?= catinstall htmlinstall maninstall 430MANINSTALL?= catinstall htmlinstall maninstall
431 431
432INFODIR?= /usr/share/info 432INFODIR?= /usr/share/info
433INFOGRP?= wheel 433INFOGRP?= wheel
434INFOOWN?= root 434INFOOWN?= root
435INFOMODE?= ${NONBINMODE} 435INFOMODE?= ${NONBINMODE}
436 436
437LIBDIR?= /usr/lib 437LIBDIR?= /usr/lib
438 438
439LINTLIBDIR?= /usr/libdata/lint 439LINTLIBDIR?= /usr/libdata/lint
440LIBGRP?= ${BINGRP} 440LIBGRP?= ${BINGRP}
441LIBOWN?= ${BINOWN} 441LIBOWN?= ${BINOWN}
442LIBMODE?= ${NONBINMODE} 442LIBMODE?= ${NONBINMODE}
443 443
444DOCDIR?= /usr/share/doc 444DOCDIR?= /usr/share/doc
445HTMLDOCDIR?= /usr/share/doc/html 445HTMLDOCDIR?= /usr/share/doc/html
446DOCGRP?= wheel 446DOCGRP?= wheel
447DOCOWN?= root 447DOCOWN?= root
448DOCMODE?= ${NONBINMODE} 448DOCMODE?= ${NONBINMODE}
449 449
450NLSDIR?= /usr/share/nls 450NLSDIR?= /usr/share/nls
451NLSGRP?= wheel 451NLSGRP?= wheel
452NLSOWN?= root 452NLSOWN?= root
453NLSMODE?= ${NONBINMODE} 453NLSMODE?= ${NONBINMODE}
454 454
455KMODULEGRP?= wheel 455KMODULEGRP?= wheel
456KMODULEOWN?= root 456KMODULEOWN?= root
457KMODULEMODE?= ${NONBINMODE} 457KMODULEMODE?= ${NONBINMODE}
458 458
459LOCALEDIR?= /usr/share/locale 459LOCALEDIR?= /usr/share/locale
460LOCALEGRP?= wheel 460LOCALEGRP?= wheel
461LOCALEOWN?= root 461LOCALEOWN?= root
462LOCALEMODE?= ${NONBINMODE} 462LOCALEMODE?= ${NONBINMODE}
463 463
464FIRMWAREDIR?= /libdata/firmware 464FIRMWAREDIR?= /libdata/firmware
465FIRMWAREGRP?= wheel 465FIRMWAREGRP?= wheel
466FIRMWAREOWN?= root 466FIRMWAREOWN?= root
467FIRMWAREMODE?= ${NONBINMODE} 467FIRMWAREMODE?= ${NONBINMODE}
468 468
469DEBUGDIR?= /usr/libdata/debug 469DEBUGDIR?= /usr/libdata/debug
470DEBUGGRP?= wheel 470DEBUGGRP?= wheel
471DEBUGOWN?= root 471DEBUGOWN?= root
472DEBUGMODE?= ${NONBINMODE} 472DEBUGMODE?= ${NONBINMODE}
473 473
474# 474#
475# Data-driven table using make variables to control how 475# Data-driven table using make variables to control how
476# toolchain-dependent targets and shared libraries are built 476# toolchain-dependent targets and shared libraries are built
477# for different platforms and object formats. 477# for different platforms and object formats.
478# 478#
479# OBJECT_FMT: currently either "ELF" or "a.out". 479# OBJECT_FMT: currently either "ELF" or "a.out".
480# 480#
481# All platforms are ELF. 481# All platforms are ELF.
482# 482#
483OBJECT_FMT= ELF 483OBJECT_FMT= ELF
484 484
485# 485#
486# If this platform's toolchain is missing, we obviously cannot build it. 486# If this platform's toolchain is missing, we obviously cannot build it.
487# 487#
488.if ${TOOLCHAIN_MISSING} != "no" 488.if ${TOOLCHAIN_MISSING} != "no"
489MKBINUTILS:= no 489MKBINUTILS:= no
490MKGDB:= no 490MKGDB:= no
491MKGCC:= no 491MKGCC:= no
492.endif 492.endif
493 493
494# 494#
495# If we are using an external toolchain, we can still build the target's 495# If we are using an external toolchain, we can still build the target's
496# binutils, but we cannot build GCC's support libraries, since those are 496# binutils, but we cannot build GCC's support libraries, since those are
497# tightly-coupled to the version of GCC being used. 497# tightly-coupled to the version of GCC being used.
498# 498#
499.if defined(EXTERNAL_TOOLCHAIN) 499.if defined(EXTERNAL_TOOLCHAIN)
500MKGCC:= no 500MKGCC:= no
501.endif 501.endif
502 502
503# 503#
504# The m68000 port is incomplete. 504# The m68000 port is incomplete.
505# 505#
506.if ${MACHINE_ARCH} == "m68000" 506.if ${MACHINE_ARCH} == "m68000"
507NOPIC= # defined 507NOPIC= # defined
508MKISCSI= no 508MKISCSI= no
509# XXX GCC 4 outputs mcount() calling sequences that try to load values 509# XXX GCC 4 outputs mcount() calling sequences that try to load values
510# from over 64KB away and this fails to assemble. 510# from over 64KB away and this fails to assemble.
511.if defined(HAVE_GCC) && (${HAVE_GCC} == 4) 511.if defined(HAVE_GCC) && (${HAVE_GCC} == 4)
512NOPROFILE= # defined 512NOPROFILE= # defined
513.endif 513.endif
514.endif 514.endif
515 515
516# 516#
517# The ia64 port is incomplete. 517# The ia64 port is incomplete.
518# 518#
519.if ${MACHINE_ARCH} == "ia64" 519.if ${MACHINE_ARCH} == "ia64"
520MKLINT= no 520MKLINT= no
521MKGDB= no 521MKGDB= no
522.endif 522.endif
523 523
524# 524#
525# On the MIPS, all libs are compiled with ABIcalls (and are thus PIC), 525# On the MIPS, all libs are compiled with ABIcalls (and are thus PIC),
526# not just shared libraries, so don't build the _pic version. 526# not just shared libraries, so don't build the _pic version.
527# 527#
528.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" || \ 528.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" || \
529 ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb" 529 ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb"
530MKPICLIB:= no 530MKPICLIB:= no
531.endif 531.endif
532 532
533# 533#
534# On VAX using ELF, all objects are PIC, not just shared libraries, 534# On VAX using ELF, all objects are PIC, not just shared libraries,
535# so don't build the _pic version. Unless we are using GCC3 which 535# so don't build the _pic version. Unless we are using GCC3 which
536# doesn't support PIC yet. 536# doesn't support PIC yet.
537# 537#
538.if ${MACHINE_ARCH} == "vax" 538.if ${MACHINE_ARCH} == "vax"
539MKPICLIB= no 539MKPICLIB= no
540.endif 540.endif
541 541
542# 542#
543# Location of the file that contains the major and minor numbers of the 543# Location of the file that contains the major and minor numbers of the
544# version of a shared library. If this file exists a shared library 544# version of a shared library. If this file exists a shared library
545# will be built by <bsd.lib.mk>. 545# will be built by <bsd.lib.mk>.
546# 546#
547SHLIB_VERSION_FILE?= ${.CURDIR}/shlib_version 547SHLIB_VERSION_FILE?= ${.CURDIR}/shlib_version
548 548
549# 549#
550# GNU sources and packages sometimes see architecture names differently. 550# GNU sources and packages sometimes see architecture names differently.
551# 551#
552GNU_ARCH.coldfire=m68k 552GNU_ARCH.coldfire=m68k
553GNU_ARCH.i386=i486 553GNU_ARCH.i386=i486
554GCC_CONFIG_ARCH.i386=i486 554GCC_CONFIG_ARCH.i386=i486
555GCC_CONFIG_TUNE.i386=nocona 555GCC_CONFIG_TUNE.i386=nocona
556GCC_CONFIG_TUNE.x86_64=nocona 556GCC_CONFIG_TUNE.x86_64=nocona
557GNU_ARCH.m68000=m68010 557GNU_ARCH.m68000=m68010
558GNU_ARCH.sh3eb=sh 558GNU_ARCH.sh3eb=sh
559GNU_ARCH.sh3el=shle 559GNU_ARCH.sh3el=shle
560GNU_ARCH.mips64eb=mips64 560GNU_ARCH.mips64eb=mips64
561MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_ARCH}:U${MACHINE_ARCH}} 561MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_ARCH}:U${MACHINE_ARCH}}
562 562
563# 563#
564# In order to identify NetBSD to GNU packages, we sometimes need 564# In order to identify NetBSD to GNU packages, we sometimes need
565# an "elf" tag for historically a.out platforms. 565# an "elf" tag for historically a.out platforms.
566# 566#
567.if ${OBJECT_FMT} == "ELF" && \ 567.if ${OBJECT_FMT} == "ELF" && \
568 (${MACHINE_GNU_ARCH} == "arm" || \ 568 (${MACHINE_GNU_ARCH} == "arm" || \
569 ${MACHINE_GNU_ARCH} == "armeb" || \ 569 ${MACHINE_GNU_ARCH} == "armeb" || \
570 ${MACHINE_ARCH} == "i386" || \ 570 ${MACHINE_ARCH} == "i386" || \
571 ${MACHINE_CPU} == "m68k" || \ 571 ${MACHINE_CPU} == "m68k" || \
572 ${MACHINE_GNU_ARCH} == "sh" || \ 572 ${MACHINE_GNU_ARCH} == "sh" || \
573 ${MACHINE_GNU_ARCH} == "shle" || \ 573 ${MACHINE_GNU_ARCH} == "shle" || \
574 ${MACHINE_ARCH} == "sparc" || \ 574 ${MACHINE_ARCH} == "sparc" || \
575 ${MACHINE_ARCH} == "vax") 575 ${MACHINE_ARCH} == "vax")
576MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf 576MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf
577.else 577.else
578MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsd 578MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsd
579.endif 579.endif
580 580
581# 581#
582# Determine if arch uses native kernel modules with rump 582# Determine if arch uses native kernel modules with rump
583# 583#
584.if ${MACHINE_ARCH} == "i386" || \ 584.if ${MACHINE_ARCH} == "i386" || \
585 ${MACHINE_ARCH} == "x86_64" 585 ${MACHINE_ARCH} == "x86_64"
586RUMPKMOD= # defined 586RUMPKMOD= # defined
587.endif 587.endif
588 588
589TARGETS+= all clean cleandir depend dependall includes \ 589TARGETS+= all clean cleandir depend dependall includes \
590 install lint obj regress tags html 590 install lint obj regress tags html
591PHONY_NOTMAIN = all clean cleandir depend dependall distclean includes \ 591PHONY_NOTMAIN = all clean cleandir depend dependall distclean includes \
592 install lint obj regress tags beforedepend afterdepend \ 592 install lint obj regress tags beforedepend afterdepend \
593 beforeinstall afterinstall realinstall realdepend realall \ 593 beforeinstall afterinstall realinstall realdepend realall \
594 html subdir-all subdir-install subdir-depend 594 html subdir-all subdir-install subdir-depend
595.PHONY: ${PHONY_NOTMAIN} 595.PHONY: ${PHONY_NOTMAIN}
596.NOTMAIN: ${PHONY_NOTMAIN} 596.NOTMAIN: ${PHONY_NOTMAIN}
597 597
598.if ${NEED_OWN_INSTALL_TARGET} != "no" 598.if ${NEED_OWN_INSTALL_TARGET} != "no"
599.if !target(install) 599.if !target(install)
600install: beforeinstall .WAIT subdir-install realinstall .WAIT afterinstall 600install: beforeinstall .WAIT subdir-install realinstall .WAIT afterinstall
601beforeinstall: 601beforeinstall:
602subdir-install: 602subdir-install:
603realinstall: 603realinstall:
604afterinstall: 604afterinstall:
605.endif 605.endif
606all: realall subdir-all 606all: realall subdir-all
607subdir-all: 607subdir-all:
608realall: 608realall:
609depend: realdepend subdir-depend 609depend: realdepend subdir-depend
610subdir-depend: 610subdir-depend:
611realdepend: 611realdepend:
612distclean: cleandir 612distclean: cleandir
613cleandir: clean 613cleandir: clean
614 614
615dependall: .NOTMAIN realdepend .MAKE 615dependall: .NOTMAIN realdepend .MAKE
616 @cd ${.CURDIR}; ${MAKE} realall 616 @cd ${.CURDIR}; ${MAKE} realall
617.endif 617.endif
618 618
619# 619#
620# Define MKxxx variables (which are either yes or no) for users 620# Define MKxxx variables (which are either yes or no) for users
621# to set in /etc/mk.conf and override in the make environment. 621# to set in /etc/mk.conf and override in the make environment.
622# These should be tested with `== "no"' or `!= "no"'. 622# These should be tested with `== "no"' or `!= "no"'.
623# The NOxxx variables should only be set by Makefiles. 623# The NOxxx variables should only be set by Makefiles.
624# 624#
625# Please keep etc/Makefile and share/man/man5/mk.conf.5 in sync 625# Please keep etc/Makefile and share/man/man5/mk.conf.5 in sync
626# with changes to the MK* variables here. 626# with changes to the MK* variables here.
627# 627#
628 628
629# 629#
630# Supported NO* options (if defined, MK* will be forced to "no", 630# Supported NO* options (if defined, MK* will be forced to "no",
631# regardless of user's mk.conf setting). 631# regardless of user's mk.conf setting).
632# 632#
633# Source makefiles should set NO*, and not MK*, and must do so before 633# Source makefiles should set NO*, and not MK*, and must do so before
634# including bsd.own.mk. 634# including bsd.own.mk.
635# 635#
636.for var in \ 636.for var in \
637 NOCRYPTO NODOC NOHTML NOINFO NOLINKLIB NOLINT NOMAN NONLS NOOBJ NOPIC \ 637 NOCRYPTO NODOC NOHTML NOINFO NOLINKLIB NOLINT NOMAN NONLS NOOBJ NOPIC \
638 NOPICINSTALL NOPROFILE NOSHARE NOSTATICLIB 638 NOPICINSTALL NOPROFILE NOSHARE NOSTATICLIB
639.if defined(${var}) 639.if defined(${var})
640MK${var:S/^NO//}:= no 640MK${var:S/^NO//}:= no
641.endif 641.endif
642.endfor 642.endfor
643 643
644# 644#
645# Older-style variables that enabled behaviour when set. 645# Older-style variables that enabled behaviour when set.
646# 646#
647.for var in MANZ UNPRIVED UPDATE 647.for var in MANZ UNPRIVED UPDATE
648.if defined(${var}) 648.if defined(${var})
649MK${var}:= yes 649MK${var}:= yes
650.endif 650.endif
651.endfor 651.endfor
652 652
653# 653#
654# MK* options which have variable defaults. 654# MK* options which have variable defaults.
655# 655#
656.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" 656.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64"
657MKCOMPAT?= yes 657MKCOMPAT?= yes
658.else 658.else
659# Don't let this build where it really isn't supported. 659# Don't let this build where it really isn't supported.
660MKCOMPAT:= no 660MKCOMPAT:= no
661.endif 661.endif
662 662
663# 663#
664# MK* backward compatibility. 664# MK* backward compatibility.
665# 665#
666.if defined(MKBFD) 666.if defined(MKBFD)
667MKBINUTILS?= ${MKBFD} 667MKBINUTILS?= ${MKBFD}
668.endif 668.endif
669 669
670# 670#
671# We want to build zfs only for i386 and amd64 by default for now. 671# We want to build zfs only for i386 and amd64 by default for now.
672# 672#
673.if ${MACHINE} == "amd64" || ${MACHINE} == "i386" 673.if ${MACHINE} == "amd64" || ${MACHINE} == "i386"
674MKZFS?= yes 674MKZFS?= yes
675.endif 675.endif
676 676
677# 677#
678# MK* options which default to "yes". 678# MK* options which default to "yes".
679# 679#
680_MKVARS.yes= \ 680_MKVARS.yes= \
681 MKATF \ 681 MKATF \
682 MKBINUTILS \ 682 MKBINUTILS \
683 MKCATPAGES MKCRYPTO MKCOMPLEX MKCVS \ 683 MKCATPAGES MKCRYPTO MKCOMPLEX MKCVS \
684 MKDOC \ 684 MKDOC \
685 MKGCC MKGCCCMDS MKGDB \ 685 MKGCC MKGCCCMDS MKGDB \
686 MKHESIOD MKHTML \ 686 MKHESIOD MKHTML \
687 MKIEEEFP MKINET6 MKINFO MKIPFILTER MKISCSI \ 687 MKIEEEFP MKINET6 MKINFO MKIPFILTER MKISCSI \
688 MKKERBEROS \ 688 MKKERBEROS \
689 MKKMOD \ 689 MKKMOD \
690 MKLDAP MKLINKLIB MKLINT MKLVM \ 690 MKLDAP MKLINKLIB MKLINT MKLVM \
691 MKMAN \ 691 MKMAN \
692 MKMDNS \ 692 MKMDNS \
693 MKNLS \ 693 MKNLS \
694 MKOBJ \ 694 MKOBJ \
695 MKPAM \ 695 MKPAM \
696 MKPF MKPIC MKPICINSTALL MKPICLIB MKPOSTFIX MKPROFILE \ 696 MKPF MKPIC MKPICINSTALL MKPICLIB MKPOSTFIX MKPROFILE \
697 MKSHARE MKSKEY MKSTATICLIB \ 697 MKSHARE MKSKEY MKSTATICLIB \
698 MKX11FONTS \ 698 MKX11FONTS \
699 MKYP 699 MKYP
700.for var in ${_MKVARS.yes} 700.for var in ${_MKVARS.yes}
701${var}?= yes 701${var}?= yes
702.endfor 702.endfor
703 703
704# 704#
705# Exceptions to the above: 705# Exceptions to the above:
706# 706#
707.if ${MACHINE} == "evbppc" 707.if ${MACHINE} == "evbppc"
708MKKMOD= no 708MKKMOD= no
709.endif 709.endif
710 710
711# 711#
712# MK* options which default to "no". 712# MK* options which default to "no".
713# 713#
714_MKVARS.no= \ 714_MKVARS.no= \
715 MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKDEBUG MKDEBUGLIB \ 715 MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKDEBUG MKDEBUGLIB \
716 MKEXTSRC \ 716 MKEXTSRC \
717 MKMANDOC MKMANZ MKOBJDIRS \ 717 MKMANDOC MKMANZ MKOBJDIRS \
718 MKPCC MKPCCCMDS \ 718 MKPCC MKPCCCMDS \
719 MKSOFTFLOAT MKSTRIPIDENT \ 719 MKSOFTFLOAT MKSTRIPIDENT \
720 MKUNPRIVED MKUPDATE MKX11 MKZFS 720 MKUNPRIVED MKUPDATE MKX11 MKZFS
721.for var in ${_MKVARS.no} 721.for var in ${_MKVARS.no}
722${var}?=no 722${var}?=no
723.endfor 723.endfor
724 724
725# 725#
726# Do we default to XFree86 or Xorg for this platform? 726# Do we default to XFree86 or Xorg for this platform?
727# 727#
728.if ${MACHINE} == "alpha" || ${MACHINE} == "acorn32" || \ 728.if ${MACHINE} == "alpha" || ${MACHINE} == "acorn32" || \
729 ${MACHINE} == "amiga" || ${MACHINE} == "dreamcast" || \ 729 ${MACHINE} == "amiga" || ${MACHINE} == "dreamcast" || \
730 ${MACHINE} == "ews4800mips" || ${MACHINE} == "hpcarm" || \ 730 ${MACHINE} == "ews4800mips" || ${MACHINE} == "hpcarm" || \
731 ${MACHINE} == "hpcmips" || ${MACHINE} == "hpcsh" || \ 731 ${MACHINE} == "hpcmips" || ${MACHINE} == "hpcsh" || \
732 ${MACHINE} == "mac68k" || ${MACHINE} == "newsmips" || \ 732 ${MACHINE} == "mac68k" || ${MACHINE} == "newsmips" || \
733 ${MACHINE} == "ofppc" || ${MACHINE} == "pmax" || \ 733 ${MACHINE} == "ofppc" || ${MACHINE} == "pmax" || \
734 ${MACHINE} == "sun3" || ${MACHINE} == "x68k" 734 ${MACHINE} == "sun3" || ${MACHINE} == "x68k"
735X11FLAVOUR?= XFree86 735X11FLAVOUR?= XFree86
736.else 736.else
737X11FLAVOUR?= Xorg 737X11FLAVOUR?= Xorg
738.endif 738.endif
739 739
740# 740#
741# Force some options off if their dependencies are off. 741# Force some options off if their dependencies are off.
742# 742#
743 743
744.if ${MKCRYPTO} == "no" 744.if ${MKCRYPTO} == "no"
745MKKERBEROS:= no 745MKKERBEROS:= no
746.endif 746.endif
747 747
748.if ${MKMAN} == "no" 748.if ${MKMAN} == "no"
749MKCATPAGES:= no 749MKCATPAGES:= no
750MKHTML:= no 750MKHTML:= no
751.endif 751.endif
752 752
753.if ${MKLINKLIB} == "no" 753.if ${MKLINKLIB} == "no"
754MKLINT:= no 754MKLINT:= no
755MKPICINSTALL:= no 755MKPICINSTALL:= no
756MKPROFILE:= no 756MKPROFILE:= no
757.endif 757.endif
758 758
759.if ${MKPIC} == "no" 759.if ${MKPIC} == "no"
760MKPICLIB:= no 760MKPICLIB:= no
761.endif 761.endif
762 762
763.if ${MKOBJ} == "no" 763.if ${MKOBJ} == "no"
764MKOBJDIRS:= no 764MKOBJDIRS:= no
765.endif 765.endif
766 766
767.if ${MKSHARE} == "no" 767.if ${MKSHARE} == "no"
768MKCATPAGES:= no 768MKCATPAGES:= no
769MKDOC:= no 769MKDOC:= no
770MKINFO:= no 770MKINFO:= no
771MKHTML:= no 771MKHTML:= no
772MKMAN:= no 772MKMAN:= no
773MKNLS:= no 773MKNLS:= no
774.endif 774.endif
775 775
776# 776#
777# install(1) parameters. 777# install(1) parameters.
778# 778#
779COPY?= -c 779COPY?= -c
780.if ${MKUPDATE} == "no" 780.if ${MKUPDATE} == "no"
781PRESERVE?=  781PRESERVE?=
782.else 782.else
783PRESERVE?= -p 783PRESERVE?= -p
784.endif 784.endif
785RENAME?= -r 785RENAME?= -r
786HRDLINK?= -l h 786HRDLINK?= -l h
787SYMLINK?= -l s 787SYMLINK?= -l s
788 788
789METALOG?= ${DESTDIR}/METALOG 789METALOG?= ${DESTDIR}/METALOG
790METALOG.add?= ${TOOL_CAT} -l >> ${METALOG} 790METALOG.add?= ${TOOL_CAT} -l >> ${METALOG}
791.if (${_SRC_TOP_} != "") # only set INSTPRIV if inside ${NETBSDSRCDIR} 791.if (${_SRC_TOP_} != "") # only set INSTPRIV if inside ${NETBSDSRCDIR}
792.if ${MKUNPRIVED} != "no" 792.if ${MKUNPRIVED} != "no"
793INSTPRIV.unpriv=-U -M ${METALOG} -D ${DESTDIR} -h sha256 793INSTPRIV.unpriv=-U -M ${METALOG} -D ${DESTDIR} -h sha256
794.else 794.else
795INSTPRIV.unpriv= 795INSTPRIV.unpriv=
796.endif 796.endif
797INSTPRIV?= ${INSTPRIV.unpriv} -N ${NETBSDSRCDIR}/etc 797INSTPRIV?= ${INSTPRIV.unpriv} -N ${NETBSDSRCDIR}/etc
798.endif 798.endif
799STRIPFLAG?=  799STRIPFLAG?=
800 800
801.if ${NEED_OWN_INSTALL_TARGET} != "no" 801.if ${NEED_OWN_INSTALL_TARGET} != "no"
802INSTALL_DIR?= ${INSTALL} ${INSTPRIV} -d 802INSTALL_DIR?= ${INSTALL} ${INSTPRIV} -d
803INSTALL_FILE?= ${INSTALL} ${INSTPRIV} ${COPY} ${PRESERVE} ${RENAME} 803INSTALL_FILE?= ${INSTALL} ${INSTPRIV} ${COPY} ${PRESERVE} ${RENAME}
804INSTALL_LINK?= ${INSTALL} ${INSTPRIV} ${HRDLINK} ${RENAME} 804INSTALL_LINK?= ${INSTALL} ${INSTPRIV} ${HRDLINK} ${RENAME}
805INSTALL_SYMLINK?= ${INSTALL} ${INSTPRIV} ${SYMLINK} ${RENAME} 805INSTALL_SYMLINK?= ${INSTALL} ${INSTPRIV} ${SYMLINK} ${RENAME}
806HOST_INSTALL_FILE?= ${INSTALL} ${COPY} ${PRESERVE} ${RENAME} 806HOST_INSTALL_FILE?= ${INSTALL} ${COPY} ${PRESERVE} ${RENAME}
807HOST_INSTALL_DIR?= ${INSTALL} -d 807HOST_INSTALL_DIR?= ${INSTALL} -d
808HOST_INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK} ${RENAME} 808HOST_INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK} ${RENAME}
809.endif 809.endif
810 810
811# 811#
812# Set defaults for the USE_xxx variables. 812# Set defaults for the USE_xxx variables.
813# 813#
814 814
815# 815#
816# USE_* options which default to "no" and will be forced to "no" if their 816# USE_* options which default to "no" and will be forced to "no" if their
817# corresponding MK* variable is set to "no". 817# corresponding MK* variable is set to "no".
818# 818#
819.for var in USE_SKEY 819.for var in USE_SKEY
820.if (${${var:S/USE_/MK/}} == "no") 820.if (${${var:S/USE_/MK/}} == "no")
821${var}:= no 821${var}:= no
822.else 822.else
823${var}?= no 823${var}?= no
824.endif 824.endif
825.endfor 825.endfor
826 826
827# 827#
828# USE_* options which default to "yes" unless their corresponding MK* 828# USE_* options which default to "yes" unless their corresponding MK*
829# variable is set to "no". 829# variable is set to "no".
830# 830#
831.for var in USE_HESIOD USE_INET6 USE_KERBEROS USE_LDAP USE_PAM USE_YP 831.for var in USE_HESIOD USE_INET6 USE_KERBEROS USE_LDAP USE_PAM USE_YP
832.if (${${var:S/USE_/MK/}} == "no") 832.if (${${var:S/USE_/MK/}} == "no")
833${var}:= no 833${var}:= no
834.else 834.else
835${var}?= yes 835${var}?= yes
836.endif 836.endif
837.endfor 837.endfor
838 838
839# 839#
840# USE_* options which default to "yes". 840# USE_* options which default to "yes".
841# 841#
842.for var in USE_JEMALLOC 842.for var in USE_JEMALLOC
843${var}?= yes 843${var}?= yes
844.endfor 844.endfor
845 845
846# 846#
847# USE_* options which default to "no". 847# USE_* options which default to "no".
848# 848#
849#.for var in 849#.for var in
850#${var}?= no 850#${var}?= no
851#.endfor 851#.endfor
852 852
853# 853#
854# Where X11 sources are and where it is installed to. 854# Where X11 sources are and where it is installed to.
855# 855#
856.if !defined(X11SRCDIR) 856.if !defined(X11SRCDIR)
857.if exists(${NETBSDSRCDIR}/../xsrc) 857.if exists(${NETBSDSRCDIR}/../xsrc)
858X11SRCDIR!= cd ${NETBSDSRCDIR}/../xsrc && pwd 858X11SRCDIR!= cd ${NETBSDSRCDIR}/../xsrc && pwd
859.else 859.else
860X11SRCDIR= /usr/xsrc 860X11SRCDIR= /usr/xsrc
861.endif 861.endif
862.endif # !defined(X11SRCDIR) 862.endif # !defined(X11SRCDIR)
863 863
864X11SRCDIR.xc?= ${X11SRCDIR}/xfree/xc 864X11SRCDIR.xc?= ${X11SRCDIR}/xfree/xc
865X11SRCDIR.local?= ${X11SRCDIR}/local 865X11SRCDIR.local?= ${X11SRCDIR}/local
866.if ${X11FLAVOUR} == "Xorg" 866.if ${X11FLAVOUR} == "Xorg"
867X11ROOTDIR?= /usr/X11R7 867X11ROOTDIR?= /usr/X11R7
868.else 868.else
869X11ROOTDIR?= /usr/X11R6 869X11ROOTDIR?= /usr/X11R6
870.endif 870.endif
871X11BINDIR?= ${X11ROOTDIR}/bin 871X11BINDIR?= ${X11ROOTDIR}/bin
872X11ETCDIR?= /etc/X11 872X11ETCDIR?= /etc/X11
873X11FONTDIR?= ${X11ROOTDIR}/lib/X11/fonts 873X11FONTDIR?= ${X11ROOTDIR}/lib/X11/fonts
874X11INCDIR?= ${X11ROOTDIR}/include 874X11INCDIR?= ${X11ROOTDIR}/include
875X11LIBDIR?= ${X11ROOTDIR}/lib/X11 875X11LIBDIR?= ${X11ROOTDIR}/lib/X11
876X11MANDIR?= ${X11ROOTDIR}/man 876X11MANDIR?= ${X11ROOTDIR}/man
877X11USRLIBDIR?= ${X11ROOTDIR}/lib 877X11USRLIBDIR?= ${X11ROOTDIR}/lib
878 878
879# 879#
880# New modular-xorg based builds 880# New modular-xorg based builds
881# 881#
882X11SRCDIRMIT?= ${X11SRCDIR}/external/mit 882X11SRCDIRMIT?= ${X11SRCDIR}/external/mit
883.for _lib in \ 883.for _lib in \
884 FS ICE SM X11 XScrnSaver XTrap Xau Xcomposite Xcursor Xdamage \ 884 FS ICE SM X11 XScrnSaver XTrap Xau Xcomposite Xcursor Xdamage \
885 Xdmcp Xevie Xext Xfixes Xfont Xft Xi Xinerama Xmu Xpm \ 885 Xdmcp Xevie Xext Xfixes Xfont Xft Xi Xinerama Xmu Xpm \
886 Xrandr Xrender Xres Xt Xtst Xv XvMC Xxf86dga Xxf86misc Xxf86vm drm \ 886 Xrandr Xrender Xres Xt Xtst Xv XvMC Xxf86dga Xxf86misc Xxf86vm drm \
887 fontenc xkbfile xkbui Xaw lbxutil Xfontcache pciaccess 887 fontenc xkbfile xkbui Xaw lbxutil Xfontcache pciaccess
888X11SRCDIR.${_lib}?= ${X11SRCDIRMIT}/lib${_lib}/dist 888X11SRCDIR.${_lib}?= ${X11SRCDIRMIT}/lib${_lib}/dist
889.endfor 889.endfor
890 890
891.for _proto in \ 891.for _proto in \
892 xcmisc xext xf86bigfont bigreqs input kb x fonts fixes scrnsaver \ 892 xcmisc xext xf86bigfont bigreqs input kb x fonts fixes scrnsaver \
893 xinerama dri2 render resource record video xf86dga xf86misc \ 893 xinerama dri2 render resource record video xf86dga xf86misc \
894 xf86vidmode composite damage trap gl randr fontcache xf86dri 894 xf86vidmode composite damage trap gl randr fontcache xf86dri
895X11SRCDIR.${_proto}proto?= ${X11SRCDIRMIT}/${_proto}proto/dist 895X11SRCDIR.${_proto}proto?= ${X11SRCDIRMIT}/${_proto}proto/dist
896.endfor 896.endfor
897 897
898.for _dir in \ 898.for _dir in \
899 xtrans fontconfig expat freetype evieext mkfontscale bdftopcf \ 899 xtrans fontconfig expat freetype evieext mkfontscale bdftopcf \
900 xkbcomp xorg-cf-files imake xorg-server xbiff xkbdata xkeyboard-config \ 900 xkbcomp xorg-cf-files imake xorg-server xbiff xkbdata xkeyboard-config \
901 xbitmaps appres xeyes xev xedit sessreg pixman \ 901 xbitmaps appres xeyes xev xedit sessreg pixman \
902 beforelight bitmap editres makedepend fonttosfnt fslsfonts \ 902 beforelight bitmap editres makedepend fonttosfnt fslsfonts \
903 fstobdf MesaDemos MesaGLUT MesaLib ico iceauth lbxproxy listres lndir \ 903 fstobdf MesaDemos MesaGLUT MesaLib ico iceauth lbxproxy listres lndir \
904 luit xproxymanagementprotocol mkfontdir oclock proxymngr rgb \ 904 luit xproxymanagementprotocol mkfontdir oclock proxymngr rgb \
905 setxkbmap smproxy twm viewres x11perf xauth xcalc xclipboard \ 905 setxkbmap smproxy twm viewres x11perf xauth xcalc xclipboard \
906 xclock xcmsdb xconsole xcutsel xditview xdpyinfo xdriinfo xdm \ 906 xclock xcmsdb xconsole xcutsel xditview xdpyinfo xdriinfo xdm \
907 xfd xf86dga xfindproxy xfontsel xfwp xgamma xgc xhost xinit \ 907 xfd xf86dga xfindproxy xfontsel xfwp xgamma xgc xhost xinit \
908 xkill xload xlogo xlsatoms xlsclients xlsfonts xmag xmessage \ 908 xkill xload xlogo xlsatoms xlsclients xlsfonts xmag xmessage \
909 xmh xmodmap xmore xman xprop xrandr xrdb xrefresh xset \ 909 xmh xmodmap xmore xman xprop xrandr xrdb xrefresh xset \
910 xsetmode xsetpointer xsetroot xsm xstdcmap xvidtune xvinfo \ 910 xsetmode xsetpointer xsetroot xsm xstdcmap xvidtune xvinfo \
911 xwininfo xwud xprehashprinterlist xplsprinters xkbprint xkbevd \ 911 xwininfo xwud xprehashprinterlist xplsprinters xkbprint xkbevd \
912 xterm xwd xfs xfsinfo xphelloworld xtrap xkbutils xkbcomp \ 912 xterm xwd xfs xfsinfo xphelloworld xtrap xkbutils xkbcomp \
913 xkeyboard-config xinput \ 913 xkeyboard-config xinput \
914 font-adobe-100dpi font-adobe-75dpi font-adobe-utopia-100dpi \ 914 font-adobe-100dpi font-adobe-75dpi font-adobe-utopia-100dpi \
915 font-adobe-utopia-75dpi font-adobe-utopia-type1 \ 915 font-adobe-utopia-75dpi font-adobe-utopia-type1 \
916 font-alias \ 916 font-alias \
917 font-bh-100dpi font-bh-75dpi font-bh-lucidatypewriter-100dpi \ 917 font-bh-100dpi font-bh-75dpi font-bh-lucidatypewriter-100dpi \
918 font-bh-lucidatypewriter-75dpi font-bh-ttf font-bh-type1 \ 918 font-bh-lucidatypewriter-75dpi font-bh-ttf font-bh-type1 \
919 font-bitstream-100dpi font-bitstream-75dpi font-bitstream-type1 \ 919 font-bitstream-100dpi font-bitstream-75dpi font-bitstream-type1 \
920 font-cursor-misc font-daewoo-misc font-dec-misc font-ibm-type1 \ 920 font-cursor-misc font-daewoo-misc font-dec-misc font-ibm-type1 \
921 font-isas-misc font-jis-misc font-misc-misc font-mutt-misc \ 921 font-isas-misc font-jis-misc font-misc-misc font-mutt-misc \
922 font-sony-misc font-util ttf-bitstream-vera encodings 922 font-sony-misc font-util ttf-bitstream-vera encodings
923X11SRCDIR.${_dir}?= ${X11SRCDIRMIT}/${_dir}/dist 923X11SRCDIR.${_dir}?= ${X11SRCDIRMIT}/${_dir}/dist
924.endfor 924.endfor
925 925
926.for _i in \ 926.for _i in \
927 elographics keyboard mouse vmmouse void ws 927 elographics keyboard mouse vmmouse void ws
928X11SRCDIR.xf86-input-${_i}?= ${X11SRCDIRMIT}/xf86-input-${_i}/dist 928X11SRCDIR.xf86-input-${_i}?= ${X11SRCDIRMIT}/xf86-input-${_i}/dist
929.endfor 929.endfor
930 930
931.for _v in \ 931.for _v in \
932 ag10e apm ark ast ati chips cirrus crime cyrix glint i128 i740 igs \ 932 ag10e apm ark ast ati chips cirrus crime cyrix glint i128 i740 igs \
933 imstt intel mach64 mga neomagic newport nsc nv nvxbox pnozz r128 \ 933 imstt intel mach64 mga neomagic newport nsc nv nvxbox pnozz r128 \
934 radeonhd rendition s3 s3virge savage siliconmotion sis sunffb suncg6 \ 934 radeonhd rendition s3 s3virge savage siliconmotion sis sunffb suncg6 \
935 sunleo suntcx tdfx tga trident tseng vesa vga via vmware wsfb 935 sunleo suntcx tdfx tga trident tseng vesa vga via vmware wsfb
936  936
937X11SRCDIR.xf86-video-${_v}?= ${X11SRCDIRMIT}/xf86-video-${_v}/dist 937X11SRCDIR.xf86-video-${_v}?= ${X11SRCDIRMIT}/xf86-video-${_v}/dist
938.endfor 938.endfor
939 939
940.if ${X11FLAVOUR} == "Xorg" 940.if ${X11FLAVOUR} == "Xorg"
941X11DRI?= yes 941X11DRI?= yes
942.endif 942.endif
943 943
944X11DRI?= no 944X11DRI?= no
945X11LOADABLE?= yes 945X11LOADABLE?= yes
946 946
947 947
948# 948#
949# Where extsrc sources are and where it is installed to. 949# Where extsrc sources are and where it is installed to.
950# 950#
951.if !defined(EXTSRCSRCDIR) 951.if !defined(EXTSRCSRCDIR)
952.if exists(${NETBSDSRCDIR}/../extsrc) 952.if exists(${NETBSDSRCDIR}/../extsrc)
953EXTSRCSRCDIR!= cd ${NETBSDSRCDIR}/../extsrc && pwd 953EXTSRCSRCDIR!= cd ${NETBSDSRCDIR}/../extsrc && pwd
954.else 954.else
955EXTSRCSRCDIR= /usr/extsrc 955EXTSRCSRCDIR= /usr/extsrc
956.endif 956.endif
957.endif # !defined(EXTSRCSRCDIR) 957.endif # !defined(EXTSRCSRCDIR)
958 958
959EXTSRCROOTDIR?= /usr/ext 959EXTSRCROOTDIR?= /usr/ext
960EXTSRCBINDIR?= ${EXTSRCROOTDIR}/bin 960EXTSRCBINDIR?= ${EXTSRCROOTDIR}/bin
961EXTSRCETCDIR?= /etc/ext 961EXTSRCETCDIR?= /etc/ext
962EXTSRCINCDIR?= ${EXTSRCROOTDIR}/include 962EXTSRCINCDIR?= ${EXTSRCROOTDIR}/include
963EXTSRCLIBDIR?= ${EXTSRCROOTDIR}/lib/ext 963EXTSRCLIBDIR?= ${EXTSRCROOTDIR}/lib/ext
964EXTSRCMANDIR?= ${EXTSRCROOTDIR}/man 964EXTSRCMANDIR?= ${EXTSRCROOTDIR}/man
965EXTSRCUSRLIBDIR?= ${EXTSRCROOTDIR}/lib 965EXTSRCUSRLIBDIR?= ${EXTSRCROOTDIR}/lib
966 966
967# 967#
968# MAKEDIRTARGET dir target [extra make(1) params] 968# MAKEDIRTARGET dir target [extra make(1) params]
969# run "cd $${dir} && ${MAKE} [params] $${target}", with a pretty message 969# run "cd $${dir} && ${MAKEDIRTARGETENV} ${MAKE} [params] $${target}", with a pretty message
970# 970#
 971MAKEDIRTARGETENV?=
971MAKEDIRTARGET=\ 972MAKEDIRTARGET=\
972 @_makedirtarget() { \ 973 @_makedirtarget() { \
973 dir="$$1"; shift; \ 974 dir="$$1"; shift; \
974 target="$$1"; shift; \ 975 target="$$1"; shift; \
975 case "$${dir}" in \ 976 case "$${dir}" in \
976 /*) this="$${dir}/"; \ 977 /*) this="$${dir}/"; \
977 real="$${dir}" ;; \ 978 real="$${dir}" ;; \
978 .) this="${_THISDIR_}"; \ 979 .) this="${_THISDIR_}"; \
979 real="${.CURDIR}" ;; \ 980 real="${.CURDIR}" ;; \
980 *) this="${_THISDIR_}$${dir}/"; \ 981 *) this="${_THISDIR_}$${dir}/"; \
981 real="${.CURDIR}/$${dir}" ;; \ 982 real="${.CURDIR}/$${dir}" ;; \
982 esac; \ 983 esac; \
983 show=$${this:-.}; \ 984 show=$${this:-.}; \
984 echo "$${target} ===> $${show%/}$${1:+ (with: $$@)}"; \ 985 echo "$${target} ===> $${show%/}$${1:+ (with: $$@)}"; \
985 cd "$${real}" \ 986 cd "$${real}" \
986 && ${MAKE} _THISDIR_="$${this}" "$$@" $${target}; \ 987 && ${MAKEDIRTARGETENV} ${MAKE} _THISDIR_="$${this}" "$$@" $${target}; \
987 }; \ 988 }; \
988 _makedirtarget 989 _makedirtarget
989 990
990# 991#
991# ${GENCMD} <generated name> <command and arguments> 992# ${GENCMD} <generated name> <command and arguments>
992# Extract only one output from generation command so that make rule is 993# Extract only one output from generation command so that make rule is
993# written straight and avoid race (duplicate generation). <generated 994# written straight and avoid race (duplicate generation). <generated
994# name> is usually ${.TARGET}; if you want foo.c from foo.y, yacc 995# name> is usually ${.TARGET}; if you want foo.c from foo.y, yacc
995# generates y.tab.c, so <generated name> is y.tab.c. See bin/sh/Makefile 996# generates y.tab.c, so <generated name> is y.tab.c. See bin/sh/Makefile
996# for examples. 997# for examples.
997# 998#
998GENCMD=\ 999GENCMD=\
999 @_gencmd() { \ 1000 @_gencmd() { \
1000 local _dst="$$1"; shift; local _src="$$1"; shift; local _gen="$$1"; shift; \ 1001 local _dst="$$1"; shift; local _src="$$1"; shift; local _gen="$$1"; shift; \
1001 local _tmp=$$( ${TOOL_MKTEMP} -d /tmp/_gencmd.XXXXXX ); \ 1002 local _tmp=$$( ${TOOL_MKTEMP} -d /tmp/_gencmd.XXXXXX ); \
1002 local _opwd=$$PWD; \ 1003 local _opwd=$$PWD; \
1003 local _exit; \ 1004 local _exit; \
1004 cp $$_src $$_tmp; \ 1005 cp $$_src $$_tmp; \
1005 { cd $$_tmp && eval "$$@"; _exit=$$?; cd $$_opwd; }; \ 1006 { cd $$_tmp && eval "$$@"; _exit=$$?; cd $$_opwd; }; \
1006 [ $$_exit = 0 ] && cp $${_tmp}/$${_gen} $$_dst; \ 1007 [ $$_exit = 0 ] && cp $${_tmp}/$${_gen} $$_dst; \
1007 rm -fr $$_tmp; \ 1008 rm -fr $$_tmp; \
1008 return $$_exit; \ 1009 return $$_exit; \
1009 }; \ 1010 }; \
1010 _gencmd "${.TARGET}" "${.ALLSRC}" 1011 _gencmd "${.TARGET}" "${.ALLSRC}"
1011 1012
1012# 1013#
1013# MAKEVERBOSE support. Levels are: 1014# MAKEVERBOSE support. Levels are:
1014# 0 Minimal output ("quiet") 1015# 0 Minimal output ("quiet")
1015# 1 Describe what is occurring 1016# 1 Describe what is occurring
1016# 2 Describe what is occurring and echo the actual command 1017# 2 Describe what is occurring and echo the actual command
1017# 3 Ignore the effect of the "@" prefix in make commands 1018# 3 Ignore the effect of the "@" prefix in make commands
1018# 4 Trace shell commands using the shell's -x flag 1019# 4 Trace shell commands using the shell's -x flag
1019#  1020#
1020MAKEVERBOSE?= 2 1021MAKEVERBOSE?= 2
1021 1022
1022.if ${MAKEVERBOSE} == 0 1023.if ${MAKEVERBOSE} == 0
1023_MKMSG?= @\# 1024_MKMSG?= @\#
1024_MKSHMSG?= : echo 1025_MKSHMSG?= : echo
1025_MKSHECHO?= : echo 1026_MKSHECHO?= : echo
1026.SILENT: 1027.SILENT:
1027.elif ${MAKEVERBOSE} == 1 1028.elif ${MAKEVERBOSE} == 1
1028_MKMSG?= @echo ' ' 1029_MKMSG?= @echo ' '
1029_MKSHMSG?= echo ' ' 1030_MKSHMSG?= echo ' '
1030_MKSHECHO?= : echo 1031_MKSHECHO?= : echo
1031.SILENT: 1032.SILENT:
1032.else # MAKEVERBOSE >= 2 1033.else # MAKEVERBOSE >= 2
1033_MKMSG?= @echo '\# ' 1034_MKMSG?= @echo '\# '
1034_MKSHMSG?= echo '\# ' 1035_MKSHMSG?= echo '\# '
1035_MKSHECHO?= echo 1036_MKSHECHO?= echo
1036.SILENT: __makeverbose_dummy_target__ 1037.SILENT: __makeverbose_dummy_target__
1037.endif # MAKEVERBOSE >= 2 1038.endif # MAKEVERBOSE >= 2
1038.if ${MAKEVERBOSE} >= 3 1039.if ${MAKEVERBOSE} >= 3
1039.MAKEFLAGS: -dl 1040.MAKEFLAGS: -dl
1040.endif # ${MAKEVERBOSE} >= 3 1041.endif # ${MAKEVERBOSE} >= 3
1041.if ${MAKEVERBOSE} >= 4 1042.if ${MAKEVERBOSE} >= 4
1042.MAKEFLAGS: -dx 1043.MAKEFLAGS: -dx
1043.endif # ${MAKEVERBOSE} >= 4 1044.endif # ${MAKEVERBOSE} >= 4
1044 1045
1045_MKMSG_BUILD?= ${_MKMSG} " build " 1046_MKMSG_BUILD?= ${_MKMSG} " build "
1046_MKMSG_CREATE?= ${_MKMSG} " create " 1047_MKMSG_CREATE?= ${_MKMSG} " create "
1047_MKMSG_COMPILE?= ${_MKMSG} "compile " 1048_MKMSG_COMPILE?= ${_MKMSG} "compile "
1048_MKMSG_FORMAT?= ${_MKMSG} " format " 1049_MKMSG_FORMAT?= ${_MKMSG} " format "
1049_MKMSG_INSTALL?= ${_MKMSG} "install " 1050_MKMSG_INSTALL?= ${_MKMSG} "install "
1050_MKMSG_LINK?= ${_MKMSG} " link " 1051_MKMSG_LINK?= ${_MKMSG} " link "
1051_MKMSG_LEX?= ${_MKMSG} " lex " 1052_MKMSG_LEX?= ${_MKMSG} " lex "
1052_MKMSG_REMOVE?= ${_MKMSG} " remove " 1053_MKMSG_REMOVE?= ${_MKMSG} " remove "
1053_MKMSG_YACC?= ${_MKMSG} " yacc " 1054_MKMSG_YACC?= ${_MKMSG} " yacc "
1054 1055
1055_MKSHMSG_CREATE?= ${_MKSHMSG} " create " 1056_MKSHMSG_CREATE?= ${_MKSHMSG} " create "
1056_MKSHMSG_INSTALL?= ${_MKSHMSG} "install " 1057_MKSHMSG_INSTALL?= ${_MKSHMSG} "install "
1057 1058
1058_MKTARGET_BUILD?= ${_MKMSG_BUILD} ${.CURDIR:T}/${.TARGET} 1059_MKTARGET_BUILD?= ${_MKMSG_BUILD} ${.CURDIR:T}/${.TARGET}
1059_MKTARGET_CREATE?= ${_MKMSG_CREATE} ${.CURDIR:T}/${.TARGET} 1060_MKTARGET_CREATE?= ${_MKMSG_CREATE} ${.CURDIR:T}/${.TARGET}
1060_MKTARGET_COMPILE?= ${_MKMSG_COMPILE} ${.CURDIR:T}/${.TARGET} 1061_MKTARGET_COMPILE?= ${_MKMSG_COMPILE} ${.CURDIR:T}/${.TARGET}
1061_MKTARGET_FORMAT?= ${_MKMSG_FORMAT} ${.CURDIR:T}/${.TARGET} 1062_MKTARGET_FORMAT?= ${_MKMSG_FORMAT} ${.CURDIR:T}/${.TARGET}
1062_MKTARGET_INSTALL?= ${_MKMSG_INSTALL} ${.TARGET} 1063_MKTARGET_INSTALL?= ${_MKMSG_INSTALL} ${.TARGET}
1063_MKTARGET_LINK?= ${_MKMSG_LINK} ${.CURDIR:T}/${.TARGET} 1064_MKTARGET_LINK?= ${_MKMSG_LINK} ${.CURDIR:T}/${.TARGET}
1064_MKTARGET_LEX?= ${_MKMSG_LEX} ${.CURDIR:T}/${.TARGET} 1065_MKTARGET_LEX?= ${_MKMSG_LEX} ${.CURDIR:T}/${.TARGET}
1065_MKTARGET_REMOVE?= ${_MKMSG_REMOVE} ${.TARGET} 1066_MKTARGET_REMOVE?= ${_MKMSG_REMOVE} ${.TARGET}
1066_MKTARGET_YACC?= ${_MKMSG_YACC} ${.CURDIR:T}/${.TARGET} 1067_MKTARGET_YACC?= ${_MKMSG_YACC} ${.CURDIR:T}/${.TARGET}
1067 1068
1068.if ${MKMANDOC} == "yes" 1069.if ${MKMANDOC} == "yes"
1069TARGETS+= lintmanpages 1070TARGETS+= lintmanpages
1070.endif 1071.endif
1071 1072
1072.endif # !defined(_BSD_OWN_MK_) 1073.endif # !defined(_BSD_OWN_MK_)