| @@ -1,1783 +1,1782 @@ | | | @@ -1,1783 +1,1782 @@ |
1 | # $NetBSD: bsd.own.mk,v 1.1254 2021/05/27 21:02:56 christos Exp $ | | 1 | # $NetBSD: bsd.own.mk,v 1.1255 2021/05/29 12:25:08 rin 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 | |
11 | MAKECONF?= /etc/mk.conf | | 11 | MAKECONF?= /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 | # |
17 | MACHINE_CPU= ${MACHINE_ARCH:C/mips.*e[bl]/mips/:C/sh3e[bl]/sh3/:S/coldfire/m68k/:S/m68000/m68k/:C/e?arm.*/arm/:S/powerpc64/powerpc/:S/aarch64eb/aarch64/:S/or1knd/or1k/:C/riscv../riscv/} | | 17 | MACHINE_CPU= ${MACHINE_ARCH:C/mips.*e[bl]/mips/:C/sh3e[bl]/sh3/:S/coldfire/m68k/:S/m68000/m68k/:C/e?arm.*/arm/:S/powerpc64/powerpc/:S/aarch64eb/aarch64/:S/or1knd/or1k/:C/riscv../riscv/} |
18 | | | 18 | |
19 | .if (${MACHINE_ARCH} == "mips64el" || \ | | 19 | .if (${MACHINE_ARCH} == "mips64el" || \ |
20 | ${MACHINE_ARCH} == "mips64eb" || \ | | 20 | ${MACHINE_ARCH} == "mips64eb" || \ |
21 | ${MACHINE_ARCH} == "mipsn64el" || \ | | 21 | ${MACHINE_ARCH} == "mipsn64el" || \ |
22 | ${MACHINE_ARCH} == "mipsn64eb") | | 22 | ${MACHINE_ARCH} == "mipsn64eb") |
23 | MACHINE_MIPS64= 1 | | 23 | MACHINE_MIPS64= 1 |
24 | .else | | 24 | .else |
25 | MACHINE_MIPS64= 0 | | 25 | MACHINE_MIPS64= 0 |
26 | .endif | | 26 | .endif |
27 | | | 27 | |
28 | # | | 28 | # |
29 | # Subdirectory used below ${RELEASEDIR} when building a release | | 29 | # Subdirectory used below ${RELEASEDIR} when building a release |
30 | # | | 30 | # |
31 | .if !empty(MACHINE:Mevbarm) || !empty(MACHINE:Mevbmips) \ | | 31 | .if !empty(MACHINE:Mevbarm) || !empty(MACHINE:Mevbmips) \ |
32 | || !empty(MACHINE:Mevbsh3) | | 32 | || !empty(MACHINE:Mevbsh3) |
33 | RELEASEMACHINEDIR?= ${MACHINE}-${MACHINE_ARCH} | | 33 | RELEASEMACHINEDIR?= ${MACHINE}-${MACHINE_ARCH} |
34 | .else | | 34 | .else |
35 | RELEASEMACHINEDIR?= ${MACHINE} | | 35 | RELEASEMACHINEDIR?= ${MACHINE} |
36 | .endif | | 36 | .endif |
37 | | | 37 | |
38 | # | | 38 | # |
39 | # Subdirectory or path component used for the following paths: | | 39 | # Subdirectory or path component used for the following paths: |
40 | # distrib/${RELEASEMACHINE} | | 40 | # distrib/${RELEASEMACHINE} |
41 | # distrib/notes/${RELEASEMACHINE} | | 41 | # distrib/notes/${RELEASEMACHINE} |
42 | # etc/etc.${RELEASEMACHINE} | | 42 | # etc/etc.${RELEASEMACHINE} |
43 | # Used when building a release. | | 43 | # Used when building a release. |
44 | # | | 44 | # |
45 | RELEASEMACHINE?= ${MACHINE} | | 45 | RELEASEMACHINE?= ${MACHINE} |
46 | | | 46 | |
47 | # | | 47 | # |
48 | # NEED_OWN_INSTALL_TARGET is set to "no" by pkgsrc/mk/bsd.pkg.mk to | | 48 | # NEED_OWN_INSTALL_TARGET is set to "no" by pkgsrc/mk/bsd.pkg.mk to |
49 | # ensure that things defined by <bsd.own.mk> (default targets, | | 49 | # ensure that things defined by <bsd.own.mk> (default targets, |
50 | # INSTALL_FILE, etc.) are not conflicting with bsd.pkg.mk. | | 50 | # INSTALL_FILE, etc.) are not conflicting with bsd.pkg.mk. |
51 | # | | 51 | # |
52 | NEED_OWN_INSTALL_TARGET?= yes | | 52 | NEED_OWN_INSTALL_TARGET?= yes |
53 | | | 53 | |
54 | # | | 54 | # |
55 | # This lists the platforms which do not have working in-tree toolchains. For | | 55 | # This lists the platforms which do not have working in-tree toolchains. For |
56 | # the in-tree gcc toolchain, this list is empty. | | 56 | # the in-tree gcc toolchain, this list is empty. |
57 | # | | 57 | # |
58 | # If some future port is not supported by the in-tree toolchain, this should | | 58 | # If some future port is not supported by the in-tree toolchain, this should |
59 | # be set to "yes" for that port only. | | 59 | # be set to "yes" for that port only. |
60 | # | | 60 | # |
61 | # .if ${MACHINE} == "playstation2" | | 61 | # .if ${MACHINE} == "playstation2" |
62 | # TOOLCHAIN_MISSING?= yes | | 62 | # TOOLCHAIN_MISSING?= yes |
63 | # .endif | | 63 | # .endif |
64 | | | 64 | |
65 | TOOLCHAIN_MISSING?= no | | 65 | TOOLCHAIN_MISSING?= no |
66 | | | 66 | |
67 | # | | 67 | # |
68 | # GCC Using platforms. | | 68 | # GCC Using platforms. |
69 | # | | 69 | # |
70 | .if ${MKGCC:Uyes} != "no" | | 70 | .if ${MKGCC:Uyes} != "no" |
71 | | | 71 | |
72 | # | | 72 | # |
73 | # What GCC is used? | | 73 | # What GCC is used? |
74 | # | | 74 | # |
75 | .if ${MACHINE} == "alpha" || \ | | 75 | .if ${MACHINE} == "alpha" || \ |
76 | ${MACHINE} == "hppa" || \ | | 76 | ${MACHINE} == "hppa" || \ |
77 | ${MACHINE} == "ia64" || \ | | 77 | ${MACHINE} == "ia64" || \ |
78 | ${MACHINE} == "sparc" || \ | | 78 | ${MACHINE} == "sparc" || \ |
79 | ${MACHINE} == "sparc64" || \ | | 79 | ${MACHINE} == "sparc64" || \ |
80 | ${MACHINE} == "vax" || \ | | 80 | ${MACHINE} == "vax" || \ |
81 | ${MACHINE_ARCH} == "i386" || \ | | 81 | ${MACHINE_ARCH} == "i386" || \ |
82 | ${MACHINE_ARCH} == "x86_64" || \ | | 82 | ${MACHINE_ARCH} == "x86_64" || \ |
83 | ${MACHINE_CPU} == "aarch64" || \ | | 83 | ${MACHINE_CPU} == "aarch64" || \ |
84 | ${MACHINE_CPU} == "mips" || \ | | 84 | ${MACHINE_CPU} == "mips" || \ |
85 | ${MACHINE_CPU} == "powerpc" || \ | | 85 | ${MACHINE_CPU} == "powerpc" || \ |
86 | ${MACHINE_CPU} == "riscv" | | 86 | ${MACHINE_CPU} == "riscv" |
87 | HAVE_GCC?= 10 | | 87 | HAVE_GCC?= 10 |
88 | .else | | 88 | .else |
89 | HAVE_GCC?= 9 | | 89 | HAVE_GCC?= 9 |
90 | .endif | | 90 | .endif |
91 | | | 91 | |
92 | # | | 92 | # |
93 | # Platforms that can't run a modern GCC natively | | 93 | # Platforms that can't run a modern GCC natively |
94 | .if ${MACHINE_ARCH} == "m68000" | | 94 | .if ${MACHINE_ARCH} == "m68000" |
95 | MKGCCCMDS?= no | | 95 | MKGCCCMDS?= no |
96 | .endif | | 96 | .endif |
97 | | | 97 | |
98 | # | | 98 | # |
99 | # We import the old gcc as "gcc.old" when upgrading. EXTERNAL_GCC_SUBDIR is | | 99 | # We import the old gcc as "gcc.old" when upgrading. EXTERNAL_GCC_SUBDIR is |
100 | # set to the relevant subdirectory in src/external/gpl3 for his HAVE_GCC. | | 100 | # set to the relevant subdirectory in src/external/gpl3 for his HAVE_GCC. |
101 | # | | 101 | # |
102 | .if ${HAVE_GCC} == 9 | | 102 | .if ${HAVE_GCC} == 9 |
103 | EXTERNAL_GCC_SUBDIR?= gcc.old | | 103 | EXTERNAL_GCC_SUBDIR?= gcc.old |
104 | .elif ${HAVE_GCC} == 10 | | 104 | .elif ${HAVE_GCC} == 10 |
105 | EXTERNAL_GCC_SUBDIR?= gcc | | 105 | EXTERNAL_GCC_SUBDIR?= gcc |
106 | .else | | 106 | .else |
107 | EXTERNAL_GCC_SUBDIR?= /does/not/exist | | 107 | EXTERNAL_GCC_SUBDIR?= /does/not/exist |
108 | .endif | | 108 | .endif |
109 | .else | | 109 | .else |
110 | MKGCCCMDS?= no | | 110 | MKGCCCMDS?= no |
111 | .endif | | 111 | .endif |
112 | | | 112 | |
113 | # | | 113 | # |
114 | # What binutils is used? | | 114 | # What binutils is used? |
115 | # | | 115 | # |
116 | HAVE_BINUTILS?= 234 | | 116 | HAVE_BINUTILS?= 234 |
117 | | | 117 | |
118 | .if ${HAVE_BINUTILS} == 234 | | 118 | .if ${HAVE_BINUTILS} == 234 |
119 | EXTERNAL_BINUTILS_SUBDIR= binutils | | 119 | EXTERNAL_BINUTILS_SUBDIR= binutils |
120 | .elif ${HAVE_BINUTILS} == 231 | | 120 | .elif ${HAVE_BINUTILS} == 231 |
121 | EXTERNAL_BINUTILS_SUBDIR= binutils.old | | 121 | EXTERNAL_BINUTILS_SUBDIR= binutils.old |
122 | .else | | 122 | .else |
123 | EXTERNAL_BINUTILS_SUBDIR= /does/not/exist | | 123 | EXTERNAL_BINUTILS_SUBDIR= /does/not/exist |
124 | .endif | | 124 | .endif |
125 | | | 125 | |
126 | # | | 126 | # |
127 | # What GDB is used? | | 127 | # What GDB is used? |
128 | # | | 128 | # |
129 | HAVE_GDB?= 1100 | | 129 | HAVE_GDB?= 1100 |
130 | | | 130 | |
131 | .if ${HAVE_GDB} == 1100 | | 131 | .if ${HAVE_GDB} == 1100 |
132 | EXTERNAL_GDB_SUBDIR= gdb | | 132 | EXTERNAL_GDB_SUBDIR= gdb |
133 | .elif ${HAVE_GDB} == 830 | | 133 | .elif ${HAVE_GDB} == 830 |
134 | EXTERNAL_GDB_SUBDIR= gdb.old | | 134 | EXTERNAL_GDB_SUBDIR= gdb.old |
135 | .else | | 135 | .else |
136 | EXTERNAL_GDB_SUBDIR= /does/not/exist | | 136 | EXTERNAL_GDB_SUBDIR= /does/not/exist |
137 | .endif | | 137 | .endif |
138 | | | 138 | |
139 | # | | 139 | # |
140 | # What OpenSSL is used? | | 140 | # What OpenSSL is used? |
141 | # | | 141 | # |
142 | HAVE_OPENSSL?= 11 | | 142 | HAVE_OPENSSL?= 11 |
143 | | | 143 | |
144 | .if ${HAVE_OPENSSL} == 11 | | 144 | .if ${HAVE_OPENSSL} == 11 |
145 | EXTERNAL_OPENSSL_SUBDIR=openssl | | 145 | EXTERNAL_OPENSSL_SUBDIR=openssl |
146 | .elif ${HAVE_OPENSSL} == 10 | | 146 | .elif ${HAVE_OPENSSL} == 10 |
147 | EXTERNAL_OPENSSL_SUBDIR=openssl.old | | 147 | EXTERNAL_OPENSSL_SUBDIR=openssl.old |
148 | .else | | 148 | .else |
149 | EXTERNAL_OPENSSL_SUBDIR=/does/not/exist | | 149 | EXTERNAL_OPENSSL_SUBDIR=/does/not/exist |
150 | .endif | | 150 | .endif |
151 | | | 151 | |
152 | # | | 152 | # |
153 | # Does the platform support ACPI? | | 153 | # Does the platform support ACPI? |
154 | # | | 154 | # |
155 | .if ${MACHINE_ARCH} == "i386" || \ | | 155 | .if ${MACHINE_ARCH} == "i386" || \ |
156 | ${MACHINE_ARCH} == "x86_64" || \ | | 156 | ${MACHINE_ARCH} == "x86_64" || \ |
157 | ${MACHINE_ARCH} == "ia64" || \ | | 157 | ${MACHINE_ARCH} == "ia64" || \ |
158 | !empty(MACHINE_ARCH:Maarch64*) | | 158 | !empty(MACHINE_ARCH:Maarch64*) |
159 | HAVE_ACPI= yes | | 159 | HAVE_ACPI= yes |
160 | .else | | 160 | .else |
161 | HAVE_ACPI= no | | 161 | HAVE_ACPI= no |
162 | .endif | | 162 | .endif |
163 | | | 163 | |
164 | # | | 164 | # |
165 | # Does the platform support UEFI? | | 165 | # Does the platform support UEFI? |
166 | # | | 166 | # |
167 | .if ${MACHINE_ARCH} == "i386" || \ | | 167 | .if ${MACHINE_ARCH} == "i386" || \ |
168 | ${MACHINE_ARCH} == "x86_64" || \ | | 168 | ${MACHINE_ARCH} == "x86_64" || \ |
169 | ${MACHINE_ARCH} == "ia64" || \ | | 169 | ${MACHINE_ARCH} == "ia64" || \ |
170 | !empty(MACHINE_ARCH:Mearmv7*) || \ | | 170 | !empty(MACHINE_ARCH:Mearmv7*) || \ |
171 | !empty(MACHINE_ARCH:Maarch64*) | | 171 | !empty(MACHINE_ARCH:Maarch64*) |
172 | HAVE_UEFI= yes | | 172 | HAVE_UEFI= yes |
173 | .else | | 173 | .else |
174 | HAVE_UEFI= no | | 174 | HAVE_UEFI= no |
175 | .endif | | 175 | .endif |
176 | | | 176 | |
177 | # | | 177 | # |
178 | # Does the platform support NVMM? | | 178 | # Does the platform support NVMM? |
179 | # | | 179 | # |
180 | .if ${MACHINE_ARCH} == "x86_64" | | 180 | .if ${MACHINE_ARCH} == "x86_64" |
181 | HAVE_NVMM= yes | | 181 | HAVE_NVMM= yes |
182 | .else | | 182 | .else |
183 | HAVE_NVMM= no | | 183 | HAVE_NVMM= no |
184 | .endif | | 184 | .endif |
185 | | | 185 | |
186 | | | 186 | |
187 | .if !empty(MACHINE_ARCH:Mearm*) | | 187 | .if !empty(MACHINE_ARCH:Mearm*) |
188 | _LIBC_COMPILER_RT.${MACHINE_ARCH}= yes | | 188 | _LIBC_COMPILER_RT.${MACHINE_ARCH}= yes |
189 | .endif | | 189 | .endif |
190 | | | 190 | |
191 | _LIBC_COMPILER_RT.aarch64= yes | | 191 | _LIBC_COMPILER_RT.aarch64= yes |
192 | _LIBC_COMPILER_RT.aarch64eb= yes | | 192 | _LIBC_COMPILER_RT.aarch64eb= yes |
193 | _LIBC_COMPILER_RT.i386= yes | | 193 | _LIBC_COMPILER_RT.i386= yes |
194 | _LIBC_COMPILER_RT.powerpc= yes | | 194 | _LIBC_COMPILER_RT.powerpc= yes |
195 | _LIBC_COMPILER_RT.powerpc64= yes | | 195 | _LIBC_COMPILER_RT.powerpc64= yes |
196 | _LIBC_COMPILER_RT.sparc= yes | | 196 | _LIBC_COMPILER_RT.sparc= yes |
197 | _LIBC_COMPILER_RT.sparc64= yes | | 197 | _LIBC_COMPILER_RT.sparc64= yes |
198 | _LIBC_COMPILER_RT.x86_64= yes | | 198 | _LIBC_COMPILER_RT.x86_64= yes |
199 | | | 199 | |
200 | .if ${HAVE_LLVM:Uno} == "yes" && ${_LIBC_COMPILER_RT.${MACHINE_ARCH}:Uno} == "yes" | | 200 | .if ${HAVE_LLVM:Uno} == "yes" && ${_LIBC_COMPILER_RT.${MACHINE_ARCH}:Uno} == "yes" |
201 | HAVE_LIBGCC?= no | | 201 | HAVE_LIBGCC?= no |
202 | .else | | 202 | .else |
203 | HAVE_LIBGCC?= yes | | 203 | HAVE_LIBGCC?= yes |
204 | .endif | | 204 | .endif |
205 | | | 205 | |
206 | | | 206 | |
207 | # Should libgcc have unwinding code? | | 207 | # Should libgcc have unwinding code? |
208 | .if ${HAVE_LLVM:Uno} == "yes" || !empty(MACHINE_ARCH:Mearm*) | | 208 | .if ${HAVE_LLVM:Uno} == "yes" || !empty(MACHINE_ARCH:Mearm*) |
209 | HAVE_LIBGCC_EH?= no | | 209 | HAVE_LIBGCC_EH?= no |
210 | .else | | 210 | .else |
211 | HAVE_LIBGCC_EH?= yes | | 211 | HAVE_LIBGCC_EH?= yes |
212 | .endif | | 212 | .endif |
213 | | | 213 | |
214 | # Coverity does not like SSP | | 214 | # Coverity does not like SSP |
215 | .if defined(COVERITY_TOP_CONFIG) || \ | | 215 | .if defined(COVERITY_TOP_CONFIG) || \ |
216 | ${MACHINE} == "alpha" || \ | | 216 | ${MACHINE} == "alpha" || \ |
217 | ${MACHINE} == "hppa" || \ | | 217 | ${MACHINE} == "hppa" || \ |
218 | ${MACHINE} == "ia64" || \ | | 218 | ${MACHINE} == "ia64" || \ |
219 | ${MACHINE_CPU} == "mips" | | 219 | ${MACHINE_CPU} == "mips" |
220 | HAVE_SSP?= no | | 220 | HAVE_SSP?= no |
221 | .else | | 221 | .else |
222 | HAVE_SSP?= yes | | 222 | HAVE_SSP?= yes |
223 | .if !defined(NOFORT) && ${USE_FORT:Uno} != "no" | | 223 | .if !defined(NOFORT) && ${USE_FORT:Uno} != "no" |
224 | USE_SSP?= yes | | 224 | USE_SSP?= yes |
225 | .endif | | 225 | .endif |
226 | .endif | | 226 | .endif |
227 | | | 227 | |
228 | # | | 228 | # |
229 | # What version of jemalloc we use (100 is the one | | 229 | # What version of jemalloc we use (100 is the one |
230 | # built-in to libc from 2005 (pre version 3). | | 230 | # built-in to libc from 2005 (pre version 3). |
231 | # | | 231 | # |
232 | .if ${MACHINE_ARCH} == "vax" || ${MACHINE} == "sun2" | | 232 | .if ${MACHINE_ARCH} == "vax" || ${MACHINE} == "sun2" |
233 | HAVE_JEMALLOC?= 100 | | 233 | HAVE_JEMALLOC?= 100 |
234 | .else | | 234 | .else |
235 | HAVE_JEMALLOC?= 510 | | 235 | HAVE_JEMALLOC?= 510 |
236 | .endif | | 236 | .endif |
237 | | | 237 | |
238 | .if empty(.MAKEFLAGS:tW:M*-V .OBJDIR*) | | 238 | .if empty(.MAKEFLAGS:tW:M*-V .OBJDIR*) |
239 | .if defined(MAKEOBJDIRPREFIX) || defined(MAKEOBJDIR) | | 239 | .if defined(MAKEOBJDIRPREFIX) || defined(MAKEOBJDIR) |
240 | PRINTOBJDIR= ${MAKE} -r -V .OBJDIR -f /dev/null xxx | | 240 | PRINTOBJDIR= ${MAKE} -r -V .OBJDIR -f /dev/null xxx |
241 | .else | | 241 | .else |
242 | PRINTOBJDIR= ${MAKE} -V .OBJDIR | | 242 | PRINTOBJDIR= ${MAKE} -V .OBJDIR |
243 | .endif | | 243 | .endif |
244 | .else | | 244 | .else |
245 | PRINTOBJDIR= echo /error/bsd.own.mk/PRINTOBJDIR # avoid infinite recursion | | 245 | PRINTOBJDIR= echo /error/bsd.own.mk/PRINTOBJDIR # avoid infinite recursion |
246 | .endif | | 246 | .endif |
247 | | | 247 | |
248 | # | | 248 | # |
249 | # Determine if running in the NetBSD source tree by checking for the | | 249 | # Determine if running in the NetBSD source tree by checking for the |
250 | # existence of build.sh and tools/ in the current or a parent directory, | | 250 | # existence of build.sh and tools/ in the current or a parent directory, |
251 | # and setting _SRC_TOP_ to the result. | | 251 | # and setting _SRC_TOP_ to the result. |
252 | # | | 252 | # |
253 | .if !defined(_SRC_TOP_) # { | | 253 | .if !defined(_SRC_TOP_) # { |
254 | _SRC_TOP_!= cd "${.CURDIR}"; while :; do \ | | 254 | _SRC_TOP_!= cd "${.CURDIR}"; while :; do \ |
255 | here=`pwd`; \ | | 255 | here=`pwd`; \ |
256 | [ -f build.sh ] && [ -d tools ] && { echo $$here; break; }; \ | | 256 | [ -f build.sh ] && [ -d tools ] && { echo $$here; break; }; \ |
257 | case $$here in /) echo ""; break;; esac; \ | | 257 | case $$here in /) echo ""; break;; esac; \ |
258 | cd ..; done | | 258 | cd ..; done |
259 | | | 259 | |
260 | .MAKEOVERRIDES+= _SRC_TOP_ | | 260 | .MAKEOVERRIDES+= _SRC_TOP_ |
261 | | | 261 | |
262 | .endif # } | | 262 | .endif # } |
263 | | | 263 | |
264 | # | | 264 | # |
265 | # If _SRC_TOP_ != "", we're within the NetBSD source tree. | | 265 | # If _SRC_TOP_ != "", we're within the NetBSD source tree. |
266 | # * Set defaults for NETBSDSRCDIR and _SRC_TOP_OBJ_. | | 266 | # * Set defaults for NETBSDSRCDIR and _SRC_TOP_OBJ_. |
267 | # * Define _NETBSD_VERSION_DEPENDS. Targets that depend on the | | 267 | # * Define _NETBSD_VERSION_DEPENDS. Targets that depend on the |
268 | # NetBSD version, or on variables defined at build time, can | | 268 | # NetBSD version, or on variables defined at build time, can |
269 | # declare a dependency on ${_NETBSD_VERSION_DEPENDS}. | | 269 | # declare a dependency on ${_NETBSD_VERSION_DEPENDS}. |
270 | # | | 270 | # |
271 | .if (${_SRC_TOP_} != "") # { | | 271 | .if (${_SRC_TOP_} != "") # { |
272 | | | 272 | |
273 | NETBSDSRCDIR?= ${_SRC_TOP_} | | 273 | NETBSDSRCDIR?= ${_SRC_TOP_} |
274 | | | 274 | |
275 | .if !defined(_SRC_TOP_OBJ_) | | 275 | .if !defined(_SRC_TOP_OBJ_) |
276 | _SRC_TOP_OBJ_!= cd "${_SRC_TOP_}" && ${PRINTOBJDIR} | | 276 | _SRC_TOP_OBJ_!= cd "${_SRC_TOP_}" && ${PRINTOBJDIR} |
277 | .MAKEOVERRIDES+= _SRC_TOP_OBJ_ | | 277 | .MAKEOVERRIDES+= _SRC_TOP_OBJ_ |
278 | .endif | | 278 | .endif |
279 | | | 279 | |
280 | _NETBSD_VERSION_DEPENDS= ${_SRC_TOP_OBJ_}/params | | 280 | _NETBSD_VERSION_DEPENDS= ${_SRC_TOP_OBJ_}/params |
281 | _NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/sys/param.h | | 281 | _NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/sys/param.h |
282 | _NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/conf/newvers.sh | | 282 | _NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/conf/newvers.sh |
283 | _NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/conf/osrelease.sh | | 283 | _NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/conf/osrelease.sh |
284 | ${_SRC_TOP_OBJ_}/params: .NOTMAIN .OPTIONAL # created by top level "make build" | | 284 | ${_SRC_TOP_OBJ_}/params: .NOTMAIN .OPTIONAL # created by top level "make build" |
285 | | | 285 | |
286 | .endif # _SRC_TOP_ != "" # } | | 286 | .endif # _SRC_TOP_ != "" # } |
287 | | | 287 | |
288 | | | 288 | |
289 | .if (${_SRC_TOP_} != "") && \ | | 289 | .if (${_SRC_TOP_} != "") && \ |
290 | (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) | | 290 | (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) |
291 | USETOOLS?= yes | | 291 | USETOOLS?= yes |
292 | .endif | | 292 | .endif |
293 | USETOOLS?= no | | 293 | USETOOLS?= no |
294 | | | 294 | |
295 | | | 295 | |
296 | .if ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "mips64" || \ | | 296 | .if ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "mips64" || \ |
297 | ${MACHINE_ARCH} == "sh3" | | 297 | ${MACHINE_ARCH} == "sh3" |
298 | .BEGIN: | | 298 | .BEGIN: |
299 | @echo "Must set MACHINE_ARCH to one of ${MACHINE_ARCH}eb or ${MACHINE_ARCH}el" | | 299 | @echo "Must set MACHINE_ARCH to one of ${MACHINE_ARCH}eb or ${MACHINE_ARCH}el" |
300 | @false | | 300 | @false |
301 | .elif defined(REQUIRETOOLS) && \ | | 301 | .elif defined(REQUIRETOOLS) && \ |
302 | (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) && \ | | 302 | (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) && \ |
303 | ${USETOOLS} == "no" | | 303 | ${USETOOLS} == "no" |
304 | .BEGIN: | | 304 | .BEGIN: |
305 | @echo "USETOOLS=no, but this component requires a version-specific host toolchain" | | 305 | @echo "USETOOLS=no, but this component requires a version-specific host toolchain" |
306 | @false | | 306 | @false |
307 | .endif | | 307 | .endif |
308 | | | 308 | |
309 | # | | 309 | # |
310 | # Host platform information; may be overridden | | 310 | # Host platform information; may be overridden |
311 | # | | 311 | # |
312 | .include <bsd.host.mk> | | 312 | .include <bsd.host.mk> |
313 | | | 313 | |
314 | .if ${USETOOLS} == "yes" # { | | 314 | .if ${USETOOLS} == "yes" # { |
315 | | | 315 | |
316 | # | | 316 | # |
317 | # Provide a default for TOOLDIR. | | 317 | # Provide a default for TOOLDIR. |
318 | # | | 318 | # |
319 | .if !defined(TOOLDIR) | | 319 | .if !defined(TOOLDIR) |
320 | TOOLDIR:= ${_SRC_TOP_OBJ_}/tooldir.${HOST_OSTYPE} | | 320 | TOOLDIR:= ${_SRC_TOP_OBJ_}/tooldir.${HOST_OSTYPE} |
321 | .MAKEOVERRIDES+= TOOLDIR | | 321 | .MAKEOVERRIDES+= TOOLDIR |
322 | .endif | | 322 | .endif |
323 | | | 323 | |
324 | # | | 324 | # |
325 | # This is the prefix used for the NetBSD-sourced tools. | | 325 | # This is the prefix used for the NetBSD-sourced tools. |
326 | # | | 326 | # |
327 | _TOOL_PREFIX?= nb | | 327 | _TOOL_PREFIX?= nb |
328 | | | 328 | |
329 | # | | 329 | # |
330 | # If an external toolchain base is specified, use it. | | 330 | # If an external toolchain base is specified, use it. |
331 | # | | 331 | # |
332 | .if defined(EXTERNAL_TOOLCHAIN) # { | | 332 | .if defined(EXTERNAL_TOOLCHAIN) # { |
333 | AR= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ar | | 333 | AR= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ar |
334 | AS= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-as | | 334 | AS= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-as |
335 | LD= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ld | | 335 | LD= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ld |
336 | NM= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-nm | | 336 | NM= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-nm |
337 | OBJCOPY= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objcopy | | 337 | OBJCOPY= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objcopy |
338 | OBJDUMP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objdump | | 338 | OBJDUMP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objdump |
339 | RANLIB= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ranlib | | 339 | RANLIB= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ranlib |
340 | READELF= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-readelf | | 340 | READELF= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-readelf |
341 | SIZE= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-size | | 341 | SIZE= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-size |
342 | STRINGS= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strings | | 342 | STRINGS= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strings |
343 | STRIP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strip | | 343 | STRIP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strip |
344 | | | 344 | |
345 | TOOL_CC.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc | | 345 | TOOL_CC.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc |
346 | TOOL_CPP.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-cpp | | 346 | TOOL_CPP.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-cpp |
347 | TOOL_CXX.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-c++ | | 347 | TOOL_CXX.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-c++ |
348 | TOOL_FC.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gfortran | | 348 | TOOL_FC.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gfortran |
349 | TOOL_OBJC.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc | | 349 | TOOL_OBJC.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc |
350 | | | 350 | |
351 | TOOL_CC.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang | | 351 | TOOL_CC.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang |
352 | TOOL_CPP.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang-cpp | | 352 | TOOL_CPP.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang-cpp |
353 | TOOL_CXX.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang++ | | 353 | TOOL_CXX.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang++ |
354 | TOOL_OBJC.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang | | 354 | TOOL_OBJC.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang |
355 | .else # } { | | 355 | .else # } { |
356 | # Define default locations for common tools. | | 356 | # Define default locations for common tools. |
357 | .if ${USETOOLS_BINUTILS:Uyes} == "yes" # { | | 357 | .if ${USETOOLS_BINUTILS:Uyes} == "yes" # { |
358 | AR= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ar | | 358 | AR= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ar |
359 | AS= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-as | | 359 | AS= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-as |
360 | LD= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld | | 360 | LD= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld |
361 | NM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-nm | | 361 | NM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-nm |
362 | OBJCOPY= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objcopy | | 362 | OBJCOPY= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objcopy |
363 | OBJDUMP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objdump | | 363 | OBJDUMP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objdump |
364 | RANLIB= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib | | 364 | RANLIB= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib |
365 | READELF= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-readelf | | 365 | READELF= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-readelf |
366 | SIZE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-size | | 366 | SIZE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-size |
367 | STRINGS= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strings | | 367 | STRINGS= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strings |
368 | STRIP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip | | 368 | STRIP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip |
369 | | | 369 | |
370 | # GCC supports C, C++, Fortran and Objective C | | 370 | # GCC supports C, C++, Fortran and Objective C |
371 | TOOL_CC.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc | | 371 | TOOL_CC.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc |
372 | TOOL_CPP.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-cpp | | 372 | TOOL_CPP.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-cpp |
373 | TOOL_CXX.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-c++ | | 373 | TOOL_CXX.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-c++ |
374 | TOOL_FC.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gfortran | | 374 | TOOL_FC.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gfortran |
375 | TOOL_OBJC.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc | | 375 | TOOL_OBJC.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc |
376 | .endif # } | | 376 | .endif # } |
377 | | | 377 | |
378 | # Clang supports C, C++ and Objective C | | 378 | # Clang supports C, C++ and Objective C |
379 | TOOL_CC.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang | | 379 | TOOL_CC.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang |
380 | TOOL_CPP.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang-cpp | | 380 | TOOL_CPP.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang-cpp |
381 | TOOL_CXX.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang++ | | 381 | TOOL_CXX.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang++ |
382 | TOOL_OBJC.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang | | 382 | TOOL_OBJC.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang |
383 | | | 383 | |
384 | # PCC supports C and Fortran | | 384 | # PCC supports C and Fortran |
385 | TOOL_CC.pcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-pcc | | 385 | TOOL_CC.pcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-pcc |
386 | TOOL_CPP.pcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-pcpp | | 386 | TOOL_CPP.pcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-pcpp |
387 | TOOL_CXX.pcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-p++ | | 387 | TOOL_CXX.pcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-p++ |
388 | .endif # EXTERNAL_TOOLCHAIN # } | | 388 | .endif # EXTERNAL_TOOLCHAIN # } |
389 | | | 389 | |
390 | # | | 390 | # |
391 | # Make sure DESTDIR is set, so that builds with these tools always | | 391 | # Make sure DESTDIR is set, so that builds with these tools always |
392 | # get appropriate -nostdinc, -nostdlib, etc. handling. The default is | | 392 | # get appropriate -nostdinc, -nostdlib, etc. handling. The default is |
393 | # <empty string>, meaning start from /, the root directory. | | 393 | # <empty string>, meaning start from /, the root directory. |
394 | # | | 394 | # |
395 | DESTDIR?= | | 395 | DESTDIR?= |
396 | | | 396 | |
397 | # Don't append another copy of sysroot (coming from COMPATCPPFLAGS etc.) | | 397 | # Don't append another copy of sysroot (coming from COMPATCPPFLAGS etc.) |
398 | # because it confuses Coverity. Still we need to cov-configure specially | | 398 | # because it confuses Coverity. Still we need to cov-configure specially |
399 | # for each specific sysroot argument. | | 399 | # for each specific sysroot argument. |
400 | # Also don't add a sysroot at all if a rumpkernel build. | | 400 | # Also don't add a sysroot at all if a rumpkernel build. |
401 | .if !defined(HOSTPROG) && !defined(HOSTLIB) && !defined(RUMPRUN) | | 401 | .if !defined(HOSTPROG) && !defined(HOSTLIB) && !defined(RUMPRUN) |
402 | . if ${DESTDIR} != "" | | 402 | . if ${DESTDIR} != "" |
403 | . if empty(CPPFLAGS:M*--sysroot=*) | | 403 | . if empty(CPPFLAGS:M*--sysroot=*) |
404 | CPPFLAGS+= --sysroot=${DESTDIR} | | 404 | CPPFLAGS+= --sysroot=${DESTDIR} |
405 | . endif | | 405 | . endif |
406 | LDFLAGS+= --sysroot=${DESTDIR} | | 406 | LDFLAGS+= --sysroot=${DESTDIR} |
407 | . else | | 407 | . else |
408 | . if empty(CPPFLAGS:M*--sysroot=*) | | 408 | . if empty(CPPFLAGS:M*--sysroot=*) |
409 | CPPFLAGS+= --sysroot=/ | | 409 | CPPFLAGS+= --sysroot=/ |
410 | . endif | | 410 | . endif |
411 | LDFLAGS+= --sysroot=/ | | 411 | LDFLAGS+= --sysroot=/ |
412 | . endif | | 412 | . endif |
413 | .endif | | 413 | .endif |
414 | | | 414 | |
415 | DBSYM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-dbsym | | 415 | DBSYM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-dbsym |
416 | ARM_ELF2AOUT= ${TOOLDIR}/bin/${_TOOL_PREFIX}arm-elf2aout | | 416 | ARM_ELF2AOUT= ${TOOLDIR}/bin/${_TOOL_PREFIX}arm-elf2aout |
417 | M68K_ELF2AOUT= ${TOOLDIR}/bin/${_TOOL_PREFIX}m68k-elf2aout | | 417 | M68K_ELF2AOUT= ${TOOLDIR}/bin/${_TOOL_PREFIX}m68k-elf2aout |
418 | MIPS_ELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff | | 418 | MIPS_ELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff |
419 | INSTALL= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install | | 419 | INSTALL= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install |
420 | LEX= ${TOOLDIR}/bin/${_TOOL_PREFIX}lex | | 420 | LEX= ${TOOLDIR}/bin/${_TOOL_PREFIX}lex |
421 | LINT= CC=${CC:Q} ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-lint | | 421 | LINT= CC=${CC:Q} ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-lint |
422 | LORDER= NM=${NM:Q} MKTEMP=${TOOL_MKTEMP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder | | 422 | LORDER= NM=${NM:Q} MKTEMP=${TOOL_MKTEMP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder |
423 | MKDEP= CC=${CC:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep | | 423 | MKDEP= CC=${CC:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep |
424 | MKDEPCXX= CC=${CXX:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep | | 424 | MKDEPCXX= CC=${CXX:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep |
425 | PAXCTL= ${TOOLDIR}/bin/${_TOOL_PREFIX}paxctl | | 425 | PAXCTL= ${TOOLDIR}/bin/${_TOOL_PREFIX}paxctl |
426 | TSORT= ${TOOLDIR}/bin/${_TOOL_PREFIX}tsort -q | | 426 | TSORT= ${TOOLDIR}/bin/${_TOOL_PREFIX}tsort -q |
427 | YACC= ${TOOLDIR}/bin/${_TOOL_PREFIX}yacc | | 427 | YACC= ${TOOLDIR}/bin/${_TOOL_PREFIX}yacc |
428 | | | 428 | |
429 | TOOL_AMIGAAOUT2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-aout2bb | | 429 | TOOL_AMIGAAOUT2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-aout2bb |
430 | TOOL_AMIGAELF2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-elf2bb | | 430 | TOOL_AMIGAELF2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-elf2bb |
431 | TOOL_AMIGATXLT= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-txlt | | 431 | TOOL_AMIGATXLT= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-txlt |
432 | TOOL_ASN1_COMPILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}asn1_compile | | 432 | TOOL_ASN1_COMPILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}asn1_compile |
433 | TOOL_AWK= ${TOOLDIR}/bin/${_TOOL_PREFIX}awk | | 433 | TOOL_AWK= ${TOOLDIR}/bin/${_TOOL_PREFIX}awk |
434 | TOOL_CAP_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}cap_mkdb | | 434 | TOOL_CAP_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}cap_mkdb |
435 | TOOL_CAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}cat | | 435 | TOOL_CAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}cat |
436 | TOOL_CKSUM= ${TOOLDIR}/bin/${_TOOL_PREFIX}cksum | | 436 | TOOL_CKSUM= ${TOOLDIR}/bin/${_TOOL_PREFIX}cksum |
437 | TOOL_CLANG_TBLGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}clang-tblgen | | 437 | TOOL_CLANG_TBLGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}clang-tblgen |
438 | TOOL_COMPILE_ET= ${TOOLDIR}/bin/${_TOOL_PREFIX}compile_et | | 438 | TOOL_COMPILE_ET= ${TOOLDIR}/bin/${_TOOL_PREFIX}compile_et |
439 | TOOL_CONFIG= ${TOOLDIR}/bin/${_TOOL_PREFIX}config | | 439 | TOOL_CONFIG= ${TOOLDIR}/bin/${_TOOL_PREFIX}config |
440 | TOOL_CRUNCHGEN= MAKE=${.MAKE:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}crunchgen | | 440 | TOOL_CRUNCHGEN= MAKE=${.MAKE:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}crunchgen |
441 | TOOL_CTAGS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctags | | 441 | TOOL_CTAGS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctags |
442 | TOOL_CTFCONVERT= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctfconvert | | 442 | TOOL_CTFCONVERT= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctfconvert |
443 | TOOL_CTFMERGE= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctfmerge | | 443 | TOOL_CTFMERGE= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctfmerge |
444 | TOOL_CVSLATEST= ${TOOLDIR}/bin/${_TOOL_PREFIX}cvslatest | | 444 | TOOL_CVSLATEST= ${TOOLDIR}/bin/${_TOOL_PREFIX}cvslatest |
445 | TOOL_DATE= ${TOOLDIR}/bin/${_TOOL_PREFIX}date | | 445 | TOOL_DATE= ${TOOLDIR}/bin/${_TOOL_PREFIX}date |
446 | TOOL_DB= ${TOOLDIR}/bin/${_TOOL_PREFIX}db | | 446 | TOOL_DB= ${TOOLDIR}/bin/${_TOOL_PREFIX}db |
447 | TOOL_DISKLABEL= ${TOOLDIR}/bin/${_TOOL_PREFIX}disklabel | | 447 | TOOL_DISKLABEL= ${TOOLDIR}/bin/${_TOOL_PREFIX}disklabel |
448 | TOOL_DTC= ${TOOLDIR}/bin/${_TOOL_PREFIX}dtc | | 448 | TOOL_DTC= ${TOOLDIR}/bin/${_TOOL_PREFIX}dtc |
449 | TOOL_EQN= ${TOOLDIR}/bin/${_TOOL_PREFIX}eqn | | 449 | TOOL_EQN= ${TOOLDIR}/bin/${_TOOL_PREFIX}eqn |
450 | TOOL_FDISK= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk | | 450 | TOOL_FDISK= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk |
451 | TOOL_FGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}fgen | | 451 | TOOL_FGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}fgen |
452 | TOOL_GENASSYM= ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym | | 452 | TOOL_GENASSYM= ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym |
453 | TOOL_GENCAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}gencat | | 453 | TOOL_GENCAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}gencat |
454 | TOOL_GMAKE= ${TOOLDIR}/bin/${_TOOL_PREFIX}gmake | | 454 | TOOL_GMAKE= ${TOOLDIR}/bin/${_TOOL_PREFIX}gmake |
455 | TOOL_GPT= ${TOOLDIR}/bin/${_TOOL_PREFIX}gpt | | 455 | TOOL_GPT= ${TOOLDIR}/bin/${_TOOL_PREFIX}gpt |
456 | TOOL_GREP= ${TOOLDIR}/bin/${_TOOL_PREFIX}grep | | 456 | TOOL_GREP= ${TOOLDIR}/bin/${_TOOL_PREFIX}grep |
457 | GROFF_SHARE_PATH= ${TOOLDIR}/share/groff | | 457 | GROFF_SHARE_PATH= ${TOOLDIR}/share/groff |
458 | TOOL_GROFF_ENV= \ | | 458 | TOOL_GROFF_ENV= \ |
459 | GROFF_ENCODING= \ | | 459 | GROFF_ENCODING= \ |
460 | GROFF_BIN_PATH=${TOOLDIR}/lib/groff \ | | 460 | GROFF_BIN_PATH=${TOOLDIR}/lib/groff \ |
461 | GROFF_FONT_PATH=${GROFF_SHARE_PATH}/site-font:${GROFF_SHARE_PATH}/font \ | | 461 | GROFF_FONT_PATH=${GROFF_SHARE_PATH}/site-font:${GROFF_SHARE_PATH}/font \ |
462 | GROFF_TMAC_PATH=${GROFF_SHARE_PATH}/site-tmac:${GROFF_SHARE_PATH}/tmac | | 462 | GROFF_TMAC_PATH=${GROFF_SHARE_PATH}/site-tmac:${GROFF_SHARE_PATH}/tmac |
463 | TOOL_GROFF= ${TOOL_GROFF_ENV} ${TOOLDIR}/bin/${_TOOL_PREFIX}groff ${GROFF_FLAGS} | | 463 | TOOL_GROFF= ${TOOL_GROFF_ENV} ${TOOLDIR}/bin/${_TOOL_PREFIX}groff ${GROFF_FLAGS} |
464 | | | 464 | |
465 | TOOL_HEXDUMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}hexdump | | 465 | TOOL_HEXDUMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}hexdump |
466 | TOOL_HP300MKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hp300-mkboot | | 466 | TOOL_HP300MKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hp300-mkboot |
467 | TOOL_HPPAMKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hppa-mkboot | | 467 | TOOL_HPPAMKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hppa-mkboot |
468 | TOOL_INDXBIB= ${TOOLDIR}/bin/${_TOOL_PREFIX}indxbib | | 468 | TOOL_INDXBIB= ${TOOLDIR}/bin/${_TOOL_PREFIX}indxbib |
469 | TOOL_INSTALLBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}installboot | | 469 | TOOL_INSTALLBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}installboot |
470 | TOOL_INSTALL_INFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}install-info | | 470 | TOOL_INSTALL_INFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}install-info |
471 | TOOL_JOIN= ${TOOLDIR}/bin/${_TOOL_PREFIX}join | | 471 | TOOL_JOIN= ${TOOLDIR}/bin/${_TOOL_PREFIX}join |
472 | TOOL_LLVM_TBLGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}llvm-tblgen | | 472 | TOOL_LLVM_TBLGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}llvm-tblgen |
473 | TOOL_M4= ${TOOLDIR}/bin/${_TOOL_PREFIX}m4 | | 473 | TOOL_M4= ${TOOLDIR}/bin/${_TOOL_PREFIX}m4 |
474 | TOOL_MACPPCFIXCOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}macppc-fixcoff | | 474 | TOOL_MACPPCFIXCOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}macppc-fixcoff |
475 | TOOL_MAKEFS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makefs | | 475 | TOOL_MAKEFS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makefs |
476 | TOOL_MAKEINFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}makeinfo | | 476 | TOOL_MAKEINFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}makeinfo |
477 | TOOL_MAKEKEYS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makekeys | | 477 | TOOL_MAKEKEYS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makekeys |
478 | TOOL_MAKESTRS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makestrs | | 478 | TOOL_MAKESTRS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makestrs |
479 | TOOL_MAKEWHATIS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makewhatis | | 479 | TOOL_MAKEWHATIS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makewhatis |
480 | TOOL_MANDOC_ASCII= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tascii | | 480 | TOOL_MANDOC_ASCII= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tascii |
481 | TOOL_MANDOC_HTML= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Thtml | | 481 | TOOL_MANDOC_HTML= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Thtml |
482 | TOOL_MANDOC_LINT= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tlint | | 482 | TOOL_MANDOC_LINT= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tlint |
483 | TOOL_MDSETIMAGE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-mdsetimage | | 483 | TOOL_MDSETIMAGE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-mdsetimage |
484 | TOOL_MENUC= MENUDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}menuc | | 484 | TOOL_MENUC= MENUDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}menuc |
485 | TOOL_ARMELF2AOUT= ${TOOLDIR}/bin/${_TOOL_PREFIX}arm-elf2aout | | 485 | TOOL_ARMELF2AOUT= ${TOOLDIR}/bin/${_TOOL_PREFIX}arm-elf2aout |
486 | TOOL_M68KELF2AOUT= ${TOOLDIR}/bin/${_TOOL_PREFIX}m68k-elf2aout | | 486 | TOOL_M68KELF2AOUT= ${TOOLDIR}/bin/${_TOOL_PREFIX}m68k-elf2aout |
487 | TOOL_MIPSELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff | | 487 | TOOL_MIPSELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff |
488 | TOOL_MKCSMAPPER= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkcsmapper | | 488 | TOOL_MKCSMAPPER= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkcsmapper |
489 | TOOL_MKESDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkesdb | | 489 | TOOL_MKESDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkesdb |
490 | TOOL_MKLOCALE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mklocale | | 490 | TOOL_MKLOCALE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mklocale |
491 | TOOL_MKMAGIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}file | | 491 | TOOL_MKMAGIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}file |
492 | TOOL_MKNOD= ${TOOLDIR}/bin/${_TOOL_PREFIX}mknod | | 492 | TOOL_MKNOD= ${TOOLDIR}/bin/${_TOOL_PREFIX}mknod |
493 | TOOL_MKTEMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}mktemp | | 493 | TOOL_MKTEMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}mktemp |
494 | TOOL_MKUBOOTIMAGE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkubootimage | | 494 | TOOL_MKUBOOTIMAGE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkubootimage |
495 | TOOL_ELFTOSB= ${TOOLDIR}/bin/${_TOOL_PREFIX}elftosb | | 495 | TOOL_ELFTOSB= ${TOOLDIR}/bin/${_TOOL_PREFIX}elftosb |
496 | TOOL_MSGC= MSGDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}msgc | | 496 | TOOL_MSGC= MSGDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}msgc |
497 | TOOL_MTREE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mtree | | 497 | TOOL_MTREE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mtree |
498 | TOOL_MVME68KWRTVID= ${TOOLDIR}/bin/${_TOOL_PREFIX}mvme68k-wrtvid | | 498 | TOOL_MVME68KWRTVID= ${TOOLDIR}/bin/${_TOOL_PREFIX}mvme68k-wrtvid |
499 | TOOL_NBPERF= ${TOOLDIR}/bin/${_TOOL_PREFIX}perf | | 499 | TOOL_NBPERF= ${TOOLDIR}/bin/${_TOOL_PREFIX}perf |
500 | TOOL_NCDCS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ibmnws-ncdcs | | 500 | TOOL_NCDCS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ibmnws-ncdcs |
501 | TOOL_PAX= ${TOOLDIR}/bin/${_TOOL_PREFIX}pax | | 501 | TOOL_PAX= ${TOOLDIR}/bin/${_TOOL_PREFIX}pax |
502 | TOOL_PIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}pic | | 502 | TOOL_PIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}pic |
503 | TOOL_PIGZ= ${TOOLDIR}/bin/${_TOOL_PREFIX}pigz | | 503 | TOOL_PIGZ= ${TOOLDIR}/bin/${_TOOL_PREFIX}pigz |
504 | TOOL_XZ= ${TOOLDIR}/bin/${_TOOL_PREFIX}xz | | 504 | TOOL_XZ= ${TOOLDIR}/bin/${_TOOL_PREFIX}xz |
505 | TOOL_PKG_CREATE= ${TOOLDIR}/bin/${_TOOL_PREFIX}pkg_create | | 505 | TOOL_PKG_CREATE= ${TOOLDIR}/bin/${_TOOL_PREFIX}pkg_create |
506 | TOOL_POWERPCMKBOOTIMAGE=${TOOLDIR}/bin/${_TOOL_PREFIX}powerpc-mkbootimage | | 506 | TOOL_POWERPCMKBOOTIMAGE=${TOOLDIR}/bin/${_TOOL_PREFIX}powerpc-mkbootimage |
507 | TOOL_PWD_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}pwd_mkdb | | 507 | TOOL_PWD_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}pwd_mkdb |
508 | TOOL_REFER= ${TOOLDIR}/bin/${_TOOL_PREFIX}refer | | 508 | TOOL_REFER= ${TOOLDIR}/bin/${_TOOL_PREFIX}refer |
509 | TOOL_ROFF_ASCII= ${TOOL_GROFF_ENV} ${TOOLDIR}/bin/${_TOOL_PREFIX}nroff | | 509 | TOOL_ROFF_ASCII= ${TOOL_GROFF_ENV} ${TOOLDIR}/bin/${_TOOL_PREFIX}nroff |
510 | TOOL_ROFF_DOCASCII= ${TOOL_GROFF} -Tascii | | 510 | TOOL_ROFF_DOCASCII= ${TOOL_GROFF} -Tascii |
511 | TOOL_ROFF_DOCHTML= ${TOOL_GROFF} -Thtml | | 511 | TOOL_ROFF_DOCHTML= ${TOOL_GROFF} -Thtml |
512 | TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi ${ROFF_PAGESIZE} | | 512 | TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi ${ROFF_PAGESIZE} |
513 | TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html | | 513 | TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html |
514 | TOOL_ROFF_PS= ${TOOL_GROFF} -Tps ${ROFF_PAGESIZE} | | 514 | TOOL_ROFF_PS= ${TOOL_GROFF} -Tps ${ROFF_PAGESIZE} |
515 | TOOL_ROFF_RAW= ${TOOL_GROFF} -Z | | 515 | TOOL_ROFF_RAW= ${TOOL_GROFF} -Z |
516 | TOOL_RPCGEN= RPCGEN_CPP=${CPP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}rpcgen | | 516 | TOOL_RPCGEN= RPCGEN_CPP=${CPP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}rpcgen |
517 | TOOL_SED= ${TOOLDIR}/bin/${_TOOL_PREFIX}sed | | 517 | TOOL_SED= ${TOOLDIR}/bin/${_TOOL_PREFIX}sed |
518 | TOOL_SLC= ${TOOLDIR}/bin/${_TOOL_PREFIX}slc | | 518 | TOOL_SLC= ${TOOLDIR}/bin/${_TOOL_PREFIX}slc |
519 | TOOL_SOELIM= ${TOOLDIR}/bin/${_TOOL_PREFIX}soelim | | 519 | TOOL_SOELIM= ${TOOLDIR}/bin/${_TOOL_PREFIX}soelim |
520 | TOOL_SORTINFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}sortinfo | | 520 | TOOL_SORTINFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}sortinfo |
521 | TOOL_SPARKCRC= ${TOOLDIR}/bin/${_TOOL_PREFIX}sparkcrc | | 521 | TOOL_SPARKCRC= ${TOOLDIR}/bin/${_TOOL_PREFIX}sparkcrc |
522 | TOOL_STAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}stat | | 522 | TOOL_STAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}stat |
523 | TOOL_STRFILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}strfile | | 523 | TOOL_STRFILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}strfile |
524 | TOOL_SUNLABEL= ${TOOLDIR}/bin/${_TOOL_PREFIX}sunlabel | | 524 | TOOL_SUNLABEL= ${TOOLDIR}/bin/${_TOOL_PREFIX}sunlabel |
525 | TOOL_TBL= ${TOOLDIR}/bin/${_TOOL_PREFIX}tbl | | 525 | TOOL_TBL= ${TOOLDIR}/bin/${_TOOL_PREFIX}tbl |
526 | TOOL_TIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}tic | | 526 | TOOL_TIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}tic |
527 | TOOL_UUDECODE= ${TOOLDIR}/bin/${_TOOL_PREFIX}uudecode | | 527 | TOOL_UUDECODE= ${TOOLDIR}/bin/${_TOOL_PREFIX}uudecode |
528 | TOOL_VGRIND= ${TOOLDIR}/bin/${_TOOL_PREFIX}vgrind -f | | 528 | TOOL_VGRIND= ${TOOLDIR}/bin/${_TOOL_PREFIX}vgrind -f |
529 | TOOL_VFONTEDPR= ${TOOLDIR}/libexec/${_TOOL_PREFIX}vfontedpr | | 529 | TOOL_VFONTEDPR= ${TOOLDIR}/libexec/${_TOOL_PREFIX}vfontedpr |
530 | TOOL_ZIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}zic | | 530 | TOOL_ZIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}zic |
531 | | | 531 | |
532 | .else # USETOOLS != yes # } { | | 532 | .else # USETOOLS != yes # } { |
533 | | | 533 | |
534 | # Clang supports C, C++ and Objective C | | 534 | # Clang supports C, C++ and Objective C |
535 | TOOL_CC.clang= clang | | 535 | TOOL_CC.clang= clang |
536 | TOOL_CPP.clang= clang-cpp | | 536 | TOOL_CPP.clang= clang-cpp |
537 | TOOL_CXX.clang= clang++ | | 537 | TOOL_CXX.clang= clang++ |
538 | TOOL_OBJC.clang= clang | | 538 | TOOL_OBJC.clang= clang |
539 | | | 539 | |
540 | # GCC supports C, C++, Fortran and Objective C | | 540 | # GCC supports C, C++, Fortran and Objective C |
541 | TOOL_CC.gcc= gcc | | 541 | TOOL_CC.gcc= gcc |
542 | TOOL_CPP.gcc= cpp | | 542 | TOOL_CPP.gcc= cpp |
543 | TOOL_CXX.gcc= c++ | | 543 | TOOL_CXX.gcc= c++ |
544 | TOOL_FC.gcc= gfortran | | 544 | TOOL_FC.gcc= gfortran |
545 | TOOL_OBJC.gcc= gcc | | 545 | TOOL_OBJC.gcc= gcc |
546 | | | 546 | |
547 | # PCC supports C and Fortran | | 547 | # PCC supports C and Fortran |
548 | TOOL_CC.pcc= pcc | | 548 | TOOL_CC.pcc= pcc |
549 | TOOL_CPP.pcc= pcpp | | 549 | TOOL_CPP.pcc= pcpp |
550 | TOOL_CXX.pcc= p++ | | 550 | TOOL_CXX.pcc= p++ |
551 | | | 551 | |
552 | TOOL_AMIGAAOUT2BB= amiga-aout2bb | | 552 | TOOL_AMIGAAOUT2BB= amiga-aout2bb |
553 | TOOL_AMIGAELF2BB= amiga-elf2bb | | 553 | TOOL_AMIGAELF2BB= amiga-elf2bb |
554 | TOOL_AMIGATXLT= amiga-txlt | | 554 | TOOL_AMIGATXLT= amiga-txlt |
555 | TOOL_ASN1_COMPILE= asn1_compile | | 555 | TOOL_ASN1_COMPILE= asn1_compile |
556 | TOOL_AWK= awk | | 556 | TOOL_AWK= awk |
557 | TOOL_CAP_MKDB= cap_mkdb | | 557 | TOOL_CAP_MKDB= cap_mkdb |
558 | TOOL_CAT= cat | | 558 | TOOL_CAT= cat |
559 | TOOL_CKSUM= cksum | | 559 | TOOL_CKSUM= cksum |
560 | TOOL_CLANG_TBLGEN= clang-tblgen | | 560 | TOOL_CLANG_TBLGEN= clang-tblgen |
561 | TOOL_COMPILE_ET= compile_et | | 561 | TOOL_COMPILE_ET= compile_et |
562 | TOOL_CONFIG= config | | 562 | TOOL_CONFIG= config |
563 | TOOL_CRUNCHGEN= crunchgen | | 563 | TOOL_CRUNCHGEN= crunchgen |
564 | TOOL_CTAGS= ctags | | 564 | TOOL_CTAGS= ctags |
565 | TOOL_CTFCONVERT= ctfconvert | | 565 | TOOL_CTFCONVERT= ctfconvert |
566 | TOOL_CTFMERGE= ctfmerge | | 566 | TOOL_CTFMERGE= ctfmerge |
567 | TOOL_CVSLATEST= cvslatest | | 567 | TOOL_CVSLATEST= cvslatest |
568 | TOOL_DATE= date | | 568 | TOOL_DATE= date |
569 | TOOL_DB= db | | 569 | TOOL_DB= db |
570 | TOOL_DISKLABEL= disklabel | | 570 | TOOL_DISKLABEL= disklabel |
571 | TOOL_DTC= dtc | | 571 | TOOL_DTC= dtc |
572 | TOOL_EQN= eqn | | 572 | TOOL_EQN= eqn |
573 | TOOL_FDISK= fdisk | | 573 | TOOL_FDISK= fdisk |
574 | TOOL_FGEN= fgen | | 574 | TOOL_FGEN= fgen |
575 | TOOL_GENASSYM= genassym | | 575 | TOOL_GENASSYM= genassym |
576 | TOOL_GENCAT= gencat | | 576 | TOOL_GENCAT= gencat |
577 | TOOL_GMAKE= gmake | | 577 | TOOL_GMAKE= gmake |
578 | TOOL_GPT= gpt | | 578 | TOOL_GPT= gpt |
579 | TOOL_GREP= grep | | 579 | TOOL_GREP= grep |
580 | TOOL_GROFF= groff | | 580 | TOOL_GROFF= groff |
581 | TOOL_HEXDUMP= hexdump | | 581 | TOOL_HEXDUMP= hexdump |
582 | TOOL_HP300MKBOOT= hp300-mkboot | | 582 | TOOL_HP300MKBOOT= hp300-mkboot |
583 | TOOL_HPPAMKBOOT= hppa-mkboot | | 583 | TOOL_HPPAMKBOOT= hppa-mkboot |
584 | TOOL_INDXBIB= indxbib | | 584 | TOOL_INDXBIB= indxbib |
585 | TOOL_INSTALLBOOT= installboot | | 585 | TOOL_INSTALLBOOT= installboot |
586 | TOOL_INSTALL_INFO= install-info | | 586 | TOOL_INSTALL_INFO= install-info |
587 | TOOL_JOIN= join | | 587 | TOOL_JOIN= join |
588 | TOOL_LLVM_TBLGEN= llvm-tblgen | | 588 | TOOL_LLVM_TBLGEN= llvm-tblgen |
589 | TOOL_M4= m4 | | 589 | TOOL_M4= m4 |
590 | TOOL_MACPPCFIXCOFF= macppc-fixcoff | | 590 | TOOL_MACPPCFIXCOFF= macppc-fixcoff |
591 | TOOL_MAKEFS= makefs | | 591 | TOOL_MAKEFS= makefs |
592 | TOOL_MAKEINFO= makeinfo | | 592 | TOOL_MAKEINFO= makeinfo |
593 | TOOL_MAKEKEYS= makekeys | | 593 | TOOL_MAKEKEYS= makekeys |
594 | TOOL_MAKESTRS= makestrs | | 594 | TOOL_MAKESTRS= makestrs |
595 | TOOL_MAKEWHATIS= /usr/libexec/makewhatis | | 595 | TOOL_MAKEWHATIS= /usr/libexec/makewhatis |
596 | TOOL_MANDOC_ASCII= mandoc -Tascii | | 596 | TOOL_MANDOC_ASCII= mandoc -Tascii |
597 | TOOL_MANDOC_HTML= mandoc -Thtml | | 597 | TOOL_MANDOC_HTML= mandoc -Thtml |
598 | TOOL_MANDOC_LINT= mandoc -Tlint | | 598 | TOOL_MANDOC_LINT= mandoc -Tlint |
599 | TOOL_MDSETIMAGE= mdsetimage | | 599 | TOOL_MDSETIMAGE= mdsetimage |
600 | TOOL_MENUC= menuc | | 600 | TOOL_MENUC= menuc |
601 | TOOL_ARMELF2AOUT= arm-elf2aout | | 601 | TOOL_ARMELF2AOUT= arm-elf2aout |
602 | TOOL_M68KELF2AOUT= m68k-elf2aout | | 602 | TOOL_M68KELF2AOUT= m68k-elf2aout |
603 | TOOL_MIPSELF2ECOFF= mips-elf2ecoff | | 603 | TOOL_MIPSELF2ECOFF= mips-elf2ecoff |
604 | TOOL_MKCSMAPPER= mkcsmapper | | 604 | TOOL_MKCSMAPPER= mkcsmapper |
605 | TOOL_MKESDB= mkesdb | | 605 | TOOL_MKESDB= mkesdb |
606 | TOOL_MKLOCALE= mklocale | | 606 | TOOL_MKLOCALE= mklocale |
607 | TOOL_MKMAGIC= file | | 607 | TOOL_MKMAGIC= file |
608 | TOOL_MKNOD= mknod | | 608 | TOOL_MKNOD= mknod |
609 | TOOL_MKTEMP= mktemp | | 609 | TOOL_MKTEMP= mktemp |
610 | TOOL_MKUBOOTIMAGE= mkubootimage | | 610 | TOOL_MKUBOOTIMAGE= mkubootimage |
611 | TOOL_ELFTOSB= elftosb | | 611 | TOOL_ELFTOSB= elftosb |
612 | TOOL_MSGC= msgc | | 612 | TOOL_MSGC= msgc |
613 | TOOL_MTREE= mtree | | 613 | TOOL_MTREE= mtree |
614 | TOOL_MVME68KWRTVID= wrtvid | | 614 | TOOL_MVME68KWRTVID= wrtvid |
615 | TOOL_NBPERF= nbperf | | 615 | TOOL_NBPERF= nbperf |
616 | TOOL_NCDCS= ncdcs | | 616 | TOOL_NCDCS= ncdcs |
617 | TOOL_PAX= pax | | 617 | TOOL_PAX= pax |
618 | TOOL_PIC= pic | | 618 | TOOL_PIC= pic |
619 | TOOL_PIGZ= pigz | | 619 | TOOL_PIGZ= pigz |
620 | TOOL_XZ= xz | | 620 | TOOL_XZ= xz |
621 | TOOL_PKG_CREATE= pkg_create | | 621 | TOOL_PKG_CREATE= pkg_create |
622 | TOOL_POWERPCMKBOOTIMAGE= powerpc-mkbootimage | | 622 | TOOL_POWERPCMKBOOTIMAGE= powerpc-mkbootimage |
623 | TOOL_PWD_MKDB= pwd_mkdb | | 623 | TOOL_PWD_MKDB= pwd_mkdb |
624 | TOOL_REFER= refer | | 624 | TOOL_REFER= refer |
625 | TOOL_ROFF_ASCII= nroff | | 625 | TOOL_ROFF_ASCII= nroff |
626 | TOOL_ROFF_DOCASCII= ${TOOL_GROFF} -Tascii | | 626 | TOOL_ROFF_DOCASCII= ${TOOL_GROFF} -Tascii |
627 | TOOL_ROFF_DOCHTML= ${TOOL_GROFF} -Thtml | | 627 | TOOL_ROFF_DOCHTML= ${TOOL_GROFF} -Thtml |
628 | TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi ${ROFF_PAGESIZE} | | 628 | TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi ${ROFF_PAGESIZE} |
629 | TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html | | 629 | TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html |
630 | TOOL_ROFF_PS= ${TOOL_GROFF} -Tps ${ROFF_PAGESIZE} | | 630 | TOOL_ROFF_PS= ${TOOL_GROFF} -Tps ${ROFF_PAGESIZE} |
631 | TOOL_ROFF_RAW= ${TOOL_GROFF} -Z | | 631 | TOOL_ROFF_RAW= ${TOOL_GROFF} -Z |
632 | TOOL_RPCGEN= rpcgen | | 632 | TOOL_RPCGEN= rpcgen |
633 | TOOL_SED= sed | | 633 | TOOL_SED= sed |
634 | TOOL_SOELIM= soelim | | 634 | TOOL_SOELIM= soelim |
635 | TOOL_SORTINFO= sortinfo | | 635 | TOOL_SORTINFO= sortinfo |
636 | TOOL_SPARKCRC= sparkcrc | | 636 | TOOL_SPARKCRC= sparkcrc |
637 | TOOL_STAT= stat | | 637 | TOOL_STAT= stat |
638 | TOOL_STRFILE= strfile | | 638 | TOOL_STRFILE= strfile |
639 | TOOL_SUNLABEL= sunlabel | | 639 | TOOL_SUNLABEL= sunlabel |
640 | TOOL_TBL= tbl | | 640 | TOOL_TBL= tbl |
641 | TOOL_TIC= tic | | 641 | TOOL_TIC= tic |
642 | TOOL_UUDECODE= uudecode | | 642 | TOOL_UUDECODE= uudecode |
643 | TOOL_VGRIND= vgrind -f | | 643 | TOOL_VGRIND= vgrind -f |
644 | TOOL_VFONTEDPR= /usr/libexec/vfontedpr | | 644 | TOOL_VFONTEDPR= /usr/libexec/vfontedpr |
645 | TOOL_ZIC= zic | | 645 | TOOL_ZIC= zic |
646 | | | 646 | |
647 | .endif # USETOOLS != yes # } | | 647 | .endif # USETOOLS != yes # } |
648 | | | 648 | |
649 | # Standalone code should not be compiled with PIE or CTF | | 649 | # Standalone code should not be compiled with PIE or CTF |
650 | # Should create a better test | | 650 | # Should create a better test |
651 | .if defined(BINDIR) && ${BINDIR} == "/usr/mdec" | | 651 | .if defined(BINDIR) && ${BINDIR} == "/usr/mdec" |
652 | NOPIE= # defined | | 652 | NOPIE= # defined |
653 | NOCTF= # defined | | 653 | NOCTF= # defined |
654 | .elif ${MACHINE} == "sun2" | | 654 | .elif ${MACHINE} == "sun2" |
655 | NOPIE= # we don't have PIC, so no PIE | | 655 | NOPIE= # we don't have PIC, so no PIE |
656 | .endif | | 656 | .endif |
657 | | | 657 | |
658 | # Fallback to ensure that all variables are defined to something | | 658 | # Fallback to ensure that all variables are defined to something |
659 | TOOL_CC.false= false | | 659 | TOOL_CC.false= false |
660 | TOOL_CPP.false= false | | 660 | TOOL_CPP.false= false |
661 | TOOL_CXX.false= false | | 661 | TOOL_CXX.false= false |
662 | TOOL_FC.false= false | | 662 | TOOL_FC.false= false |
663 | TOOL_OBJC.false= false | | 663 | TOOL_OBJC.false= false |
664 | | | 664 | |
665 | AVAILABLE_COMPILER?= ${HAVE_PCC:Dpcc} ${HAVE_LLVM:Dclang} ${HAVE_GCC:Dgcc} false | | 665 | AVAILABLE_COMPILER?= ${HAVE_PCC:Dpcc} ${HAVE_LLVM:Dclang} ${HAVE_GCC:Dgcc} false |
666 | | | 666 | |
667 | .for _t in CC CPP CXX FC OBJC | | 667 | .for _t in CC CPP CXX FC OBJC |
668 | ACTIVE_${_t}= ${AVAILABLE_COMPILER:@.c.@ ${ !defined(UNSUPPORTED_COMPILER.${.c.}) && defined(TOOL_${_t}.${.c.}) :? ${.c.} : }@:[1]} | | 668 | ACTIVE_${_t}= ${AVAILABLE_COMPILER:@.c.@ ${ !defined(UNSUPPORTED_COMPILER.${.c.}) && defined(TOOL_${_t}.${.c.}) :? ${.c.} : }@:[1]} |
669 | SUPPORTED_${_t}=${AVAILABLE_COMPILER:Nfalse:@.c.@ ${ !defined(UNSUPPORTED_COMPILER.${.c.}) && defined(TOOL_${_t}.${.c.}) :? ${.c.} : }@} | | 669 | SUPPORTED_${_t}=${AVAILABLE_COMPILER:Nfalse:@.c.@ ${ !defined(UNSUPPORTED_COMPILER.${.c.}) && defined(TOOL_${_t}.${.c.}) :? ${.c.} : }@} |
670 | .endfor | | 670 | .endfor |
671 | # make bugs prevent moving this into the .for loop | | 671 | # make bugs prevent moving this into the .for loop |
672 | CC= ${TOOL_CC.${ACTIVE_CC}} | | 672 | CC= ${TOOL_CC.${ACTIVE_CC}} |
673 | CPP= ${TOOL_CPP.${ACTIVE_CPP}} | | 673 | CPP= ${TOOL_CPP.${ACTIVE_CPP}} |
674 | CXX= ${TOOL_CXX.${ACTIVE_CXX}} | | 674 | CXX= ${TOOL_CXX.${ACTIVE_CXX}} |
675 | FC= ${TOOL_FC.${ACTIVE_FC}} | | 675 | FC= ${TOOL_FC.${ACTIVE_FC}} |
676 | OBJC= ${TOOL_OBJC.${ACTIVE_OBJC}} | | 676 | OBJC= ${TOOL_OBJC.${ACTIVE_OBJC}} |
677 | | | 677 | |
678 | # For each ${MACHINE_CPU}, list the ports that use it. | | 678 | # For each ${MACHINE_CPU}, list the ports that use it. |
679 | MACHINES.aarch64= evbarm | | 679 | MACHINES.aarch64= evbarm |
680 | MACHINES.alpha= alpha | | 680 | MACHINES.alpha= alpha |
681 | MACHINES.arm= acorn32 cats epoc32 evbarm hpcarm \ | | 681 | MACHINES.arm= acorn32 cats epoc32 evbarm hpcarm \ |
682 | iyonix netwinder shark zaurus | | 682 | iyonix netwinder shark zaurus |
683 | MACHINES.coldfire= evbcf | | 683 | MACHINES.coldfire= evbcf |
684 | MACHINES.i386= i386 | | 684 | MACHINES.i386= i386 |
685 | MACHINES.ia64= ia64 | | 685 | MACHINES.ia64= ia64 |
686 | MACHINES.hppa= hppa | | 686 | MACHINES.hppa= hppa |
687 | MACHINES.m68000= sun2 | | 687 | MACHINES.m68000= sun2 |
688 | MACHINES.m68k= amiga atari cesfic hp300 luna68k mac68k \ | | 688 | MACHINES.m68k= amiga atari cesfic hp300 luna68k mac68k \ |
689 | news68k next68k sun3 x68k | | 689 | news68k next68k sun3 x68k |
690 | MACHINES.mips= algor arc cobalt emips evbmips ews4800mips \ | | 690 | MACHINES.mips= algor arc cobalt emips evbmips ews4800mips \ |
691 | hpcmips mipsco newsmips pmax sbmips sgimips | | 691 | hpcmips mipsco newsmips pmax sbmips sgimips |
692 | MACHINES.or1k= or1k | | 692 | MACHINES.or1k= or1k |
693 | MACHINES.powerpc= amigappc bebox evbppc ibmnws macppc mvmeppc \ | | 693 | MACHINES.powerpc= amigappc bebox evbppc ibmnws macppc mvmeppc \ |
694 | ofppc prep rs6000 sandpoint | | 694 | ofppc prep rs6000 sandpoint |
695 | MACHINES.riscv= riscv | | 695 | MACHINES.riscv= riscv |
696 | MACHINES.sh3= dreamcast evbsh3 hpcsh landisk mmeye | | 696 | MACHINES.sh3= dreamcast evbsh3 hpcsh landisk mmeye |
697 | MACHINES.sparc= sparc sparc64 | | 697 | MACHINES.sparc= sparc sparc64 |
698 | MACHINES.sparc64= sparc64 | | 698 | MACHINES.sparc64= sparc64 |
699 | MACHINES.vax= vax | | 699 | MACHINES.vax= vax |
700 | MACHINES.x86_64= amd64 | | 700 | MACHINES.x86_64= amd64 |
701 | | | 701 | |
702 | # OBJCOPY flags to create a.out binaries for old firmware | | 702 | # OBJCOPY flags to create a.out binaries for old firmware |
703 | # shared among src/distrib and ${MACHINE}/conf/Makefile.${MACHINE}.inc | | 703 | # shared among src/distrib and ${MACHINE}/conf/Makefile.${MACHINE}.inc |
704 | .if ${MACHINE_CPU} == "arm" | | 704 | .if ${MACHINE_CPU} == "arm" |
705 | OBJCOPY_ELF2AOUT_FLAGS?= \ | | 705 | OBJCOPY_ELF2AOUT_FLAGS?= \ |
706 | -O a.out-arm-netbsd \ | | 706 | -O a.out-arm-netbsd \ |
707 | -R .ident \ | | 707 | -R .ident \ |
708 | -R .ARM.attributes \ | | 708 | -R .ARM.attributes \ |
709 | -R .ARM.exidx \ | | 709 | -R .ARM.exidx \ |
710 | -R .ARM.extab \ | | 710 | -R .ARM.extab \ |
711 | -R .SUNW_ctf \ | | 711 | -R .SUNW_ctf \ |
712 | -R .arm.atpcs \ | | 712 | -R .arm.atpcs \ |
713 | -R .comment \ | | 713 | -R .comment \ |
714 | -R .debug_abbrev \ | | 714 | -R .debug_abbrev \ |
715 | -R .debug_aranges \ | | 715 | -R .debug_aranges \ |
716 | -R .debug_info \ | | 716 | -R .debug_info \ |
717 | -R .debug_line \ | | 717 | -R .debug_line \ |
718 | -R .debug_frame \ | | 718 | -R .debug_frame \ |
719 | -R .debug_loc \ | | 719 | -R .debug_loc \ |
720 | -R .debug_pubnames \ | | 720 | -R .debug_pubnames \ |
721 | -R .debug_pubtypes \ | | 721 | -R .debug_pubtypes \ |
722 | -R .debug_ranges \ | | 722 | -R .debug_ranges \ |
723 | -R .debug_str \ | | 723 | -R .debug_str \ |
724 | -R .debug_macinfo \ | | 724 | -R .debug_macinfo \ |
725 | -R .eh_frame \ | | 725 | -R .eh_frame \ |
726 | -R .note.netbsd.ident | | 726 | -R .note.netbsd.ident |
727 | .endif | | 727 | .endif |
728 | | | 728 | |
729 | # | | 729 | # |
730 | # Targets to check if DESTDIR or RELEASEDIR is provided | | 730 | # Targets to check if DESTDIR or RELEASEDIR is provided |
731 | # | | 731 | # |
732 | .if !target(check_DESTDIR) | | 732 | .if !target(check_DESTDIR) |
733 | check_DESTDIR: .PHONY .NOTMAIN | | 733 | check_DESTDIR: .PHONY .NOTMAIN |
734 | .if !defined(DESTDIR) | | 734 | .if !defined(DESTDIR) |
735 | @echo "setenv DESTDIR before doing that!" | | 735 | @echo "setenv DESTDIR before doing that!" |
736 | @false | | 736 | @false |
737 | .else | | 737 | .else |
738 | @true | | 738 | @true |
739 | .endif | | 739 | .endif |
740 | .endif | | 740 | .endif |
741 | | | 741 | |
742 | .if !target(check_RELEASEDIR) | | 742 | .if !target(check_RELEASEDIR) |
743 | check_RELEASEDIR: .PHONY .NOTMAIN | | 743 | check_RELEASEDIR: .PHONY .NOTMAIN |
744 | .if !defined(RELEASEDIR) | | 744 | .if !defined(RELEASEDIR) |
745 | @echo "setenv RELEASEDIR before doing that!" | | 745 | @echo "setenv RELEASEDIR before doing that!" |
746 | @false | | 746 | @false |
747 | .else | | 747 | .else |
748 | @true | | 748 | @true |
749 | .endif | | 749 | .endif |
750 | .endif | | 750 | .endif |
751 | | | 751 | |
752 | # | | 752 | # |
753 | # Where the system object and source trees are kept; can be configurable | | 753 | # Where the system object and source trees are kept; can be configurable |
754 | # by the user in case they want them in ~/foosrc and ~/fooobj (for example). | | 754 | # by the user in case they want them in ~/foosrc and ~/fooobj (for example). |
755 | # | | 755 | # |
756 | BSDSRCDIR?= /usr/src | | 756 | BSDSRCDIR?= /usr/src |
757 | BSDOBJDIR?= /usr/obj | | 757 | BSDOBJDIR?= /usr/obj |
758 | NETBSDSRCDIR?= ${BSDSRCDIR} | | 758 | NETBSDSRCDIR?= ${BSDSRCDIR} |
759 | | | 759 | |
760 | BINGRP?= wheel | | 760 | BINGRP?= wheel |
761 | BINOWN?= root | | 761 | BINOWN?= root |
762 | BINMODE?= 555 | | 762 | BINMODE?= 555 |
763 | NONBINMODE?= 444 | | 763 | NONBINMODE?= 444 |
764 | | | 764 | |
765 | # These are here mainly because we don't want suid root in case | | 765 | # These are here mainly because we don't want suid root in case |
766 | # a Makefile defines BINMODE. | | 766 | # a Makefile defines BINMODE. |
767 | RUMPBINGRP?= wheel | | 767 | RUMPBINGRP?= wheel |
768 | RUMPBINOWN?= root | | 768 | RUMPBINOWN?= root |
769 | RUMPBINMODE?= 555 | | 769 | RUMPBINMODE?= 555 |
770 | RUMPNONBINMODE?=444 | | 770 | RUMPNONBINMODE?=444 |
771 | | | 771 | |
772 | MANDIR?= /usr/share/man | | 772 | MANDIR?= /usr/share/man |
773 | MANGRP?= wheel | | 773 | MANGRP?= wheel |
774 | MANOWN?= root | | 774 | MANOWN?= root |
775 | MANMODE?= ${NONBINMODE} | | 775 | MANMODE?= ${NONBINMODE} |
776 | MANINSTALL?= ${_MANINSTALL} | | 776 | MANINSTALL?= ${_MANINSTALL} |
777 | | | 777 | |
778 | INFODIR?= /usr/share/info | | 778 | INFODIR?= /usr/share/info |
779 | INFOGRP?= wheel | | 779 | INFOGRP?= wheel |
780 | INFOOWN?= root | | 780 | INFOOWN?= root |
781 | INFOMODE?= ${NONBINMODE} | | 781 | INFOMODE?= ${NONBINMODE} |
782 | | | 782 | |
783 | LIBDIR?= /usr/lib | | 783 | LIBDIR?= /usr/lib |
784 | | | 784 | |
785 | LINTLIBDIR?= /usr/libdata/lint | | 785 | LINTLIBDIR?= /usr/libdata/lint |
786 | LIBGRP?= ${BINGRP} | | 786 | LIBGRP?= ${BINGRP} |
787 | LIBOWN?= ${BINOWN} | | 787 | LIBOWN?= ${BINOWN} |
788 | LIBMODE?= ${NONBINMODE} | | 788 | LIBMODE?= ${NONBINMODE} |
789 | | | 789 | |
790 | DOCDIR?= /usr/share/doc | | 790 | DOCDIR?= /usr/share/doc |
791 | DOCGRP?= wheel | | 791 | DOCGRP?= wheel |
792 | DOCOWN?= root | | 792 | DOCOWN?= root |
793 | DOCMODE?= ${NONBINMODE} | | 793 | DOCMODE?= ${NONBINMODE} |
794 | | | 794 | |
795 | NLSDIR?= /usr/share/nls | | 795 | NLSDIR?= /usr/share/nls |
796 | NLSGRP?= wheel | | 796 | NLSGRP?= wheel |
797 | NLSOWN?= root | | 797 | NLSOWN?= root |
798 | NLSMODE?= ${NONBINMODE} | | 798 | NLSMODE?= ${NONBINMODE} |
799 | | | 799 | |
800 | KMODULEGRP?= wheel | | 800 | KMODULEGRP?= wheel |
801 | KMODULEOWN?= root | | 801 | KMODULEOWN?= root |
802 | KMODULEMODE?= ${NONBINMODE} | | 802 | KMODULEMODE?= ${NONBINMODE} |
803 | | | 803 | |
804 | LOCALEDIR?= /usr/share/locale | | 804 | LOCALEDIR?= /usr/share/locale |
805 | LOCALEGRP?= wheel | | 805 | LOCALEGRP?= wheel |
806 | LOCALEOWN?= root | | 806 | LOCALEOWN?= root |
807 | LOCALEMODE?= ${NONBINMODE} | | 807 | LOCALEMODE?= ${NONBINMODE} |
808 | | | 808 | |
809 | FIRMWAREDIR?= /libdata/firmware | | 809 | FIRMWAREDIR?= /libdata/firmware |
810 | FIRMWAREGRP?= wheel | | 810 | FIRMWAREGRP?= wheel |
811 | FIRMWAREOWN?= root | | 811 | FIRMWAREOWN?= root |
812 | FIRMWAREMODE?= ${NONBINMODE} | | 812 | FIRMWAREMODE?= ${NONBINMODE} |
813 | | | 813 | |
814 | DEBUGDIR?= /usr/libdata/debug | | 814 | DEBUGDIR?= /usr/libdata/debug |
815 | DEBUGGRP?= wheel | | 815 | DEBUGGRP?= wheel |
816 | DEBUGOWN?= root | | 816 | DEBUGOWN?= root |
817 | DEBUGMODE?= ${NONBINMODE} | | 817 | DEBUGMODE?= ${NONBINMODE} |
818 | | | 818 | |
819 | DTBDIR?= /boot/dtb | | 819 | DTBDIR?= /boot/dtb |
820 | DTBGRP?= wheel | | 820 | DTBGRP?= wheel |
821 | DTBOWN?= root | | 821 | DTBOWN?= root |
822 | DTBMODE?= ${NONBINMODE} | | 822 | DTBMODE?= ${NONBINMODE} |
823 | | | 823 | |
824 | MKDIRMODE?= 0755 | | 824 | MKDIRMODE?= 0755 |
825 | MKDIRPERM?= -m ${MKDIRMODE} | | 825 | MKDIRPERM?= -m ${MKDIRMODE} |
826 | | | 826 | |
827 | # | | 827 | # |
828 | # Data-driven table using make variables to control how | | 828 | # Data-driven table using make variables to control how |
829 | # toolchain-dependent targets and shared libraries are built | | 829 | # toolchain-dependent targets and shared libraries are built |
830 | # for different platforms and object formats. | | 830 | # for different platforms and object formats. |
831 | # | | 831 | # |
832 | # OBJECT_FMT: currently either "ELF" or "a.out". | | 832 | # OBJECT_FMT: currently either "ELF" or "a.out". |
833 | # | | 833 | # |
834 | # All platforms are ELF. | | 834 | # All platforms are ELF. |
835 | # | | 835 | # |
836 | OBJECT_FMT= ELF | | 836 | OBJECT_FMT= ELF |
837 | | | 837 | |
838 | # | | 838 | # |
839 | # If this platform's toolchain is missing, we obviously cannot build it. | | 839 | # If this platform's toolchain is missing, we obviously cannot build it. |
840 | # | | 840 | # |
841 | .if ${TOOLCHAIN_MISSING} != "no" | | 841 | .if ${TOOLCHAIN_MISSING} != "no" |
842 | MKBINUTILS:= no | | 842 | MKBINUTILS:= no |
843 | MKGDB:= no | | 843 | MKGDB:= no |
844 | MKGCC:= no | | 844 | MKGCC:= no |
845 | .endif | | 845 | .endif |
846 | | | 846 | |
847 | # | | 847 | # |
848 | # If we are using an external toolchain, we can still build the target's | | 848 | # If we are using an external toolchain, we can still build the target's |
849 | # binutils, but we cannot build GCC's support libraries, since those are | | 849 | # binutils, but we cannot build GCC's support libraries, since those are |
850 | # tightly-coupled to the version of GCC being used. | | 850 | # tightly-coupled to the version of GCC being used. |
851 | # | | 851 | # |
852 | .if defined(EXTERNAL_TOOLCHAIN) | | 852 | .if defined(EXTERNAL_TOOLCHAIN) |
853 | MKGCC:= no | | 853 | MKGCC:= no |
854 | .endif | | 854 | .endif |
855 | | | 855 | |
856 | MKGDB.or1k= no | | 856 | MKGDB.or1k= no |
857 | MKGDB.riscv32= no | | 857 | MKGDB.riscv32= no |
858 | MKGDB.riscv64= no | | 858 | MKGDB.riscv64= no |
859 | | | 859 | |
860 | # No kernel modules for or1k, riscv or mips (yet) | | 860 | # No kernel modules for or1k, riscv or mips (yet) |
861 | MKKMOD.or1k= no | | 861 | MKKMOD.or1k= no |
862 | MKKMOD.riscv32= no | | 862 | MKKMOD.riscv32= no |
863 | MKKMOD.riscv64= no | | 863 | MKKMOD.riscv64= no |
864 | | | 864 | |
865 | # No profiling for or1k (yet) | | 865 | # No profiling for or1k (yet) |
866 | MKPROFILE.or1k= no | | 866 | MKPROFILE.or1k= no |
867 | MKPROFILE.riscv32=no | | 867 | MKPROFILE.riscv32=no |
868 | MKPROFILE.riscv64=no | | 868 | MKPROFILE.riscv64=no |
869 | | | 869 | |
870 | # | | 870 | # |
871 | # The m68000 port is incomplete. | | 871 | # The m68000 port is incomplete. |
872 | # | | 872 | # |
873 | .if ${MACHINE_ARCH} == "m68000" | | 873 | .if ${MACHINE_ARCH} == "m68000" |
874 | NOPIC= # defined | | 874 | NOPIC= # defined |
875 | MKISCSI= no | | 875 | MKISCSI= no |
876 | # XXX GCC 4 outputs mcount() calling sequences that try to load values | | 876 | # XXX GCC 4 outputs mcount() calling sequences that try to load values |
877 | # from over 64KB away and this fails to assemble. | | 877 | # from over 64KB away and this fails to assemble. |
878 | .if defined(HAVE_GCC) | | 878 | .if defined(HAVE_GCC) |
879 | NOPROFILE= # defined | | 879 | NOPROFILE= # defined |
880 | .endif | | 880 | .endif |
881 | .endif | | 881 | .endif |
882 | | | 882 | |
883 | # | | 883 | # |
884 | # GCC warnings with simple disables. Use these with eg | | 884 | # GCC warnings with simple disables. Use these with eg |
885 | # COPTS.foo.c+= ${GCC_NO_STRINGOP_TRUNCATION}. | | 885 | # COPTS.foo.c+= ${GCC_NO_STRINGOP_TRUNCATION}. |
886 | # | | 886 | # |
887 | GCC_NO_FORMAT_TRUNCATION= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-format-truncation :} | | 887 | GCC_NO_FORMAT_TRUNCATION= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-format-truncation :} |
888 | GCC_NO_FORMAT_OVERFLOW= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-format-overflow :} | | 888 | GCC_NO_FORMAT_OVERFLOW= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-format-overflow :} |
889 | GCC_NO_STRINGOP_OVERFLOW= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-stringop-overflow :} | | 889 | GCC_NO_STRINGOP_OVERFLOW= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-stringop-overflow :} |
890 | GCC_NO_IMPLICIT_FALLTHRU= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-implicit-fallthrough :} | | 890 | GCC_NO_IMPLICIT_FALLTHRU= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-implicit-fallthrough :} |
891 | GCC_NO_STRINGOP_TRUNCATION= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-stringop-truncation :} | | 891 | GCC_NO_STRINGOP_TRUNCATION= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-stringop-truncation :} |
892 | GCC_NO_CAST_FUNCTION_TYPE= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-cast-function-type :} | | 892 | GCC_NO_CAST_FUNCTION_TYPE= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-cast-function-type :} |
893 | GCC_NO_ADDR_OF_PACKED_MEMBER= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -Wno-address-of-packed-member :} | | 893 | GCC_NO_ADDR_OF_PACKED_MEMBER= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -Wno-address-of-packed-member :} |
894 | GCC_NO_MAYBE_UNINITIALIZED= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-maybe-uninitialized :} | | 894 | GCC_NO_MAYBE_UNINITIALIZED= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-maybe-uninitialized :} |
895 | GCC_NO_RETURN_LOCAL_ADDR= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-return-local-addr :} | | 895 | GCC_NO_RETURN_LOCAL_ADDR= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-return-local-addr :} |
896 | | | 896 | |
897 | # | | 897 | # |
898 | # Clang warnings | | 898 | # Clang warnings |
899 | # | | 899 | # |
900 | CLANG_NO_ADDR_OF_PACKED_MEMBER= ${${ACTIVE_CC} == "clang" :? -Wno-error=address-of-packed-member :} | | 900 | CLANG_NO_ADDR_OF_PACKED_MEMBER= ${${ACTIVE_CC} == "clang" :? -Wno-error=address-of-packed-member :} |
901 | | | 901 | |
902 | NO_ADDR_OF_PACKED_MEMBER= ${CLANG_NO_ADDR_OF_PACKED_MEMBER} ${GCC_NO_ADDR_OF_PACKED_MEMBER} | | 902 | NO_ADDR_OF_PACKED_MEMBER= ${CLANG_NO_ADDR_OF_PACKED_MEMBER} ${GCC_NO_ADDR_OF_PACKED_MEMBER} |
903 | | | 903 | |
904 | # | | 904 | # |
905 | # The ia64 port is incomplete. | | 905 | # The ia64 port is incomplete. |
906 | # | | 906 | # |
907 | MKGDB.ia64= no | | 907 | MKGDB.ia64= no |
908 | | | 908 | |
909 | # | | 909 | # |
910 | # On VAX using ELF, all objects are PIC, not just shared libraries, | | 910 | # On VAX using ELF, all objects are PIC, not just shared libraries, |
911 | # so don't build the _pic version. VAX has no native TLS support either, | | 911 | # so don't build the _pic version. VAX has no native TLS support either, |
912 | # so differences between TLS models are not relevant. | | 912 | # so differences between TLS models are not relevant. |
913 | # | | 913 | # |
914 | MKPICLIB.vax= no | | 914 | MKPICLIB.vax= no |
915 | | | 915 | |
916 | # | | 916 | # |
917 | # Location of the file that contains the major and minor numbers of the | | 917 | # Location of the file that contains the major and minor numbers of the |
918 | # version of a shared library. If this file exists a shared library | | 918 | # version of a shared library. If this file exists a shared library |
919 | # will be built by <bsd.lib.mk>. | | 919 | # will be built by <bsd.lib.mk>. |
920 | # | | 920 | # |
921 | SHLIB_VERSION_FILE?= ${.CURDIR}/shlib_version | | 921 | SHLIB_VERSION_FILE?= ${.CURDIR}/shlib_version |
922 | | | 922 | |
923 | # | | 923 | # |
924 | # GNU sources and packages sometimes see architecture names differently. | | 924 | # GNU sources and packages sometimes see architecture names differently. |
925 | # | | 925 | # |
926 | GNU_ARCH.aarch64eb=aarch64_be | | 926 | GNU_ARCH.aarch64eb=aarch64_be |
927 | GNU_ARCH.coldfire=m5407 | | 927 | GNU_ARCH.coldfire=m5407 |
928 | GNU_ARCH.earm=arm | | 928 | GNU_ARCH.earm=arm |
929 | GNU_ARCH.earmhf=arm | | 929 | GNU_ARCH.earmhf=arm |
930 | GNU_ARCH.earmeb=armeb | | 930 | GNU_ARCH.earmeb=armeb |
931 | GNU_ARCH.earmhfeb=armeb | | 931 | GNU_ARCH.earmhfeb=armeb |
932 | GNU_ARCH.earmv4=armv4 | | 932 | GNU_ARCH.earmv4=armv4 |
933 | GNU_ARCH.earmv4eb=armv4eb | | 933 | GNU_ARCH.earmv4eb=armv4eb |
934 | GNU_ARCH.earmv5=arm | | 934 | GNU_ARCH.earmv5=arm |
935 | GNU_ARCH.earmv5hf=arm | | 935 | GNU_ARCH.earmv5hf=arm |
936 | GNU_ARCH.earmv5eb=armeb | | 936 | GNU_ARCH.earmv5eb=armeb |
937 | GNU_ARCH.earmv5hfeb=armeb | | 937 | GNU_ARCH.earmv5hfeb=armeb |
938 | GNU_ARCH.earmv6=armv6 | | 938 | GNU_ARCH.earmv6=armv6 |
939 | GNU_ARCH.earmv6hf=armv6 | | 939 | GNU_ARCH.earmv6hf=armv6 |
940 | GNU_ARCH.earmv6eb=armv6eb | | 940 | GNU_ARCH.earmv6eb=armv6eb |
941 | GNU_ARCH.earmv6hfeb=armv6eb | | 941 | GNU_ARCH.earmv6hfeb=armv6eb |
942 | GNU_ARCH.earmv7=armv7 | | 942 | GNU_ARCH.earmv7=armv7 |
943 | GNU_ARCH.earmv7hf=armv7 | | 943 | GNU_ARCH.earmv7hf=armv7 |
944 | GNU_ARCH.earmv7eb=armv7eb | | 944 | GNU_ARCH.earmv7eb=armv7eb |
945 | GNU_ARCH.earmv7hfeb=armv7eb | | 945 | GNU_ARCH.earmv7hfeb=armv7eb |
946 | GNU_ARCH.i386=i486 | | 946 | GNU_ARCH.i386=i486 |
947 | GCC_CONFIG_ARCH.i386=i486 | | 947 | GCC_CONFIG_ARCH.i386=i486 |
948 | GCC_CONFIG_TUNE.i386=nocona | | 948 | GCC_CONFIG_TUNE.i386=nocona |
949 | GCC_CONFIG_TUNE.x86_64=nocona | | 949 | GCC_CONFIG_TUNE.x86_64=nocona |
950 | GNU_ARCH.m68000=m68010 | | 950 | GNU_ARCH.m68000=m68010 |
951 | GNU_ARCH.sh3eb=sh | | 951 | GNU_ARCH.sh3eb=sh |
952 | GNU_ARCH.sh3el=shle | | 952 | GNU_ARCH.sh3el=shle |
953 | GNU_ARCH.mips64eb=mips64 | | 953 | GNU_ARCH.mips64eb=mips64 |
954 | MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_ARCH}:U${MACHINE_ARCH}} | | 954 | MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_ARCH}:U${MACHINE_ARCH}} |
955 | | | 955 | |
956 | # | | 956 | # |
957 | # In order to identify NetBSD to GNU packages, we sometimes need | | 957 | # In order to identify NetBSD to GNU packages, we sometimes need |
958 | # an "elf" tag for historically a.out platforms. | | 958 | # an "elf" tag for historically a.out platforms. |
959 | # | | 959 | # |
960 | .if (!empty(MACHINE_ARCH:Mearm*)) | | 960 | .if (!empty(MACHINE_ARCH:Mearm*)) |
961 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf-${MACHINE_ARCH:C/eb//:C/v[4-7]//:S/earm/eabi/} | | 961 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf-${MACHINE_ARCH:C/eb//:C/v[4-7]//:S/earm/eabi/} |
962 | .elif (${MACHINE_GNU_ARCH} == "arm" || \ | | 962 | .elif (${MACHINE_GNU_ARCH} == "arm" || \ |
963 | ${MACHINE_GNU_ARCH} == "armeb" || \ | | 963 | ${MACHINE_GNU_ARCH} == "armeb" || \ |
964 | ${MACHINE_ARCH} == "i386" || \ | | 964 | ${MACHINE_ARCH} == "i386" || \ |
965 | ${MACHINE_CPU} == "m68k" || \ | | 965 | ${MACHINE_CPU} == "m68k" || \ |
966 | ${MACHINE_GNU_ARCH} == "sh" || \ | | 966 | ${MACHINE_GNU_ARCH} == "sh" || \ |
967 | ${MACHINE_GNU_ARCH} == "shle" || \ | | 967 | ${MACHINE_GNU_ARCH} == "shle" || \ |
968 | ${MACHINE_ARCH} == "sparc" || \ | | 968 | ${MACHINE_ARCH} == "sparc" || \ |
969 | ${MACHINE_ARCH} == "vax") | | 969 | ${MACHINE_ARCH} == "vax") |
970 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf | | 970 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf |
971 | .else | | 971 | .else |
972 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsd | | 972 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsd |
973 | .endif | | 973 | .endif |
974 | | | 974 | |
975 | .if !empty(MACHINE_ARCH:M*arm*) | | 975 | .if !empty(MACHINE_ARCH:M*arm*) |
976 | # Flags to pass to CC for using the old APCS ABI on ARM for compat or stand. | | 976 | # Flags to pass to CC for using the old APCS ABI on ARM for compat or stand. |
977 | ARM_APCS_FLAGS= -mabi=apcs-gnu -mfloat-abi=soft -marm | | 977 | ARM_APCS_FLAGS= -mabi=apcs-gnu -mfloat-abi=soft -marm |
978 | ARM_APCS_FLAGS+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -mno-thumb-interwork :} | | 978 | ARM_APCS_FLAGS+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -mno-thumb-interwork :} |
979 | ARM_APCS_FLAGS+=${${ACTIVE_CC} == "clang":? -target ${MACHINE_GNU_ARCH}--netbsdelf -B ${TOOLDIR}/${MACHINE_GNU_PLATFORM}/bin :} | | 979 | ARM_APCS_FLAGS+=${${ACTIVE_CC} == "clang":? -target ${MACHINE_GNU_ARCH}--netbsdelf -B ${TOOLDIR}/${MACHINE_GNU_PLATFORM}/bin :} |
980 | .endif | | 980 | .endif |
981 | | | 981 | |
982 | GENASSYM_CPPFLAGS+= ${${ACTIVE_CC} == "clang":? -no-integrated-as :} | | 982 | GENASSYM_CPPFLAGS+= ${${ACTIVE_CC} == "clang":? -no-integrated-as :} |
983 | | | 983 | |
984 | TARGETS+= all clean cleandir depend dependall includes \ | | 984 | TARGETS+= all clean cleandir depend dependall includes \ |
985 | install lint obj regress tags html analyze describe \ | | 985 | install lint obj regress tags html analyze describe \ |
986 | rumpdescribe | | 986 | rumpdescribe |
987 | PHONY_NOTMAIN = all clean cleandir depend dependall distclean includes \ | | 987 | PHONY_NOTMAIN = all clean cleandir depend dependall distclean includes \ |
988 | install lint obj regress beforedepend afterdepend \ | | 988 | install lint obj regress beforedepend afterdepend \ |
989 | beforeinstall afterinstall realinstall realdepend realall \ | | 989 | beforeinstall afterinstall realinstall realdepend realall \ |
990 | html subdir-all subdir-install subdir-depend analyze describe \ | | 990 | html subdir-all subdir-install subdir-depend analyze describe \ |
991 | rumpdescribe | | 991 | rumpdescribe |
992 | .PHONY: ${PHONY_NOTMAIN} | | 992 | .PHONY: ${PHONY_NOTMAIN} |
993 | .NOTMAIN: ${PHONY_NOTMAIN} | | 993 | .NOTMAIN: ${PHONY_NOTMAIN} |
994 | | | 994 | |
995 | .if ${NEED_OWN_INSTALL_TARGET} != "no" | | 995 | .if ${NEED_OWN_INSTALL_TARGET} != "no" |
996 | .if !target(install) | | 996 | .if !target(install) |
997 | install: beforeinstall .WAIT subdir-install realinstall .WAIT afterinstall | | 997 | install: beforeinstall .WAIT subdir-install realinstall .WAIT afterinstall |
998 | beforeinstall: | | 998 | beforeinstall: |
999 | subdir-install: | | 999 | subdir-install: |
1000 | realinstall: | | 1000 | realinstall: |
1001 | afterinstall: | | 1001 | afterinstall: |
1002 | .endif | | 1002 | .endif |
1003 | all: realall subdir-all | | 1003 | all: realall subdir-all |
1004 | subdir-all: | | 1004 | subdir-all: |
1005 | realall: | | 1005 | realall: |
1006 | depend: realdepend subdir-depend | | 1006 | depend: realdepend subdir-depend |
1007 | subdir-depend: | | 1007 | subdir-depend: |
1008 | realdepend: | | 1008 | realdepend: |
1009 | distclean: cleandir | | 1009 | distclean: cleandir |
1010 | cleandir: clean | | 1010 | cleandir: clean |
1011 | | | 1011 | |
1012 | dependall: .NOTMAIN realdepend .MAKE | | 1012 | dependall: .NOTMAIN realdepend .MAKE |
1013 | @cd "${.CURDIR}"; ${MAKE} realall | | 1013 | @cd "${.CURDIR}"; ${MAKE} realall |
1014 | .endif | | 1014 | .endif |
1015 | | | 1015 | |
1016 | # | | 1016 | # |
1017 | # Define MKxxx variables (which are either yes or no) for users | | 1017 | # Define MKxxx variables (which are either yes or no) for users |
1018 | # to set in /etc/mk.conf and override in the make environment. | | 1018 | # to set in /etc/mk.conf and override in the make environment. |
1019 | # These should be tested with `== "no"' or `!= "no"'. | | 1019 | # These should be tested with `== "no"' or `!= "no"'. |
1020 | # The NOxxx variables should only be set by Makefiles. | | 1020 | # The NOxxx variables should only be set by Makefiles. |
1021 | # | | 1021 | # |
1022 | # Please keep etc/Makefile and share/man/man5/mk.conf.5 in sync | | 1022 | # Please keep etc/Makefile and share/man/man5/mk.conf.5 in sync |
1023 | # with changes to the MK* variables here. | | 1023 | # with changes to the MK* variables here. |
1024 | # | | 1024 | # |
1025 | | | 1025 | |
1026 | # | | 1026 | # |
1027 | # Supported NO* options (if defined, MK* will be forced to "no", | | 1027 | # Supported NO* options (if defined, MK* will be forced to "no", |
1028 | # regardless of user's mk.conf setting). | | 1028 | # regardless of user's mk.conf setting). |
1029 | # | | 1029 | # |
1030 | # Source makefiles should set NO*, and not MK*, and must do so before | | 1030 | # Source makefiles should set NO*, and not MK*, and must do so before |
1031 | # including bsd.own.mk. | | 1031 | # including bsd.own.mk. |
1032 | # | | 1032 | # |
1033 | .for var in \ | | 1033 | .for var in \ |
1034 | NOCOMPAT NOCRYPTO NODOC NOHTML NOINFO NOLIBCSANITIZER NOLINKLIB \ | | 1034 | NOCOMPAT NOCRYPTO NODOC NOHTML NOINFO NOLIBCSANITIZER NOLINKLIB \ |
1035 | NOLINT NOMAN NONLS NOOBJ NOPIC NOPICINSTALL NOPROFILE NOSHARE \ | | 1035 | NOLINT NOMAN NONLS NOOBJ NOPIC NOPICINSTALL NOPROFILE NOSHARE \ |
1036 | NOSTATICLIB NODEBUGLIB NOSANITIZER NORELRO | | 1036 | NOSTATICLIB NODEBUGLIB NOSANITIZER NORELRO |
1037 | .if defined(${var}) | | 1037 | .if defined(${var}) |
1038 | MK${var:S/^NO//}:= no | | 1038 | MK${var:S/^NO//}:= no |
1039 | .endif | | 1039 | .endif |
1040 | .endfor | | 1040 | .endfor |
1041 | | | 1041 | |
1042 | # | | 1042 | # |
1043 | # Older-style variables that enabled behaviour when set. | | 1043 | # Older-style variables that enabled behaviour when set. |
1044 | # | | 1044 | # |
1045 | .for var in MANZ UNPRIVED UPDATE | | 1045 | .for var in MANZ UNPRIVED UPDATE |
1046 | .if defined(${var}) | | 1046 | .if defined(${var}) |
1047 | MK${var}:= yes | | 1047 | MK${var}:= yes |
1048 | .endif | | 1048 | .endif |
1049 | .endfor | | 1049 | .endfor |
1050 | | | 1050 | |
1051 | # | | 1051 | # |
1052 | # MK* options which have variable defaults. | | 1052 | # MK* options which have variable defaults. |
1053 | # | | 1053 | # |
1054 | # aarch64eb is not yet supported. | | 1054 | # aarch64eb is not yet supported. |
1055 | # | | 1055 | # |
1056 | .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" \ | | 1056 | .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" \ |
1057 | || ${MACHINE_MIPS64} \ | | 1057 | || ${MACHINE_MIPS64} \ |
1058 | || ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "aarch64" \ | | 1058 | || ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "aarch64" \ |
1059 | || ${MACHINE_ARCH} == "riscv64" || !empty(MACHINE_ARCH:Mearm*) | | 1059 | || ${MACHINE_ARCH} == "riscv64" || !empty(MACHINE_ARCH:Mearm*) |
1060 | MKCOMPAT?= yes | | 1060 | MKCOMPAT?= yes |
1061 | .else | | 1061 | .else |
1062 | # Don't let this build where it really isn't supported. | | 1062 | # Don't let this build where it really isn't supported. |
1063 | MKCOMPAT:= no | | 1063 | MKCOMPAT:= no |
1064 | .endif | | 1064 | .endif |
1065 | | | 1065 | |
1066 | .if ${MKCOMPAT} == "no" | | 1066 | .if ${MKCOMPAT} == "no" |
1067 | MKCOMPATTESTS:= no | | 1067 | MKCOMPATTESTS:= no |
1068 | MKCOMPATX11:= no | | 1068 | MKCOMPATX11:= no |
1069 | .endif | | 1069 | .endif |
1070 | | | 1070 | |
1071 | .if ${MACHINE_MIPS64} \ | | 1071 | .if ${MACHINE_MIPS64} \ |
1072 | || (${MACHINE} == "evbppc" && ${MACHINE_ARCH} == "powerpc") | | 1072 | || (${MACHINE} == "evbppc" && ${MACHINE_ARCH} == "powerpc") |
1073 | MKCOMPATMODULES?= yes | | 1073 | MKCOMPATMODULES?= yes |
1074 | .else | | 1074 | .else |
1075 | MKCOMPATMODULES:= no | | 1075 | MKCOMPATMODULES:= no |
1076 | .endif | | 1076 | .endif |
1077 | | | 1077 | |
1078 | # | | 1078 | # |
1079 | # These platforms use softfloat by default. | | 1079 | # These platforms use softfloat by default. |
1080 | # | | 1080 | # |
1081 | .if ${MACHINE_MIPS64} | | 1081 | .if ${MACHINE_MIPS64} |
1082 | MKSOFTFLOAT?= yes | | 1082 | MKSOFTFLOAT?= yes |
1083 | .endif | | 1083 | .endif |
1084 | | | 1084 | |
1085 | # | | 1085 | # |
1086 | # These platforms always use softfloat. | | 1086 | # These platforms always use softfloat. |
1087 | # | | 1087 | # |
1088 | .if (${MACHINE_CPU} == "arm" && ${MACHINE_ARCH:M*hf*} == "") || \ | | 1088 | .if (${MACHINE_CPU} == "arm" && ${MACHINE_ARCH:M*hf*} == "") || \ |
1089 | ${MACHINE_ARCH} == "coldfire" || ${MACHINE_CPU} == "or1k" || \ | | 1089 | ${MACHINE_ARCH} == "coldfire" || ${MACHINE_CPU} == "or1k" || \ |
1090 | ${MACHINE} == "emips" || ${MACHINE_CPU} == "sh3" | | 1090 | ${MACHINE} == "emips" || ${MACHINE_CPU} == "sh3" |
1091 | MKSOFTFLOAT= yes | | 1091 | MKSOFTFLOAT= yes |
1092 | .endif | | 1092 | .endif |
1093 | | | 1093 | |
1094 | .if ${MACHINE} == "emips" | | 1094 | .if ${MACHINE} == "emips" |
1095 | SOFTFLOAT_BITS= 32 | | 1095 | SOFTFLOAT_BITS= 32 |
1096 | .endif | | 1096 | .endif |
1097 | | | 1097 | |
1098 | # | | 1098 | # |
1099 | # We want to build zfs only for amd64, aarch64 and sparc64 by default for now. | | 1099 | # We want to build zfs only for amd64, aarch64 and sparc64 by default for now. |
1100 | # | | 1100 | # |
1101 | .if ${MACHINE} == "amd64" || ${MACHINE_ARCH} == "aarch64" || \ | | 1101 | .if ${MACHINE} == "amd64" || ${MACHINE_ARCH} == "aarch64" || \ |
1102 | ${MACHINE} == "sparc64" | | 1102 | ${MACHINE} == "sparc64" |
1103 | MKZFS?= yes | | 1103 | MKZFS?= yes |
1104 | .endif | | 1104 | .endif |
1105 | | | 1105 | |
1106 | # | | 1106 | # |
1107 | # DTrace works on amd64, i386, aarch64, and earm* | | 1107 | # DTrace works on amd64, i386, aarch64, and earm* |
1108 | # | | 1108 | # |
1109 | .if ${MACHINE_ARCH} == "i386" || \ | | 1109 | .if ${MACHINE_ARCH} == "i386" || \ |
1110 | ${MACHINE_ARCH} == "x86_64" || \ | | 1110 | ${MACHINE_ARCH} == "x86_64" || \ |
1111 | ${MACHINE_ARCH} == "aarch64" || \ | | 1111 | ${MACHINE_ARCH} == "aarch64" || \ |
1112 | !empty(MACHINE_ARCH:Mearm*) | | 1112 | !empty(MACHINE_ARCH:Mearm*) |
1113 | MKDTRACE?= yes | | 1113 | MKDTRACE?= yes |
1114 | MKCTF?= yes | | 1114 | MKCTF?= yes |
1115 | .endif | | 1115 | .endif |
1116 | | | 1116 | |
1117 | # | | 1117 | # |
1118 | # PIE is enabled on many platforms by default. | | 1118 | # PIE is enabled on many platforms by default. |
1119 | # | | 1119 | # |
1120 | # Coverity does not like PIE | | 1120 | # Coverity does not like PIE |
1121 | .if !defined(COVERITY_TOP_CONFIG) && \ | | 1121 | .if !defined(COVERITY_TOP_CONFIG) && \ |
1122 | (${MACHINE_ARCH} == "i386" || \ | | 1122 | (${MACHINE_ARCH} == "i386" || \ |
1123 | ${MACHINE_ARCH} == "x86_64" || \ | | 1123 | ${MACHINE_ARCH} == "x86_64" || \ |
1124 | ${MACHINE_CPU} == "arm" || \ | | 1124 | ${MACHINE_CPU} == "arm" || \ |
1125 | ${MACHINE_CPU} == "m68k" || \ | | 1125 | ${MACHINE_CPU} == "m68k" || \ |
1126 | ${MACHINE_CPU} == "mips" || \ | | 1126 | ${MACHINE_CPU} == "mips" || \ |
1127 | ${MACHINE_CPU} == "sh3" || \ | | 1127 | ${MACHINE_CPU} == "sh3" || \ |
1128 | ${MACHINE} == "sparc64") | | 1128 | ${MACHINE} == "sparc64") |
1129 | MKPIE?= yes | | 1129 | MKPIE?= yes |
1130 | .else | | 1130 | .else |
1131 | MKPIE?= no | | 1131 | MKPIE?= no |
1132 | .endif | | 1132 | .endif |
1133 | | | 1133 | |
1134 | # | | 1134 | # |
1135 | # RELRO is enabled on i386 and amd64 by default | | 1135 | # RELRO is enabled on i386 and amd64 by default |
1136 | # | | 1136 | # |
1137 | .if ${MACHINE_ARCH} == "i386" || \ | | 1137 | .if ${MACHINE_ARCH} == "i386" || \ |
1138 | ${MACHINE_ARCH} == "x86_64" | | 1138 | ${MACHINE_ARCH} == "x86_64" |
1139 | MKRELRO?= partial | | 1139 | MKRELRO?= partial |
1140 | .else | | 1140 | .else |
1141 | MKRELRO?= no | | 1141 | MKRELRO?= no |
1142 | .endif | | 1142 | .endif |
1143 | | | 1143 | |
1144 | .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386" | | 1144 | .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386" |
1145 | MKSTATICPIE?= yes | | 1145 | MKSTATICPIE?= yes |
1146 | .else | | 1146 | .else |
1147 | MKSTATICPIE?= no | | 1147 | MKSTATICPIE?= no |
1148 | .endif | | 1148 | .endif |
1149 | | | 1149 | |
1150 | # | | 1150 | # |
1151 | # MK* options which default to "yes". | | 1151 | # MK* options which default to "yes". |
1152 | # | | 1152 | # |
1153 | _MKVARS.yes= \ | | 1153 | _MKVARS.yes= \ |
1154 | MKATF \ | | 1154 | MKATF \ |
1155 | MKBINUTILS \ | | 1155 | MKBINUTILS \ |
1156 | MKBSDTAR \ | | 1156 | MKBSDTAR \ |
1157 | MKCOMPLEX MKCVS MKCXX \ | | 1157 | MKCOMPLEX MKCVS MKCXX \ |
1158 | MKDOC MKDTC \ | | 1158 | MKDOC MKDTC \ |
1159 | MKDYNAMICROOT \ | | 1159 | MKDYNAMICROOT \ |
1160 | MKGCC MKGDB MKGROFF \ | | 1160 | MKGCC MKGDB MKGROFF \ |
1161 | MKHESIOD MKHTML \ | | 1161 | MKHESIOD MKHTML \ |
1162 | MKIEEEFP MKINET6 MKINFO MKIPFILTER MKISCSI \ | | 1162 | MKIEEEFP MKINET6 MKINFO MKIPFILTER MKISCSI \ |
1163 | MKKERBEROS \ | | 1163 | MKKERBEROS \ |
1164 | MKKMOD \ | | 1164 | MKKMOD \ |
1165 | MKLDAP MKLIBSTDCXX MKLINKLIB MKLVM \ | | 1165 | MKLDAP MKLIBSTDCXX MKLINKLIB MKLVM \ |
1166 | MKMAN MKMANDOC \ | | 1166 | MKMAN MKMANDOC \ |
1167 | MKMDNS \ | | 1167 | MKMDNS \ |
1168 | MKMAKEMANDB \ | | 1168 | MKMAKEMANDB \ |
1169 | MKNLS \ | | 1169 | MKNLS \ |
1170 | MKNPF \ | | 1170 | MKNPF \ |
1171 | MKOBJ \ | | 1171 | MKOBJ \ |
1172 | MKPAM MKPERFUSE \ | | 1172 | MKPAM MKPERFUSE \ |
1173 | MKPF MKPIC MKPICLIB MKPOSTFIX MKPROFILE \ | | 1173 | MKPF MKPIC MKPICLIB MKPOSTFIX MKPROFILE \ |
1174 | MKRUMP \ | | 1174 | MKRUMP \ |
1175 | MKSHARE MKSKEY MKSTATICLIB \ | | 1175 | MKSHARE MKSKEY MKSTATICLIB \ |
1176 | MKUNBOUND \ | | 1176 | MKUNBOUND \ |
1177 | MKX11FONTS \ | | 1177 | MKX11FONTS \ |
1178 | MKYP | | 1178 | MKYP |
1179 | .for var in ${_MKVARS.yes} | | 1179 | .for var in ${_MKVARS.yes} |
1180 | ${var}?= ${${var}.${MACHINE_ARCH}:Uyes} | | 1180 | ${var}?= ${${var}.${MACHINE_ARCH}:Uyes} |
1181 | .endfor | | 1181 | .endfor |
1182 | | | 1182 | |
1183 | # | | 1183 | # |
1184 | # MKGCCCMDS is only valid if we are building GCC so make it dependent on that. | | 1184 | # MKGCCCMDS is only valid if we are building GCC so make it dependent on that. |
1185 | # | | 1185 | # |
1186 | _MKVARS.yes += MKGCCCMDS | | 1186 | _MKVARS.yes += MKGCCCMDS |
1187 | MKGCCCMDS?= ${MKGCC} | | 1187 | MKGCCCMDS?= ${MKGCC} |
1188 | | | 1188 | |
1189 | # | | 1189 | # |
1190 | # Sanitizers, only "address" and "undefined" are supported by gcc | | 1190 | # Sanitizers, only "address" and "undefined" are supported by gcc |
1191 | # | | 1191 | # |
1192 | MKSANITIZER?= no | | 1192 | MKSANITIZER?= no |
1193 | USE_SANITIZER?= address | | 1193 | USE_SANITIZER?= address |
1194 | | | 1194 | |
1195 | # | | 1195 | # |
1196 | # Sanitizers implemented in libc, only "undefined" is supported | | 1196 | # Sanitizers implemented in libc, only "undefined" is supported |
1197 | # | | 1197 | # |
1198 | MKLIBCSANITIZER?= no | | 1198 | MKLIBCSANITIZER?= no |
1199 | USE_LIBCSANITIZER?= undefined | | 1199 | USE_LIBCSANITIZER?= undefined |
1200 | | | 1200 | |
1201 | # | | 1201 | # |
1202 | # Exceptions to the above: | | 1202 | # Exceptions to the above: |
1203 | # | | 1203 | # |
1204 | | | 1204 | |
1205 | # RUMP uses -nostdinc which coverity does not like | | 1205 | # RUMP uses -nostdinc which coverity does not like |
1206 | # It also does not use many new files, so disable it | | 1206 | # It also does not use many new files, so disable it |
1207 | .if defined(COVERITY_TOP_CONFIG) | | 1207 | .if defined(COVERITY_TOP_CONFIG) |
1208 | MKRUMP= no | | 1208 | MKRUMP= no |
1209 | .endif | | 1209 | .endif |
1210 | | | 1210 | |
1211 | # | | 1211 | # |
1212 | # Build a dynamically linked /bin and /sbin, with the necessary shared | | 1212 | # Build a dynamically linked /bin and /sbin, with the necessary shared |
1213 | # libraries moved from /usr/lib to /lib and the shared linker moved | | 1213 | # libraries moved from /usr/lib to /lib and the shared linker moved |
1214 | # from /usr/libexec to /lib | | 1214 | # from /usr/libexec to /lib |
1215 | # | | 1215 | # |
1216 | # Note that if the BINDIR is not /bin or /sbin, then we always use the | | 1216 | # Note that if the BINDIR is not /bin or /sbin, then we always use the |
1217 | # non-DYNAMICROOT behavior (i.e. it is only enabled for programs in /bin | | 1217 | # non-DYNAMICROOT behavior (i.e. it is only enabled for programs in /bin |
1218 | # and /sbin). See <bsd.shlib.mk>. | | 1218 | # and /sbin). See <bsd.shlib.mk>. |
1219 | # | | 1219 | # |
1220 | # For ia64, ld.elf_so not yet implemented | | 1220 | # For ia64, ld.elf_so not yet implemented |
1221 | .if ${MACHINE_ARCH} == "ia64" | | 1221 | .if ${MACHINE_ARCH} == "ia64" |
1222 | MKDYNAMICROOT= no | | 1222 | MKDYNAMICROOT= no |
1223 | .endif | | 1223 | .endif |
1224 | | | 1224 | |
1225 | .if defined(MKREPRO) | | 1225 | .if defined(MKREPRO) |
1226 | MKARZERO ?= ${MKREPRO} | | 1226 | MKARZERO ?= ${MKREPRO} |
1227 | GROFF_FLAGS ?= -dpaper=letter | | 1227 | GROFF_FLAGS ?= -dpaper=letter |
1228 | ROFF_PAGESIZE ?= -P-pletter | | 1228 | ROFF_PAGESIZE ?= -P-pletter |
1229 | .endif | | 1229 | .endif |
1230 | | | 1230 | |
1231 | # | | 1231 | # |
1232 | # Install the kernel as /netbsd/kernel and the modules in /netbsd/modules | | 1232 | # Install the kernel as /netbsd/kernel and the modules in /netbsd/modules |
1233 | # | | 1233 | # |
1234 | KERNEL_DIR?= no | | 1234 | KERNEL_DIR?= no |
1235 | | | 1235 | |
1236 | # Only install the general firmware on some systems | | 1236 | # Only install the general firmware on some systems |
1237 | MKFIRMWARE.amd64= yes | | 1237 | MKFIRMWARE.amd64= yes |
1238 | MKFIRMWARE.cobalt= yes | | 1238 | MKFIRMWARE.cobalt= yes |
1239 | MKFIRMWARE.evbarm= yes | | 1239 | MKFIRMWARE.evbarm= yes |
1240 | MKFIRMWARE.evbmips= yes | | 1240 | MKFIRMWARE.evbmips= yes |
1241 | MKFIRMWARE.evbppc= yes | | 1241 | MKFIRMWARE.evbppc= yes |
1242 | MKFIRMWARE.hpcarm= yes | | 1242 | MKFIRMWARE.hpcarm= yes |
1243 | MKFIRMWARE.hppa= yes | | 1243 | MKFIRMWARE.hppa= yes |
1244 | MKFIRMWARE.i386= yes | | 1244 | MKFIRMWARE.i386= yes |
1245 | MKFIRMWARE.mac68k= yes | | 1245 | MKFIRMWARE.mac68k= yes |
1246 | MKFIRMWARE.macppc= yes | | 1246 | MKFIRMWARE.macppc= yes |
1247 | MKFIRMWARE.sandpoint= yes | | 1247 | MKFIRMWARE.sandpoint= yes |
1248 | MKFIRMWARE.sparc64= yes | | 1248 | MKFIRMWARE.sparc64= yes |
1249 | | | 1249 | |
1250 | # Only install the nouveau and radeon firmwares on DRM-happy systems. | | 1250 | # Only install the nouveau and radeon firmwares on DRM-happy systems. |
1251 | MKNOUVEAUFIRMWARE.x86_64= yes | | 1251 | MKNOUVEAUFIRMWARE.x86_64= yes |
1252 | MKNOUVEAUFIRMWARE.i386= yes | | 1252 | MKNOUVEAUFIRMWARE.i386= yes |
1253 | MKNOUVEAUFIRMWARE.aarch64= yes | | 1253 | MKNOUVEAUFIRMWARE.aarch64= yes |
1254 | MKRADEONFIRMWARE.x86_64= yes | | 1254 | MKRADEONFIRMWARE.x86_64= yes |
1255 | MKRADEONFIRMWARE.i386= yes | | 1255 | MKRADEONFIRMWARE.i386= yes |
1256 | MKRADEONFIRMWARE.aarch64= yes | | 1256 | MKRADEONFIRMWARE.aarch64= yes |
1257 | | | 1257 | |
1258 | # Only install the tegra firmware on evbarm. | | 1258 | # Only install the tegra firmware on evbarm. |
1259 | MKTEGRAFIRMWARE.evbarm= yes | | 1259 | MKTEGRAFIRMWARE.evbarm= yes |
1260 | | | 1260 | |
1261 | # Only build devicetree (dtb) files on armv6, armv7, and aarch64. | | 1261 | # Only build devicetree (dtb) files on armv6, armv7, and aarch64. |
1262 | MKDTB.aarch64= yes | | 1262 | MKDTB.aarch64= yes |
1263 | MKDTB.aarch64eb= yes | | 1263 | MKDTB.aarch64eb= yes |
1264 | MKDTB.earmv6= yes | | 1264 | MKDTB.earmv6= yes |
1265 | MKDTB.earmv6hf= yes | | 1265 | MKDTB.earmv6hf= yes |
1266 | MKDTB.earmv6eb= yes | | 1266 | MKDTB.earmv6eb= yes |
1267 | MKDTB.earmv6hfeb= yes | | 1267 | MKDTB.earmv6hfeb= yes |
1268 | MKDTB.earmv7= yes | | 1268 | MKDTB.earmv7= yes |
1269 | MKDTB.earmv7hf= yes | | 1269 | MKDTB.earmv7hf= yes |
1270 | MKDTB.earmv7eb= yes | | 1270 | MKDTB.earmv7eb= yes |
1271 | MKDTB.earmv7hfeb= yes | | 1271 | MKDTB.earmv7hfeb= yes |
1272 | | | 1272 | |
1273 | # MesaLib.old and MesaLib7 go together, and MesaLib is alone. | | 1273 | # MesaLib.old and MesaLib7 go together, and MesaLib is alone. |
1274 | HAVE_MESA_VER?= 18 | | 1274 | HAVE_MESA_VER?= 18 |
1275 | .if ${HAVE_MESA_VER} == "10" | | 1275 | .if ${HAVE_MESA_VER} == "10" |
1276 | EXTERNAL_MESALIB_DIR?= MesaLib.old | | 1276 | EXTERNAL_MESALIB_DIR?= MesaLib.old |
1277 | .elif ${HAVE_MESA_VER} == "18" | | 1277 | .elif ${HAVE_MESA_VER} == "18" |
1278 | EXTERNAL_MESALIB_DIR?= MesaLib | | 1278 | EXTERNAL_MESALIB_DIR?= MesaLib |
1279 | .endif | | 1279 | .endif |
1280 | | | 1280 | |
1281 | # Default to LLVM run-time if x86 or aarch64 and X11 and Mesa 18 | | 1281 | # Default to LLVM run-time if x86 or aarch64 and X11 and Mesa 18 |
1282 | # XXX This knows that MKX11=no is default below, but would | | 1282 | # XXX This knows that MKX11=no is default below, but would |
1283 | # require splitting the below loop in two parts. | | 1283 | # require splitting the below loop in two parts. |
1284 | .if ${MKX11:Uno} != "no" && ${HAVE_MESA_VER} == "18" | | 1284 | .if ${MKX11:Uno} != "no" && ${HAVE_MESA_VER} == "18" |
1285 | MKLLVMRT.amd64= yes | | 1285 | MKLLVMRT.amd64= yes |
1286 | MKLLVMRT.i386= yes | | 1286 | MKLLVMRT.i386= yes |
1287 | MKLLVMRT.aarch64= yes | | 1287 | MKLLVMRT.aarch64= yes |
1288 | .endif | | 1288 | .endif |
1289 | | | 1289 | |
1290 | # | | 1290 | # |
1291 | # MK* options which default to "no". Note that MKZFS has a different | | 1291 | # MK* options which default to "no". Note that MKZFS has a different |
1292 | # default for some platforms, see above. Please keep alphabetically | | 1292 | # default for some platforms, see above. Please keep alphabetically |
1293 | # sorted with at most one letter per line. | | 1293 | # sorted with at most one letter per line. |
1294 | # | | 1294 | # |
1295 | _MKVARS.no= \ | | 1295 | _MKVARS.no= \ |
1296 | MKARGON2 \ | | 1296 | MKARGON2 \ |
1297 | MKARZERO \ | | 1297 | MKARZERO \ |
1298 | MKBSDGREP \ | | 1298 | MKBSDGREP \ |
1299 | MKCATPAGES MKCOMPATTESTS MKCOMPATX11 MKCTF \ | | 1299 | MKCATPAGES MKCOMPATTESTS MKCOMPATX11 MKCTF \ |
1300 | MKDEBUG MKDEBUGLIB MKDTB MKDTRACE \ | | 1300 | MKDEBUG MKDEBUGLIB MKDTB MKDTRACE \ |
1301 | MKEXTSRC \ | | 1301 | MKEXTSRC \ |
1302 | MKFIRMWARE \ | | 1302 | MKFIRMWARE \ |
1303 | MKGROFFHTMLDOC \ | | 1303 | MKGROFFHTMLDOC \ |
1304 | MKKYUA \ | | 1304 | MKKYUA \ |
1305 | MKLIBCXX MKLLD MKLLDB MKLLVM MKLLVMRT MKLINT \ | | 1305 | MKLIBCXX MKLLD MKLLDB MKLLVM MKLLVMRT MKLINT \ |
1306 | MKMANZ MKMCLINKER \ | | 1306 | MKMANZ MKMCLINKER \ |
1307 | MKNOUVEAUFIRMWARE MKNSD \ | | 1307 | MKNOUVEAUFIRMWARE MKNSD \ |
1308 | MKOBJDIRS \ | | 1308 | MKOBJDIRS \ |
1309 | MKPCC MKPICINSTALL MKPIGZGZIP \ | | 1309 | MKPCC MKPICINSTALL MKPIGZGZIP \ |
1310 | MKRADEONFIRMWARE MKREPRO \ | | 1310 | MKRADEONFIRMWARE MKREPRO \ |
1311 | MKSLJIT MKSOFTFLOAT MKSTRIPIDENT \ | | 1311 | MKSLJIT MKSOFTFLOAT MKSTRIPIDENT \ |
1312 | MKTEGRAFIRMWARE MKTPM \ | | 1312 | MKTEGRAFIRMWARE MKTPM \ |
1313 | MKUNPRIVED MKUPDATE \ | | 1313 | MKUNPRIVED MKUPDATE \ |
1314 | MKX11 MKX11MOTIF MKXORG_SERVER \ | | 1314 | MKX11 MKX11MOTIF MKXORG_SERVER \ |
1315 | MKZFS | | 1315 | MKZFS |
1316 | .for var in ${_MKVARS.no} | | 1316 | .for var in ${_MKVARS.no} |
1317 | ${var}?= ${${var}.${MACHINE_ARCH}:U${${var}.${MACHINE}:Uno}} | | 1317 | ${var}?= ${${var}.${MACHINE_ARCH}:U${${var}.${MACHINE}:Uno}} |
1318 | .endfor | | 1318 | .endfor |
1319 | | | 1319 | |
1320 | .if ${MACHINE_ARCH} == "i386" || \ | | 1320 | .if ${MACHINE_ARCH} == "i386" || \ |
1321 | ${MACHINE_ARCH} == "x86_64" || \ | | 1321 | ${MACHINE_ARCH} == "x86_64" || \ |
1322 | ${MACHINE_ARCH} == "sparc" | | 1322 | ${MACHINE_ARCH} == "sparc" |
1323 | MKSLJIT= yes | | 1323 | MKSLJIT= yes |
1324 | .endif | | 1324 | .endif |
1325 | | | 1325 | |
1326 | # | | 1326 | # |
1327 | # Which platforms build the xorg-server drivers (as opposed | | 1327 | # Which platforms build the xorg-server drivers (as opposed |
1328 | # to just Xnest and Xvfb.) | | 1328 | # to just Xnest and Xvfb.) |
1329 | # | | 1329 | # |
1330 | .if ${MACHINE} == "alpha" || \ | | 1330 | .if ${MACHINE} == "alpha" || \ |
1331 | ${MACHINE} == "amd64" || \ | | 1331 | ${MACHINE} == "amd64" || \ |
1332 | ${MACHINE} == "amiga" || \ | | 1332 | ${MACHINE} == "amiga" || \ |
1333 | ${MACHINE} == "bebox" || \ | | 1333 | ${MACHINE} == "bebox" || \ |
1334 | ${MACHINE} == "cats" || \ | | 1334 | ${MACHINE} == "cats" || \ |
1335 | ${MACHINE} == "dreamcast" || \ | | 1335 | ${MACHINE} == "dreamcast" || \ |
1336 | ${MACHINE} == "ews4800mips" || \ | | 1336 | ${MACHINE} == "ews4800mips" || \ |
1337 | ${MACHINE} == "evbarm" || \ | | 1337 | ${MACHINE} == "evbarm" || \ |
1338 | ${MACHINE} == "evbmips" || \ | | 1338 | ${MACHINE} == "evbmips" || \ |
1339 | ${MACHINE} == "evbppc" || \ | | 1339 | ${MACHINE} == "evbppc" || \ |
1340 | ${MACHINE} == "hp300" || \ | | 1340 | ${MACHINE} == "hp300" || \ |
1341 | ${MACHINE} == "hpcarm" || \ | | 1341 | ${MACHINE} == "hpcarm" || \ |
1342 | ${MACHINE} == "hpcmips" || \ | | 1342 | ${MACHINE} == "hpcmips" || \ |
1343 | ${MACHINE} == "hpcsh" || \ | | 1343 | ${MACHINE} == "hpcsh" || \ |
1344 | ${MACHINE} == "hppa" || \ | | 1344 | ${MACHINE} == "hppa" || \ |
1345 | ${MACHINE} == "i386" || \ | | 1345 | ${MACHINE} == "i386" || \ |
1346 | ${MACHINE} == "ibmnws" || \ | | 1346 | ${MACHINE} == "ibmnws" || \ |
1347 | ${MACHINE} == "iyonix" || \ | | 1347 | ${MACHINE} == "iyonix" || \ |
1348 | ${MACHINE} == "luna68k" || \ | | 1348 | ${MACHINE} == "luna68k" || \ |
1349 | ${MACHINE} == "mac68k" || \ | | 1349 | ${MACHINE} == "mac68k" || \ |
1350 | ${MACHINE} == "macppc" || \ | | 1350 | ${MACHINE} == "macppc" || \ |
1351 | ${MACHINE} == "netwinder" || \ | | 1351 | ${MACHINE} == "netwinder" || \ |
1352 | ${MACHINE} == "newsmips" || \ | | 1352 | ${MACHINE} == "newsmips" || \ |
1353 | ${MACHINE} == "prep" || \ | | 1353 | ${MACHINE} == "prep" || \ |
1354 | ${MACHINE} == "ofppc" || \ | | 1354 | ${MACHINE} == "ofppc" || \ |
1355 | ${MACHINE} == "sgimips" || \ | | 1355 | ${MACHINE} == "sgimips" || \ |
1356 | ${MACHINE} == "shark" || \ | | 1356 | ${MACHINE} == "shark" || \ |
1357 | ${MACHINE} == "sparc" || \ | | 1357 | ${MACHINE} == "sparc" || \ |
1358 | ${MACHINE} == "sparc64" || \ | | 1358 | ${MACHINE} == "sparc64" || \ |
1359 | ${MACHINE} == "vax" || \ | | 1359 | ${MACHINE} == "vax" || \ |
1360 | ${MACHINE} == "zaurus" | | 1360 | ${MACHINE} == "zaurus" |
1361 | MKXORG_SERVER=yes | | 1361 | MKXORG_SERVER=yes |
1362 | .endif | | 1362 | .endif |
1363 | | | 1363 | |
1364 | # | | 1364 | # |
1365 | # Force some options off if their dependencies are off. | | 1365 | # Force some options off if their dependencies are off. |
1366 | # | | 1366 | # |
1367 | | | 1367 | |
1368 | .if ${MKCXX} == "no" | | 1368 | .if ${MKCXX} == "no" |
1369 | MKATF:= no | | 1369 | MKATF:= no |
1370 | MKGCCCMDS:= no | | 1370 | MKGCCCMDS:= no |
1371 | MKGDB:= no | | 1371 | MKGDB:= no |
1372 | MKGROFF:= no | | 1372 | MKGROFF:= no |
1373 | MKKYUA:= no | | 1373 | MKKYUA:= no |
1374 | .endif | | 1374 | .endif |
1375 | | | 1375 | |
1376 | .if ${MKMAN} == "no" | | 1376 | .if ${MKMAN} == "no" |
1377 | MKCATPAGES:= no | | 1377 | MKCATPAGES:= no |
1378 | MKHTML:= no | | 1378 | MKHTML:= no |
1379 | .endif | | 1379 | .endif |
1380 | | | 1380 | |
1381 | _MANINSTALL= maninstall | | 1381 | _MANINSTALL= maninstall |
1382 | .if ${MKCATPAGES} != "no" | | 1382 | .if ${MKCATPAGES} != "no" |
1383 | _MANINSTALL+= catinstall | | 1383 | _MANINSTALL+= catinstall |
1384 | .endif | | 1384 | .endif |
1385 | .if ${MKHTML} != "no" | | 1385 | .if ${MKHTML} != "no" |
1386 | _MANINSTALL+= htmlinstall | | 1386 | _MANINSTALL+= htmlinstall |
1387 | .endif | | 1387 | .endif |
1388 | | | 1388 | |
1389 | .if ${MKLINKLIB} == "no" | | 1389 | .if ${MKLINKLIB} == "no" |
1390 | MKLINT:= no | | 1390 | MKLINT:= no |
1391 | MKPICINSTALL:= no | | 1391 | MKPICINSTALL:= no |
1392 | MKPROFILE:= no | | 1392 | MKPROFILE:= no |
1393 | .endif | | 1393 | .endif |
1394 | | | 1394 | |
1395 | .if ${MKPIC} == "no" | | 1395 | .if ${MKPIC} == "no" |
1396 | MKPICLIB:= no | | 1396 | MKPICLIB:= no |
1397 | .endif | | 1397 | .endif |
1398 | | | 1398 | |
1399 | .if ${MKOBJ} == "no" | | 1399 | .if ${MKOBJ} == "no" |
1400 | MKOBJDIRS:= no | | 1400 | MKOBJDIRS:= no |
1401 | .endif | | 1401 | .endif |
1402 | | | 1402 | |
1403 | .if ${MKSHARE} == "no" | | 1403 | .if ${MKSHARE} == "no" |
1404 | MKCATPAGES:= no | | 1404 | MKCATPAGES:= no |
1405 | MKDOC:= no | | 1405 | MKDOC:= no |
1406 | MKINFO:= no | | 1406 | MKINFO:= no |
1407 | MKHTML:= no | | 1407 | MKHTML:= no |
1408 | MKMAN:= no | | 1408 | MKMAN:= no |
1409 | MKNLS:= no | | 1409 | MKNLS:= no |
1410 | .endif | | 1410 | .endif |
1411 | | | 1411 | |
1412 | .if !empty(MACHINE_ARCH:Mearm*) | | 1412 | .if !empty(MACHINE_ARCH:Mearm*) |
1413 | _NEEDS_LIBCXX.${MACHINE_ARCH}= yes | | 1413 | _NEEDS_LIBCXX.${MACHINE_ARCH}= yes |
1414 | .endif | | 1414 | .endif |
1415 | _NEEDS_LIBCXX.aarch64= yes | | 1415 | _NEEDS_LIBCXX.aarch64= yes |
1416 | _NEEDS_LIBCXX.aarch64eb= yes | | 1416 | _NEEDS_LIBCXX.aarch64eb= yes |
1417 | _NEEDS_LIBCXX.i386= yes | | 1417 | _NEEDS_LIBCXX.i386= yes |
1418 | _NEEDS_LIBCXX.powerpc= yes | | 1418 | _NEEDS_LIBCXX.powerpc= yes |
1419 | _NEEDS_LIBCXX.powerpc64= yes | | 1419 | _NEEDS_LIBCXX.powerpc64= yes |
1420 | _NEEDS_LIBCXX.sparc= yes | | 1420 | _NEEDS_LIBCXX.sparc= yes |
1421 | _NEEDS_LIBCXX.sparc64= yes | | 1421 | _NEEDS_LIBCXX.sparc64= yes |
1422 | _NEEDS_LIBCXX.x86_64= yes | | 1422 | _NEEDS_LIBCXX.x86_64= yes |
1423 | | | 1423 | |
1424 | .if ${MKLLVM} == "yes" && ${_NEEDS_LIBCXX.${MACHINE_ARCH}:Uno} == "yes" | | 1424 | .if ${MKLLVM} == "yes" && ${_NEEDS_LIBCXX.${MACHINE_ARCH}:Uno} == "yes" |
1425 | MKLIBCXX:= yes | | 1425 | MKLIBCXX:= yes |
1426 | .endif | | 1426 | .endif |
1427 | | | 1427 | |
1428 | # | | 1428 | # |
1429 | # install(1) parameters. | | 1429 | # install(1) parameters. |
1430 | # | | 1430 | # |
1431 | COPY?= -c | | 1431 | COPY?= -c |
1432 | .if ${MKUPDATE} == "no" | | 1432 | .if ${MKUPDATE} == "no" |
1433 | PRESERVE?= | | 1433 | PRESERVE?= |
1434 | .else | | 1434 | .else |
1435 | PRESERVE?= -p | | 1435 | PRESERVE?= -p |
1436 | .endif | | 1436 | .endif |
1437 | RENAME?= -r | | 1437 | RENAME?= -r |
1438 | HRDLINK?= -l h | | 1438 | HRDLINK?= -l h |
1439 | SYMLINK?= -l s | | 1439 | SYMLINK?= -l s |
1440 | | | 1440 | |
1441 | METALOG?= ${DESTDIR}/METALOG | | 1441 | METALOG?= ${DESTDIR}/METALOG |
1442 | METALOG.add?= ${TOOL_CAT} -l >> ${METALOG} | | 1442 | METALOG.add?= ${TOOL_CAT} -l >> ${METALOG} |
1443 | .if (${_SRC_TOP_} != "") # only set INSTPRIV if inside ${NETBSDSRCDIR} | | 1443 | .if (${_SRC_TOP_} != "") # only set INSTPRIV if inside ${NETBSDSRCDIR} |
1444 | .if ${MKUNPRIVED} != "no" | | 1444 | .if ${MKUNPRIVED} != "no" |
1445 | INSTPRIV.unpriv=-U -M ${METALOG} -D ${DESTDIR} -h sha256 | | 1445 | INSTPRIV.unpriv=-U -M ${METALOG} -D ${DESTDIR} -h sha256 |
1446 | .else | | 1446 | .else |
1447 | INSTPRIV.unpriv= | | 1447 | INSTPRIV.unpriv= |
1448 | .endif | | 1448 | .endif |
1449 | INSTPRIV?= ${INSTPRIV.unpriv} -N ${NETBSDSRCDIR}/etc | | 1449 | INSTPRIV?= ${INSTPRIV.unpriv} -N ${NETBSDSRCDIR}/etc |
1450 | .endif | | 1450 | .endif |
1451 | STRIPFLAG?= | | 1451 | STRIPFLAG?= |
1452 | | | 1452 | |
1453 | .if ${NEED_OWN_INSTALL_TARGET} != "no" | | 1453 | .if ${NEED_OWN_INSTALL_TARGET} != "no" |
1454 | INSTALL_DIR?= ${INSTALL} ${INSTPRIV} -d | | 1454 | INSTALL_DIR?= ${INSTALL} ${INSTPRIV} -d |
1455 | INSTALL_FILE?= ${INSTALL} ${INSTPRIV} ${COPY} ${PRESERVE} ${RENAME} | | 1455 | INSTALL_FILE?= ${INSTALL} ${INSTPRIV} ${COPY} ${PRESERVE} ${RENAME} |
1456 | INSTALL_LINK?= ${INSTALL} ${INSTPRIV} ${HRDLINK} ${RENAME} | | 1456 | INSTALL_LINK?= ${INSTALL} ${INSTPRIV} ${HRDLINK} ${RENAME} |
1457 | INSTALL_SYMLINK?= ${INSTALL} ${INSTPRIV} ${SYMLINK} ${RENAME} | | 1457 | INSTALL_SYMLINK?= ${INSTALL} ${INSTPRIV} ${SYMLINK} ${RENAME} |
1458 | .endif | | 1458 | .endif |
1459 | | | 1459 | |
1460 | # for crunchide & ldd, define the OBJECT_FMTS used by a MACHINE_ARCH | | 1460 | # for crunchide & ldd, define the OBJECT_FMTS used by a MACHINE_ARCH |
1461 | # | | 1461 | # |
1462 | OBJECT_FMTS= | | 1462 | OBJECT_FMTS= |
1463 | .if ${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "ia64" | | 1463 | .if ${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "ia64" |
1464 | OBJECT_FMTS+= elf32 | | 1464 | OBJECT_FMTS+= elf32 |
1465 | .endif | | 1465 | .endif |
1466 | .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH:M*64*} != "" | | 1466 | .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH:M*64*} != "" |
1467 | . if !(${MKCOMPAT:Uyes} == "no" && ${MACHINE_CPU} == "mips") | | 1467 | . if !(${MKCOMPAT:Uyes} == "no" && ${MACHINE_CPU} == "mips") |
1468 | OBJECT_FMTS+= elf64 | | 1468 | OBJECT_FMTS+= elf64 |
1469 | . endif | | 1469 | . endif |
1470 | .endif | | 1470 | .endif |
1471 | | | 1471 | |
1472 | # | | 1472 | # |
1473 | # Set defaults for the USE_xxx variables. | | 1473 | # Set defaults for the USE_xxx variables. |
1474 | # | | 1474 | # |
1475 | | | 1475 | |
1476 | # | | 1476 | # |
1477 | # USE_* options which default to "no" and will be forced to "no" if their | | 1477 | # USE_* options which default to "no" and will be forced to "no" if their |
1478 | # corresponding MK* variable is set to "no". | | 1478 | # corresponding MK* variable is set to "no". |
1479 | # | | 1479 | # |
1480 | .for var in USE_SKEY | | 1480 | .for var in USE_SKEY |
1481 | .if (${${var:S/USE_/MK/}} == "no") | | 1481 | .if (${${var:S/USE_/MK/}} == "no") |
1482 | ${var}:= no | | 1482 | ${var}:= no |
1483 | .else | | 1483 | .else |
1484 | ${var}?= no | | 1484 | ${var}?= no |
1485 | .endif | | 1485 | .endif |
1486 | .endfor | | 1486 | .endfor |
1487 | | | 1487 | |
1488 | # | | 1488 | # |
1489 | # USE_* options which default to "yes" unless their corresponding MK* | | 1489 | # USE_* options which default to "yes" unless their corresponding MK* |
1490 | # variable is set to "no". | | 1490 | # variable is set to "no". |
1491 | # | | 1491 | # |
1492 | .for var in USE_HESIOD USE_INET6 USE_KERBEROS USE_LDAP USE_PAM USE_YP | | 1492 | .for var in USE_HESIOD USE_INET6 USE_KERBEROS USE_LDAP USE_PAM USE_YP |
1493 | .if (${${var:S/USE_/MK/}} == "no") | | 1493 | .if (${${var:S/USE_/MK/}} == "no") |
1494 | ${var}:= no | | 1494 | ${var}:= no |
1495 | .else | | 1495 | .else |
1496 | ${var}?= yes | | 1496 | ${var}?= yes |
1497 | .endif | | 1497 | .endif |
1498 | .endfor | | 1498 | .endfor |
1499 | | | 1499 | |
1500 | # | | 1500 | # |
1501 | # USE_* options which default to "yes". | | 1501 | # USE_* options which default to "yes". |
1502 | # | | 1502 | # |
1503 | .for var in USE_JEMALLOC | | 1503 | .for var in USE_JEMALLOC |
1504 | ${var}?= yes | | 1504 | ${var}?= yes |
1505 | .endfor | | 1505 | .endfor |
1506 | | | 1506 | |
1507 | # | | 1507 | # |
1508 | # USE_* options which default to "no". | | 1508 | # USE_* options which default to "no". |
1509 | # | | 1509 | # |
1510 | # For now, disable pigz as compressor by default | | 1510 | # For now, disable pigz as compressor by default |
1511 | .for var in USE_PIGZGZIP | | 1511 | .for var in USE_PIGZGZIP |
1512 | ${var}?= no | | 1512 | ${var}?= no |
1513 | .endfor | | 1513 | .endfor |
1514 | | | 1514 | |
1515 | # Default to USE_XZ_SETS on some 64bit architectures where decompressor | | 1515 | # Default to USE_XZ_SETS on some 64bit architectures where decompressor |
1516 | # memory will likely not be in short supply. | | 1516 | # memory will likely not be in short supply. |
1517 | # Since pigz can not create .xz format files currently, disable .xz | | 1517 | # Since pigz can not create .xz format files currently, disable .xz |
1518 | # format if USE_PIGZGZIP is enabled. | | 1518 | # format if USE_PIGZGZIP is enabled. |
1519 | .if ${USE_PIGZGZIP} == "no" && \ | | 1519 | .if ${USE_PIGZGZIP} == "no" && \ |
1520 | (${MACHINE} == "amd64" || \ | | 1520 | (${MACHINE} == "amd64" || \ |
1521 | ${MACHINE} == "sparc64" || \ | | 1521 | ${MACHINE} == "sparc64" || \ |
1522 | ${MACHINE_CPU} == "aarch64") | | 1522 | ${MACHINE_CPU} == "aarch64") |
1523 | USE_XZ_SETS?= yes | | 1523 | USE_XZ_SETS?= yes |
1524 | .else | | 1524 | .else |
1525 | USE_XZ_SETS?= no | | 1525 | USE_XZ_SETS?= no |
1526 | .endif | | 1526 | .endif |
1527 | | | 1527 | |
1528 | # | | 1528 | # |
1529 | # TOOL_GZIP and friends. These might refer to TOOL_PIGZ or to the host gzip. | | 1529 | # TOOL_GZIP and friends. These might refer to TOOL_PIGZ or to the host gzip. |
1530 | # | | 1530 | # |
1531 | .if ${USE_PIGZGZIP} != "no" | | 1531 | .if ${USE_PIGZGZIP} != "no" |
1532 | TOOL_GZIP= ${TOOL_PIGZ} | | 1532 | TOOL_GZIP= ${TOOL_PIGZ} |
1533 | GZIP_N_FLAG?= -nT | | 1533 | GZIP_N_FLAG?= -nT |
1534 | .else | | 1534 | .else |
1535 | TOOL_GZIP= gzip | | 1535 | TOOL_GZIP= gzip |
1536 | GZIP_N_FLAG?= -n | | 1536 | GZIP_N_FLAG?= -n |
1537 | .endif | | 1537 | .endif |
1538 | TOOL_GZIP_N= ${TOOL_GZIP} ${GZIP_N_FLAG} | | 1538 | TOOL_GZIP_N= ${TOOL_GZIP} ${GZIP_N_FLAG} |
1539 | | | 1539 | |
1540 | # | | 1540 | # |
1541 | # Where X11 sources are and where it is installed to. | | 1541 | # Where X11 sources are and where it is installed to. |
1542 | # | | 1542 | # |
1543 | .if !defined(X11SRCDIR) | | 1543 | .if !defined(X11SRCDIR) |
1544 | .if exists(${NETBSDSRCDIR}/../xsrc) | | 1544 | .if exists(${NETBSDSRCDIR}/../xsrc) |
1545 | X11SRCDIR!= cd "${NETBSDSRCDIR}/../xsrc" && pwd | | 1545 | X11SRCDIR!= cd "${NETBSDSRCDIR}/../xsrc" && pwd |
1546 | .else | | 1546 | .else |
1547 | X11SRCDIR= /usr/xsrc | | 1547 | X11SRCDIR= /usr/xsrc |
1548 | .endif | | 1548 | .endif |
1549 | .endif # !defined(X11SRCDIR) | | 1549 | .endif # !defined(X11SRCDIR) |
1550 | | | 1550 | |
1551 | X11SRCDIR.local?= ${X11SRCDIR}/local | | 1551 | X11SRCDIR.local?= ${X11SRCDIR}/local |
1552 | X11ROOTDIR?= /usr/X11R7 | | 1552 | X11ROOTDIR?= /usr/X11R7 |
1553 | X11BINDIR?= ${X11ROOTDIR}/bin | | 1553 | X11BINDIR?= ${X11ROOTDIR}/bin |
1554 | X11ETCDIR?= /etc/X11 | | 1554 | X11ETCDIR?= /etc/X11 |
1555 | X11FONTDIR?= ${X11ROOTDIR}/lib/X11/fonts | | 1555 | X11FONTDIR?= ${X11ROOTDIR}/lib/X11/fonts |
1556 | X11INCDIR?= ${X11ROOTDIR}/include | | 1556 | X11INCDIR?= ${X11ROOTDIR}/include |
1557 | X11LIBDIR?= ${X11ROOTDIR}/lib/X11 | | 1557 | X11LIBDIR?= ${X11ROOTDIR}/lib/X11 |
1558 | X11MANDIR?= ${X11ROOTDIR}/man | | 1558 | X11MANDIR?= ${X11ROOTDIR}/man |
1559 | X11SHAREDIR?= ${X11ROOTDIR}/share | | 1559 | X11SHAREDIR?= ${X11ROOTDIR}/share |
1560 | X11USRLIBDIR?= ${X11ROOTDIR}/lib${MLIBDIR:D/${MLIBDIR}} | | 1560 | X11USRLIBDIR?= ${X11ROOTDIR}/lib${MLIBDIR:D/${MLIBDIR}} |
1561 | | | 1561 | |
1562 | # | | 1562 | # |
1563 | # New modular-xorg based builds | | 1563 | # New modular-xorg based builds |
1564 | # | | 1564 | # |
1565 | X11SRCDIRMIT?= ${X11SRCDIR}/external/mit | | 1565 | X11SRCDIRMIT?= ${X11SRCDIR}/external/mit |
1566 | .for _lib in \ | | 1566 | .for _lib in \ |
1567 | FS ICE SM X11 XScrnSaver XTrap Xau Xcomposite Xcursor Xdamage \ | | 1567 | FS ICE SM X11 XScrnSaver XTrap Xau Xcomposite Xcursor Xdamage \ |
1568 | Xdmcp Xevie Xext Xfixes Xfont Xfont2 Xft Xi Xinerama Xmu Xpresent Xpm \ | | 1568 | Xdmcp Xevie Xext Xfixes Xfont Xfont2 Xft Xi Xinerama Xmu Xpresent Xpm \ |
1569 | Xrandr Xrender Xres Xt Xtst Xv XvMC Xxf86dga Xxf86misc Xxf86vm drm \ | | 1569 | Xrandr Xrender Xres Xt Xtst Xv XvMC Xxf86dga Xxf86misc Xxf86vm drm \ |
1570 | epoxy fontenc vdpau xkbfile xkbui Xaw pciaccess xcb xshmfence \ | | 1570 | epoxy fontenc vdpau xkbfile xkbui Xaw pciaccess xcb xshmfence \ |
1571 | pthread-stubs | | 1571 | pthread-stubs |
1572 | X11SRCDIR.${_lib}?= ${X11SRCDIRMIT}/lib${_lib}/dist | | 1572 | X11SRCDIR.${_lib}?= ${X11SRCDIRMIT}/lib${_lib}/dist |
1573 | .endfor | | 1573 | .endfor |
1574 | | | 1574 | |
1575 | .for _proto in \ | | 1575 | .for _proto in \ |
1576 | xcb- xorg | | 1576 | xcb- xorg |
1577 | X11SRCDIR.${_proto}proto?= ${X11SRCDIRMIT}/${_proto}proto/dist | | 1577 | X11SRCDIR.${_proto}proto?= ${X11SRCDIRMIT}/${_proto}proto/dist |
1578 | .endfor | | 1578 | .endfor |
1579 | | | 1579 | |
1580 | # During transition from xorg-server 1.10 to 1.20 | | 1580 | # During transition from xorg-server 1.10 to 1.20 |
1581 | .if \ | | 1581 | .if \ |
1582 | ${MACHINE} == "alpha" || \ | | 1582 | ${MACHINE} == "alpha" || \ |
1583 | ${MACHINE} == "amiga" || \ | | 1583 | ${MACHINE} == "amiga" || \ |
1584 | ${MACHINE} == "mac68k" || \ | | | |
1585 | ${MACHINE} == "netwinder" || \ | | 1584 | ${MACHINE} == "netwinder" || \ |
1586 | ${MACHINE} == "sgimips" || \ | | 1585 | ${MACHINE} == "sgimips" || \ |
1587 | ${MACHINE} == "vax" | | 1586 | ${MACHINE} == "vax" |
1588 | HAVE_XORG_SERVER_VER?=110 | | 1587 | HAVE_XORG_SERVER_VER?=110 |
1589 | .else | | 1588 | .else |
1590 | HAVE_XORG_SERVER_VER?=120 | | 1589 | HAVE_XORG_SERVER_VER?=120 |
1591 | .endif | | 1590 | .endif |
1592 | | | 1591 | |
1593 | .if ${HAVE_XORG_SERVER_VER} == "120" | | 1592 | .if ${HAVE_XORG_SERVER_VER} == "120" |
1594 | XORG_SERVER_SUBDIR?=xorg-server | | 1593 | XORG_SERVER_SUBDIR?=xorg-server |
1595 | . if ${MACHINE} == "amd64" || ${MACHINE} == "i386" || ${MACHINE} == "evbarm" | | 1594 | . if ${MACHINE} == "amd64" || ${MACHINE} == "i386" || ${MACHINE} == "evbarm" |
1596 | HAVE_XORG_GLAMOR?= yes | | 1595 | HAVE_XORG_GLAMOR?= yes |
1597 | . endif | | 1596 | . endif |
1598 | .else | | 1597 | .else |
1599 | XORG_SERVER_SUBDIR?=xorg-server.old | | 1598 | XORG_SERVER_SUBDIR?=xorg-server.old |
1600 | .endif | | 1599 | .endif |
1601 | | | 1600 | |
1602 | X11SRCDIR.xorg-server?= ${X11SRCDIRMIT}/${XORG_SERVER_SUBDIR}/dist | | 1601 | X11SRCDIR.xorg-server?= ${X11SRCDIRMIT}/${XORG_SERVER_SUBDIR}/dist |
1603 | HAVE_XORG_GLAMOR?= no | | 1602 | HAVE_XORG_GLAMOR?= no |
1604 | | | 1603 | |
1605 | # Build glamor extension? | | 1604 | # Build glamor extension? |
1606 | | | 1605 | |
1607 | .for _dir in \ | | 1606 | .for _dir in \ |
1608 | xtrans fontconfig freetype evieext mkfontscale bdftopcf \ | | 1607 | xtrans fontconfig freetype evieext mkfontscale bdftopcf \ |
1609 | xorg-cf-files imake xbiff xkeyboard-config \ | | 1608 | xorg-cf-files imake xbiff xkeyboard-config \ |
1610 | xcompmgr xbitmaps appres xeyes xev xedit sessreg pixman \ | | 1609 | xcompmgr xbitmaps appres xeyes xev xedit sessreg pixman \ |
1611 | beforelight bitmap editres makedepend fonttosfnt fslsfonts fstobdf \ | | 1610 | beforelight bitmap editres makedepend fonttosfnt fslsfonts fstobdf \ |
1612 | glu glw mesa-demos MesaGLUT MesaLib MesaLib.old MesaLib7 \ | | 1611 | glu glw mesa-demos MesaGLUT MesaLib MesaLib.old MesaLib7 \ |
1613 | ico iceauth listres lndir \ | | 1612 | ico iceauth listres lndir \ |
1614 | luit xproxymanagementprotocol mkfontdir oclock proxymngr rgb \ | | 1613 | luit xproxymanagementprotocol mkfontdir oclock proxymngr rgb \ |
1615 | rstart setxkbmap showfont smproxy transset twm viewres \ | | 1614 | rstart setxkbmap showfont smproxy transset twm viewres \ |
1616 | util-macros \ | | 1615 | util-macros \ |
1617 | x11perf xauth xcalc xclipboard \ | | 1616 | x11perf xauth xcalc xclipboard \ |
1618 | xclock xcmsdb xconsole xditview xdpyinfo xdriinfo xdm \ | | 1617 | xclock xcmsdb xconsole xditview xdpyinfo xdriinfo xdm \ |
1619 | xfd xf86dga xfindproxy xfontsel xfwp xgamma xgc xhost xinit \ | | 1618 | xfd xf86dga xfindproxy xfontsel xfwp xgamma xgc xhost xinit \ |
1620 | xkill xload xlogo xlsatoms xlsclients xlsfonts xmag xmessage \ | | 1619 | xkill xload xlogo xlsatoms xlsclients xlsfonts xmag xmessage \ |
1621 | xmh xmodmap xmore xman xprop xrandr xrdb xrefresh xset \ | | 1620 | xmh xmodmap xmore xman xprop xrandr xrdb xrefresh xset \ |
1622 | xsetmode xsetpointer xsetroot xsm xstdcmap xvidtune xvinfo \ | | 1621 | xsetmode xsetpointer xsetroot xsm xstdcmap xvidtune xvinfo \ |
1623 | xwininfo xwud xkbprint xkbevd \ | | 1622 | xwininfo xwud xkbprint xkbevd \ |
1624 | xterm xwd xfs xfsinfo xtrap xkbutils xkbcomp \ | | 1623 | xterm xwd xfs xfsinfo xtrap xkbutils xkbcomp \ |
1625 | xinput xcb-util xorg-docs \ | | 1624 | xinput xcb-util xorg-docs \ |
1626 | font-adobe-100dpi font-adobe-75dpi font-adobe-utopia-100dpi \ | | 1625 | font-adobe-100dpi font-adobe-75dpi font-adobe-utopia-100dpi \ |
1627 | font-adobe-utopia-75dpi font-adobe-utopia-type1 \ | | 1626 | font-adobe-utopia-75dpi font-adobe-utopia-type1 \ |
1628 | font-alias \ | | 1627 | font-alias \ |
1629 | font-bh-100dpi font-bh-75dpi font-bh-lucidatypewriter-100dpi \ | | 1628 | font-bh-100dpi font-bh-75dpi font-bh-lucidatypewriter-100dpi \ |
1630 | font-bh-lucidatypewriter-75dpi font-bh-ttf font-bh-type1 \ | | 1629 | font-bh-lucidatypewriter-75dpi font-bh-ttf font-bh-type1 \ |
1631 | font-bitstream-100dpi font-bitstream-75dpi font-bitstream-type1 \ | | 1630 | font-bitstream-100dpi font-bitstream-75dpi font-bitstream-type1 \ |
1632 | font-cursor-misc font-daewoo-misc font-dec-misc font-ibm-type1 \ | | 1631 | font-cursor-misc font-daewoo-misc font-dec-misc font-ibm-type1 \ |
1633 | font-isas-misc font-jis-misc font-misc-misc font-mutt-misc \ | | 1632 | font-isas-misc font-jis-misc font-misc-misc font-mutt-misc \ |
1634 | font-sony-misc font-util ttf-bitstream-vera encodings | | 1633 | font-sony-misc font-util ttf-bitstream-vera encodings |
1635 | X11SRCDIR.${_dir}?= ${X11SRCDIRMIT}/${_dir}/dist | | 1634 | X11SRCDIR.${_dir}?= ${X11SRCDIRMIT}/${_dir}/dist |
1636 | .endfor | | 1635 | .endfor |
1637 | | | 1636 | |
1638 | # X11SRCDIR.Mesa points to the currently used Mesa sources | | 1637 | # X11SRCDIR.Mesa points to the currently used Mesa sources |
1639 | X11SRCDIR.Mesa?= ${X11SRCDIRMIT}/${EXTERNAL_MESALIB_DIR}/dist | | 1638 | X11SRCDIR.Mesa?= ${X11SRCDIRMIT}/${EXTERNAL_MESALIB_DIR}/dist |
1640 | | | 1639 | |
1641 | .for _i in \ | | 1640 | .for _i in \ |
1642 | elographics keyboard mouse synaptics vmmouse void ws | | 1641 | elographics keyboard mouse synaptics vmmouse void ws |
1643 | X11SRCDIR.xf86-input-${_i}?= ${X11SRCDIRMIT}/xf86-input-${_i}/dist | | 1642 | X11SRCDIR.xf86-input-${_i}?= ${X11SRCDIRMIT}/xf86-input-${_i}/dist |
1644 | .endfor | | 1643 | .endfor |
1645 | | | 1644 | |
1646 | # xf86-video-modesetting move into the server build. | | 1645 | # xf86-video-modesetting move into the server build. |
1647 | EXTRA_DRIVERS= | | 1646 | EXTRA_DRIVERS= |
1648 | .if ${HAVE_XORG_SERVER_VER} == "120" | | 1647 | .if ${HAVE_XORG_SERVER_VER} == "120" |
1649 | X11SRCDIR.xf86-video-modesetting=${X11SRCDIR.xorg-server}/hw/xfree86/drivers/modesetting | | 1648 | X11SRCDIR.xf86-video-modesetting=${X11SRCDIR.xorg-server}/hw/xfree86/drivers/modesetting |
1650 | .else | | 1649 | .else |
1651 | EXTRA_DRIVERS= modesetting | | 1650 | EXTRA_DRIVERS= modesetting |
1652 | .endif | | 1651 | .endif |
1653 | | | 1652 | |
1654 | .for _v in \ | | 1653 | .for _v in \ |
1655 | ag10e amdgpu apm ark ast ati ati-kms chips cirrus crime \ | | 1654 | ag10e amdgpu apm ark ast ati ati-kms chips cirrus crime \ |
1656 | geode glint i128 i740 igs imstt intel intel-old intel-2014 \ | | 1655 | geode glint i128 i740 igs imstt intel intel-old intel-2014 \ |
1657 | ${EXTRA_DRIVERS} mach64 mga \ | | 1656 | ${EXTRA_DRIVERS} mach64 mga \ |
1658 | neomagic newport nouveau nsc nv openchrome pnozz \ | | 1657 | neomagic newport nouveau nsc nv openchrome pnozz \ |
1659 | r128 rendition \ | | 1658 | r128 rendition \ |
1660 | s3 s3virge savage siliconmotion sis suncg14 \ | | 1659 | s3 s3virge savage siliconmotion sis suncg14 \ |
1661 | suncg6 sunffb sunleo suntcx \ | | 1660 | suncg6 sunffb sunleo suntcx \ |
1662 | tdfx tga trident tseng vboxvideo vesa vga vmware wsfb xgi | | 1661 | tdfx tga trident tseng vboxvideo vesa vga vmware wsfb xgi |
1663 | X11SRCDIR.xf86-video-${_v}?= ${X11SRCDIRMIT}/xf86-video-${_v}/dist | | 1662 | X11SRCDIR.xf86-video-${_v}?= ${X11SRCDIRMIT}/xf86-video-${_v}/dist |
1664 | .endfor | | 1663 | .endfor |
1665 | | | 1664 | |
1666 | | | 1665 | |
1667 | X11DRI?= yes | | 1666 | X11DRI?= yes |
1668 | X11LOADABLE?= yes | | 1667 | X11LOADABLE?= yes |
1669 | | | 1668 | |
1670 | | | 1669 | |
1671 | # | | 1670 | # |
1672 | # Where extsrc sources are and where it is installed to. | | 1671 | # Where extsrc sources are and where it is installed to. |
1673 | # | | 1672 | # |
1674 | .if !defined(EXTSRCSRCDIR) | | 1673 | .if !defined(EXTSRCSRCDIR) |
1675 | .if exists(${NETBSDSRCDIR}/../extsrc) | | 1674 | .if exists(${NETBSDSRCDIR}/../extsrc) |
1676 | EXTSRCSRCDIR!= cd "${NETBSDSRCDIR}/../extsrc" && pwd | | 1675 | EXTSRCSRCDIR!= cd "${NETBSDSRCDIR}/../extsrc" && pwd |
1677 | .else | | 1676 | .else |
1678 | EXTSRCSRCDIR= /usr/extsrc | | 1677 | EXTSRCSRCDIR= /usr/extsrc |
1679 | .endif | | 1678 | .endif |
1680 | .endif # !defined(EXTSRCSRCDIR) | | 1679 | .endif # !defined(EXTSRCSRCDIR) |
1681 | | | 1680 | |
1682 | EXTSRCROOTDIR?= /usr/ext | | 1681 | EXTSRCROOTDIR?= /usr/ext |
1683 | EXTSRCBINDIR?= ${EXTSRCROOTDIR}/bin | | 1682 | EXTSRCBINDIR?= ${EXTSRCROOTDIR}/bin |
1684 | EXTSRCETCDIR?= /etc/ext | | 1683 | EXTSRCETCDIR?= /etc/ext |
1685 | EXTSRCINCDIR?= ${EXTSRCROOTDIR}/include | | 1684 | EXTSRCINCDIR?= ${EXTSRCROOTDIR}/include |
1686 | EXTSRCLIBDIR?= ${EXTSRCROOTDIR}/lib/ext | | 1685 | EXTSRCLIBDIR?= ${EXTSRCROOTDIR}/lib/ext |
1687 | EXTSRCMANDIR?= ${EXTSRCROOTDIR}/man | | 1686 | EXTSRCMANDIR?= ${EXTSRCROOTDIR}/man |
1688 | EXTSRCUSRLIBDIR?= ${EXTSRCROOTDIR}/lib | | 1687 | EXTSRCUSRLIBDIR?= ${EXTSRCROOTDIR}/lib |
1689 | | | 1688 | |
1690 | # | | 1689 | # |
1691 | # MAKEDIRTARGET dir target [extra make(1) params] | | 1690 | # MAKEDIRTARGET dir target [extra make(1) params] |
1692 | # run "cd $${dir} && ${MAKEDIRTARGETENV} ${MAKE} [params] $${target}", with a pretty message | | 1691 | # run "cd $${dir} && ${MAKEDIRTARGETENV} ${MAKE} [params] $${target}", with a pretty message |
1693 | # | | 1692 | # |
1694 | MAKEDIRTARGETENV?= | | 1693 | MAKEDIRTARGETENV?= |
1695 | MAKEDIRTARGET=\ | | 1694 | MAKEDIRTARGET=\ |
1696 | @_makedirtarget() { \ | | 1695 | @_makedirtarget() { \ |
1697 | dir="$$1"; shift; \ | | 1696 | dir="$$1"; shift; \ |
1698 | target="$$1"; shift; \ | | 1697 | target="$$1"; shift; \ |
1699 | case "$${dir}" in \ | | 1698 | case "$${dir}" in \ |
1700 | /*) this="$${dir}/"; \ | | 1699 | /*) this="$${dir}/"; \ |
1701 | real="$${dir}" ;; \ | | 1700 | real="$${dir}" ;; \ |
1702 | .) this="${_THISDIR_}"; \ | | 1701 | .) this="${_THISDIR_}"; \ |
1703 | real="${.CURDIR}" ;; \ | | 1702 | real="${.CURDIR}" ;; \ |
1704 | *) this="${_THISDIR_}$${dir}/"; \ | | 1703 | *) this="${_THISDIR_}$${dir}/"; \ |
1705 | real="${.CURDIR}/$${dir}" ;; \ | | 1704 | real="${.CURDIR}/$${dir}" ;; \ |
1706 | esac; \ | | 1705 | esac; \ |
1707 | show=$${this:-.}; \ | | 1706 | show=$${this:-.}; \ |
1708 | echo "$${target} ===> $${show%/}$${1:+ (with: $$@)}"; \ | | 1707 | echo "$${target} ===> $${show%/}$${1:+ (with: $$@)}"; \ |
1709 | cd "$${real}" \ | | 1708 | cd "$${real}" \ |
1710 | && ${MAKEDIRTARGETENV} ${MAKE} _THISDIR_="$${this}" "$$@" $${target}; \ | | 1709 | && ${MAKEDIRTARGETENV} ${MAKE} _THISDIR_="$${this}" "$$@" $${target}; \ |
1711 | }; \ | | 1710 | }; \ |
1712 | _makedirtarget | | 1711 | _makedirtarget |
1713 | | | 1712 | |
1714 | # | | 1713 | # |
1715 | # MAKEVERBOSE support. Levels are: | | 1714 | # MAKEVERBOSE support. Levels are: |
1716 | # 0 Minimal output ("quiet") | | 1715 | # 0 Minimal output ("quiet") |
1717 | # 1 Describe what is occurring | | 1716 | # 1 Describe what is occurring |
1718 | # 2 Describe what is occurring and echo the actual command | | 1717 | # 2 Describe what is occurring and echo the actual command |
1719 | # 3 Ignore the effect of the "@" prefix in make commands | | 1718 | # 3 Ignore the effect of the "@" prefix in make commands |
1720 | # 4 Trace shell commands using the shell's -x flag | | 1719 | # 4 Trace shell commands using the shell's -x flag |
1721 | # | | 1720 | # |
1722 | MAKEVERBOSE?= 2 | | 1721 | MAKEVERBOSE?= 2 |
1723 | | | 1722 | |
1724 | .if ${MAKEVERBOSE} == 0 | | 1723 | .if ${MAKEVERBOSE} == 0 |
1725 | _MKMSG?= @\# | | 1724 | _MKMSG?= @\# |
1726 | _MKSHMSG?= : echo | | 1725 | _MKSHMSG?= : echo |
1727 | _MKSHECHO?= : echo | | 1726 | _MKSHECHO?= : echo |
1728 | .SILENT: | | 1727 | .SILENT: |
1729 | .elif ${MAKEVERBOSE} == 1 | | 1728 | .elif ${MAKEVERBOSE} == 1 |
1730 | _MKMSG?= @echo ' ' | | 1729 | _MKMSG?= @echo ' ' |
1731 | _MKSHMSG?= echo ' ' | | 1730 | _MKSHMSG?= echo ' ' |
1732 | _MKSHECHO?= : echo | | 1731 | _MKSHECHO?= : echo |
1733 | .SILENT: | | 1732 | .SILENT: |
1734 | .else # MAKEVERBOSE >= 2 | | 1733 | .else # MAKEVERBOSE >= 2 |
1735 | _MKMSG?= @echo '\# ' | | 1734 | _MKMSG?= @echo '\# ' |
1736 | _MKSHMSG?= echo '\# ' | | 1735 | _MKSHMSG?= echo '\# ' |
1737 | _MKSHECHO?= echo | | 1736 | _MKSHECHO?= echo |
1738 | .SILENT: __makeverbose_dummy_target__ | | 1737 | .SILENT: __makeverbose_dummy_target__ |
1739 | .endif # MAKEVERBOSE >= 2 | | 1738 | .endif # MAKEVERBOSE >= 2 |
1740 | .if ${MAKEVERBOSE} >= 3 | | 1739 | .if ${MAKEVERBOSE} >= 3 |
1741 | .MAKEFLAGS: -dl | | 1740 | .MAKEFLAGS: -dl |
1742 | .endif # ${MAKEVERBOSE} >= 3 | | 1741 | .endif # ${MAKEVERBOSE} >= 3 |
1743 | .if ${MAKEVERBOSE} >= 4 | | 1742 | .if ${MAKEVERBOSE} >= 4 |
1744 | .MAKEFLAGS: -dx | | 1743 | .MAKEFLAGS: -dx |
1745 | .endif # ${MAKEVERBOSE} >= 4 | | 1744 | .endif # ${MAKEVERBOSE} >= 4 |
1746 | | | 1745 | |
1747 | _MKMSG_BUILD?= ${_MKMSG} " build " | | 1746 | _MKMSG_BUILD?= ${_MKMSG} " build " |
1748 | _MKMSG_CREATE?= ${_MKMSG} " create " | | 1747 | _MKMSG_CREATE?= ${_MKMSG} " create " |
1749 | _MKMSG_COMPILE?= ${_MKMSG} "compile " | | 1748 | _MKMSG_COMPILE?= ${_MKMSG} "compile " |
1750 | _MKMSG_FORMAT?= ${_MKMSG} " format " | | 1749 | _MKMSG_FORMAT?= ${_MKMSG} " format " |
1751 | _MKMSG_INSTALL?= ${_MKMSG} "install " | | 1750 | _MKMSG_INSTALL?= ${_MKMSG} "install " |
1752 | _MKMSG_LINK?= ${_MKMSG} " link " | | 1751 | _MKMSG_LINK?= ${_MKMSG} " link " |
1753 | _MKMSG_LEX?= ${_MKMSG} " lex " | | 1752 | _MKMSG_LEX?= ${_MKMSG} " lex " |
1754 | _MKMSG_REMOVE?= ${_MKMSG} " remove " | | 1753 | _MKMSG_REMOVE?= ${_MKMSG} " remove " |
1755 | _MKMSG_YACC?= ${_MKMSG} " yacc " | | 1754 | _MKMSG_YACC?= ${_MKMSG} " yacc " |
1756 | | | 1755 | |
1757 | _MKSHMSG_CREATE?= ${_MKSHMSG} " create " | | 1756 | _MKSHMSG_CREATE?= ${_MKSHMSG} " create " |
1758 | _MKSHMSG_INSTALL?= ${_MKSHMSG} "install " | | 1757 | _MKSHMSG_INSTALL?= ${_MKSHMSG} "install " |
1759 | | | 1758 | |
1760 | _MKTARGET_BUILD?= ${_MKMSG_BUILD} ${.CURDIR:T}/${.TARGET} | | 1759 | _MKTARGET_BUILD?= ${_MKMSG_BUILD} ${.CURDIR:T}/${.TARGET} |
1761 | _MKTARGET_CREATE?= ${_MKMSG_CREATE} ${.CURDIR:T}/${.TARGET} | | 1760 | _MKTARGET_CREATE?= ${_MKMSG_CREATE} ${.CURDIR:T}/${.TARGET} |
1762 | _MKTARGET_COMPILE?= ${_MKMSG_COMPILE} ${.CURDIR:T}/${.TARGET} | | 1761 | _MKTARGET_COMPILE?= ${_MKMSG_COMPILE} ${.CURDIR:T}/${.TARGET} |
1763 | _MKTARGET_FORMAT?= ${_MKMSG_FORMAT} ${.CURDIR:T}/${.TARGET} | | 1762 | _MKTARGET_FORMAT?= ${_MKMSG_FORMAT} ${.CURDIR:T}/${.TARGET} |
1764 | _MKTARGET_INSTALL?= ${_MKMSG_INSTALL} ${.TARGET} | | 1763 | _MKTARGET_INSTALL?= ${_MKMSG_INSTALL} ${.TARGET} |
1765 | _MKTARGET_LINK?= ${_MKMSG_LINK} ${.CURDIR:T}/${.TARGET} | | 1764 | _MKTARGET_LINK?= ${_MKMSG_LINK} ${.CURDIR:T}/${.TARGET} |
1766 | _MKTARGET_LEX?= ${_MKMSG_LEX} ${.CURDIR:T}/${.TARGET} | | 1765 | _MKTARGET_LEX?= ${_MKMSG_LEX} ${.CURDIR:T}/${.TARGET} |
1767 | _MKTARGET_REMOVE?= ${_MKMSG_REMOVE} ${.TARGET} | | 1766 | _MKTARGET_REMOVE?= ${_MKMSG_REMOVE} ${.TARGET} |
1768 | _MKTARGET_YACC?= ${_MKMSG_YACC} ${.CURDIR:T}/${.TARGET} | | 1767 | _MKTARGET_YACC?= ${_MKMSG_YACC} ${.CURDIR:T}/${.TARGET} |
1769 | | | 1768 | |
1770 | .if ${MKMANDOC} == "yes" | | 1769 | .if ${MKMANDOC} == "yes" |
1771 | TARGETS+= lintmanpages | | 1770 | TARGETS+= lintmanpages |
1772 | .endif | | 1771 | .endif |
1773 | | | 1772 | |
1774 | TESTSBASE= /usr/tests${MLIBDIR:D/${MLIBDIR}} | | 1773 | TESTSBASE= /usr/tests${MLIBDIR:D/${MLIBDIR}} |
1775 | | | 1774 | |
1776 | # Override with tools versions if needed | | 1775 | # Override with tools versions if needed |
1777 | .if ${MKCTF:Uno} != "no" && !defined(NOCTF) && \ | | 1776 | .if ${MKCTF:Uno} != "no" && !defined(NOCTF) && \ |
1778 | (exists(${TOOL_CTFCONVERT}) || exists(/usr/bin/${TOOL_CTFCONVERT})) | | 1777 | (exists(${TOOL_CTFCONVERT}) || exists(/usr/bin/${TOOL_CTFCONVERT})) |
1779 | CTFCONVERT= ${TOOL_CTFCONVERT} | | 1778 | CTFCONVERT= ${TOOL_CTFCONVERT} |
1780 | CTFMERGE= ${TOOL_CTFMERGE} | | 1779 | CTFMERGE= ${TOOL_CTFMERGE} |
1781 | .endif | | 1780 | .endif |
1782 | | | 1781 | |
1783 | .endif # !defined(_BSD_OWN_MK_) | | 1782 | .endif # !defined(_BSD_OWN_MK_) |