| @@ -1,1134 +1,1135 @@ | | | @@ -1,1134 +1,1135 @@ |
1 | # $NetBSD: bsd.own.mk,v 1.909 2016/03/24 04:28:49 christos Exp $ | | 1 | # $NetBSD: bsd.own.mk,v 1.910 2016/03/24 09:15:38 martin 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/mipse[bl]/mips/:C/mips64e[bl]/mips/:C/sh3e[bl]/sh3/:S/coldfire/m68k/:S/m68000/m68k/:C/arm.*/arm/:C/earm.*/arm/:S/earm/arm/:S/powerpc64/powerpc/:S/aarch64eb/aarch64/:S/or1knd/or1k/:C/riscv../riscv/} | | 17 | MACHINE_CPU= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips/:C/sh3e[bl]/sh3/:S/coldfire/m68k/:S/m68000/m68k/:C/arm.*/arm/:C/earm.*/arm/:S/earm/arm/:S/powerpc64/powerpc/:S/aarch64eb/aarch64/:S/or1knd/or1k/:C/riscv../riscv/} |
18 | | | 18 | |
19 | # | | 19 | # |
20 | # Subdirectory used below ${RELEASEDIR} when building a release | | 20 | # Subdirectory used below ${RELEASEDIR} when building a release |
21 | # | | 21 | # |
22 | RELEASEMACHINEDIR?= ${MACHINE} | | 22 | RELEASEMACHINEDIR?= ${MACHINE} |
23 | | | 23 | |
24 | # | | 24 | # |
25 | # Subdirectory or path component used for the following paths: | | 25 | # Subdirectory or path component used for the following paths: |
26 | # distrib/${RELEASEMACHINE} | | 26 | # distrib/${RELEASEMACHINE} |
27 | # distrib/notes/${RELEASEMACHINE} | | 27 | # distrib/notes/${RELEASEMACHINE} |
28 | # etc/etc.${RELEASEMACHINE} | | 28 | # etc/etc.${RELEASEMACHINE} |
29 | # Used when building a release. | | 29 | # Used when building a release. |
30 | # | | 30 | # |
31 | RELEASEMACHINE?= ${MACHINE} | | 31 | RELEASEMACHINE?= ${MACHINE} |
32 | | | 32 | |
33 | # | | 33 | # |
34 | # NEED_OWN_INSTALL_TARGET is set to "no" by pkgsrc/mk/bsd.pkg.mk to | | 34 | # NEED_OWN_INSTALL_TARGET is set to "no" by pkgsrc/mk/bsd.pkg.mk to |
35 | # ensure that things defined by <bsd.own.mk> (default targets, | | 35 | # ensure that things defined by <bsd.own.mk> (default targets, |
36 | # INSTALL_FILE, etc.) are not conflicting with bsd.pkg.mk. | | 36 | # INSTALL_FILE, etc.) are not conflicting with bsd.pkg.mk. |
37 | # | | 37 | # |
38 | NEED_OWN_INSTALL_TARGET?= yes | | 38 | NEED_OWN_INSTALL_TARGET?= yes |
39 | | | 39 | |
40 | # | | 40 | # |
41 | # This lists the platforms which do not have working in-tree toolchains. For | | 41 | # This lists the platforms which do not have working in-tree toolchains. For |
42 | # the in-tree gcc toolchain, this list is empty. | | 42 | # the in-tree gcc toolchain, this list is empty. |
43 | # | | 43 | # |
44 | # If some future port is not supported by the in-tree toolchain, this should | | 44 | # If some future port is not supported by the in-tree toolchain, this should |
45 | # be set to "yes" for that port only. | | 45 | # be set to "yes" for that port only. |
46 | # | | 46 | # |
47 | .if ${MACHINE} == "playstation2" | | 47 | .if ${MACHINE} == "playstation2" |
48 | TOOLCHAIN_MISSING?= yes | | 48 | TOOLCHAIN_MISSING?= yes |
49 | .endif | | 49 | .endif |
50 | | | 50 | |
51 | TOOLCHAIN_MISSING?= no | | 51 | TOOLCHAIN_MISSING?= no |
52 | | | 52 | |
53 | .if ${MACHINE_CPU} == "aarch64" && !defined(EXTERNAL_TOOLCHAIN) && ${MKLLVM:Uyes} != "no" | | 53 | .if ${MACHINE_CPU} == "aarch64" && !defined(EXTERNAL_TOOLCHAIN) && ${MKLLVM:Uyes} != "no" |
54 | MKLLVM?= yes | | 54 | MKLLVM?= yes |
55 | HAVE_LLVM?= yes | | 55 | HAVE_LLVM?= yes |
56 | MKGCC?= no | | 56 | MKGCC?= no |
57 | .endif | | 57 | .endif |
58 | | | 58 | |
59 | # | | 59 | # |
60 | # GCC Using platforms. | | 60 | # GCC Using platforms. |
61 | # | | 61 | # |
62 | .if ${MKGCC:Uyes} != "no" | | 62 | .if ${MKGCC:Uyes} != "no" |
63 | | | 63 | |
64 | .if ${MACHINE} == "playstation2" || ${MACHINE_CPU} == "aarch64" | | 64 | .if ${MACHINE} == "playstation2" || ${MACHINE_CPU} == "aarch64" |
65 | HAVE_GCC?= 0 | | 65 | HAVE_GCC?= 0 |
66 | .elif ${MACHINE_ARCH} == "vax" | | 66 | .elif ${MACHINE_ARCH} == "vax" |
67 | HAVE_GCC?= 53 | | 67 | HAVE_GCC?= 53 |
68 | .else | | 68 | .else |
69 | # Otherwise, default to GCC4.8 | | 69 | # Otherwise, default to GCC4.8 |
70 | HAVE_GCC?= 48 | | 70 | HAVE_GCC?= 48 |
71 | .endif | | 71 | .endif |
72 | | | 72 | |
73 | # | | 73 | # |
74 | # Platforms that can't run a modern GCC natively | | 74 | # Platforms that can't run a modern GCC natively |
75 | .if ${MACHINE_ARCH} == "m68000" | | 75 | .if ${MACHINE_ARCH} == "m68000" |
76 | MKGCCCMDS?= no | | 76 | MKGCCCMDS?= no |
77 | .endif | | 77 | .endif |
78 | | | 78 | |
79 | # | | 79 | # |
80 | # We import the old gcc as "gcc.old" when upgrading. EXTERNAL_GCC_SUBDIR is | | 80 | # We import the old gcc as "gcc.old" when upgrading. EXTERNAL_GCC_SUBDIR is |
81 | # set to the relevant subdirectory in src/external/gpl3 for his HAVE_GCC. | | 81 | # set to the relevant subdirectory in src/external/gpl3 for his HAVE_GCC. |
82 | # | | 82 | # |
83 | .if ${HAVE_GCC} == 53 | | 83 | .if ${HAVE_GCC} == 53 |
84 | EXTERNAL_GCC_SUBDIR= gcc | | 84 | EXTERNAL_GCC_SUBDIR= gcc |
85 | .elif ${HAVE_GCC} == 48 | | 85 | .elif ${HAVE_GCC} == 48 |
86 | EXTERNAL_GCC_SUBDIR= gcc.old | | 86 | EXTERNAL_GCC_SUBDIR= gcc.old |
87 | .else | | 87 | .else |
88 | EXTERNAL_GCC_SUBDIR= /does/not/exist | | 88 | EXTERNAL_GCC_SUBDIR= /does/not/exist |
89 | .endif | | 89 | .endif |
90 | .else | | 90 | .else |
91 | MKGCCCMDS?= no | | 91 | MKGCCCMDS?= no |
92 | .endif | | 92 | .endif |
93 | | | 93 | |
94 | .if !empty(MACHINE_ARCH:Mearm*) | | 94 | .if !empty(MACHINE_ARCH:Mearm*) |
95 | _LIBC_COMPILER_RT.${MACHINE_ARCH}= yes | | 95 | _LIBC_COMPILER_RT.${MACHINE_ARCH}= yes |
96 | .endif | | 96 | .endif |
97 | | | 97 | |
98 | _LIBC_COMPILER_RT.aarch64= yes | | 98 | _LIBC_COMPILER_RT.aarch64= yes |
99 | _LIBC_COMPILER_RT.i386= yes | | 99 | _LIBC_COMPILER_RT.i386= yes |
100 | _LIBC_COMPILER_RT.powerpc= yes | | 100 | _LIBC_COMPILER_RT.powerpc= yes |
101 | _LIBC_COMPILER_RT.powerpc64= yes | | 101 | _LIBC_COMPILER_RT.powerpc64= yes |
102 | _LIBC_COMPILER_RT.sparc= yes | | 102 | _LIBC_COMPILER_RT.sparc= yes |
103 | _LIBC_COMPILER_RT.sparc64= yes | | 103 | _LIBC_COMPILER_RT.sparc64= yes |
104 | _LIBC_COMPILER_RT.x86_64= yes | | 104 | _LIBC_COMPILER_RT.x86_64= yes |
105 | | | 105 | |
106 | .if ${HAVE_LLVM:Uno} == "yes" && ${_LIBC_COMPILER_RT.${MACHINE_ARCH}:Uno} == "yes" | | 106 | .if ${HAVE_LLVM:Uno} == "yes" && ${_LIBC_COMPILER_RT.${MACHINE_ARCH}:Uno} == "yes" |
107 | HAVE_LIBGCC?= no | | 107 | HAVE_LIBGCC?= no |
108 | .else | | 108 | .else |
109 | HAVE_LIBGCC?= yes | | 109 | HAVE_LIBGCC?= yes |
110 | .endif | | 110 | .endif |
111 | | | 111 | |
112 | | | 112 | |
113 | # ia64 is not support | | 113 | # ia64 is not support |
114 | .if ${HAVE_LLVM:Uno} == "yes" || !empty(MACHINE_ARCH:Mearm*) | | 114 | .if ${HAVE_LLVM:Uno} == "yes" || !empty(MACHINE_ARCH:Mearm*) |
115 | HAVE_LIBGCC_EH?= no | | 115 | HAVE_LIBGCC_EH?= no |
116 | .else | | 116 | .else |
117 | HAVE_LIBGCC_EH?= yes | | 117 | HAVE_LIBGCC_EH?= yes |
118 | .endif | | 118 | .endif |
119 | | | 119 | |
120 | .if (${MACHINE_ARCH} == "alpha") || \ | | 120 | .if (${MACHINE_ARCH} == "alpha") || \ |
121 | (${MACHINE_ARCH} == "hppa") || \ | | 121 | (${MACHINE_ARCH} == "hppa") || \ |
122 | (${MACHINE_ARCH} == "ia64") || \ | | 122 | (${MACHINE_ARCH} == "ia64") || \ |
123 | (${MACHINE_CPU} == "mips") | | 123 | (${MACHINE_CPU} == "mips") |
124 | HAVE_SSP?= no | | 124 | HAVE_SSP?= no |
125 | .else | | 125 | .else |
126 | HAVE_SSP?= yes | | 126 | HAVE_SSP?= yes |
127 | .if !defined(NOFORT) && ${USE_FORT:Uno} != "no" | | 127 | .if !defined(NOFORT) && ${USE_FORT:Uno} != "no" |
128 | USE_SSP?= yes | | 128 | USE_SSP?= yes |
129 | .endif | | 129 | .endif |
130 | .endif | | 130 | .endif |
131 | | | 131 | |
132 | .if ${MACHINE} == "amd64" || \ | | 132 | .if ${MACHINE} == "amd64" || \ |
133 | ${MACHINE} == "i386" || \ | | 133 | ${MACHINE} == "i386" || \ |
134 | ${MACHINE_CPU} == "sh3" || \ | | 134 | ${MACHINE_CPU} == "sh3" || \ |
135 | ${MACHINE_ARCH} == "vax" | | 135 | ${MACHINE_ARCH} == "vax" || \ |
| | | 136 | ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" |
136 | HAVE_GDB?= 710 | | 137 | HAVE_GDB?= 710 |
137 | .else | | 138 | .else |
138 | HAVE_GDB?= 79 | | 139 | HAVE_GDB?= 79 |
139 | .endif | | 140 | .endif |
140 | | | 141 | |
141 | .if ${HAVE_GDB} == 79 | | 142 | .if ${HAVE_GDB} == 79 |
142 | EXTERNAL_GDB_SUBDIR= gdb.old | | 143 | EXTERNAL_GDB_SUBDIR= gdb.old |
143 | .else | | 144 | .else |
144 | EXTERNAL_GDB_SUBDIR= gdb | | 145 | EXTERNAL_GDB_SUBDIR= gdb |
145 | .endif | | 146 | .endif |
146 | | | 147 | |
147 | .if ${MACHINE} == "amd64" || \ | | 148 | .if ${MACHINE} == "amd64" || \ |
148 | ${MACHINE} == "evbarm" || \ | | 149 | ${MACHINE} == "evbarm" || \ |
149 | ${MACHINE} == "i386" || \ | | 150 | ${MACHINE} == "i386" || \ |
150 | ${MACHINE} == "hppa" || \ | | 151 | ${MACHINE} == "hppa" || \ |
151 | ${MACHINE_CPU} == "sh3" || \ | | 152 | ${MACHINE_CPU} == "sh3" || \ |
152 | ${MACHINE} == "sparc" || \ | | 153 | ${MACHINE} == "sparc" || \ |
153 | ${MACHINE} == "sparc64" || \ | | 154 | ${MACHINE} == "sparc64" || \ |
154 | ${MACHINE_ARCH} == "powerpc" || \ | | 155 | ${MACHINE_ARCH} == "powerpc" || \ |
155 | ${MACHINE_ARCH} == "vax" | | 156 | ${MACHINE_ARCH} == "vax" |
156 | HAVE_BINUTILS?= 226 | | 157 | HAVE_BINUTILS?= 226 |
157 | .else | | 158 | .else |
158 | HAVE_BINUTILS?= 223 | | 159 | HAVE_BINUTILS?= 223 |
159 | .endif | | 160 | .endif |
160 | | | 161 | |
161 | .if ${HAVE_BINUTILS} == 223 | | 162 | .if ${HAVE_BINUTILS} == 223 |
162 | EXTERNAL_BINUTILS_SUBDIR= binutils.old | | 163 | EXTERNAL_BINUTILS_SUBDIR= binutils.old |
163 | .elif ${HAVE_BINUTILS} == 226 | | 164 | .elif ${HAVE_BINUTILS} == 226 |
164 | EXTERNAL_BINUTILS_SUBDIR= binutils | | 165 | EXTERNAL_BINUTILS_SUBDIR= binutils |
165 | .else | | 166 | .else |
166 | EXTERNAL_BINUTILS_SUBDIR= /does/not/exist | | 167 | EXTERNAL_BINUTILS_SUBDIR= /does/not/exist |
167 | .endif | | 168 | .endif |
168 | | | 169 | |
169 | .if empty(.MAKEFLAGS:tW:M*-V .OBJDIR*) | | 170 | .if empty(.MAKEFLAGS:tW:M*-V .OBJDIR*) |
170 | .if defined(MAKEOBJDIRPREFIX) || defined(MAKEOBJDIR) | | 171 | .if defined(MAKEOBJDIRPREFIX) || defined(MAKEOBJDIR) |
171 | PRINTOBJDIR= ${MAKE} -r -V .OBJDIR -f /dev/null xxx | | 172 | PRINTOBJDIR= ${MAKE} -r -V .OBJDIR -f /dev/null xxx |
172 | .else | | 173 | .else |
173 | PRINTOBJDIR= ${MAKE} -V .OBJDIR | | 174 | PRINTOBJDIR= ${MAKE} -V .OBJDIR |
174 | .endif | | 175 | .endif |
175 | .else | | 176 | .else |
176 | PRINTOBJDIR= echo /error/bsd.own.mk/PRINTOBJDIR # avoid infinite recursion | | 177 | PRINTOBJDIR= echo /error/bsd.own.mk/PRINTOBJDIR # avoid infinite recursion |
177 | .endif | | 178 | .endif |
178 | | | 179 | |
179 | # | | 180 | # |
180 | # Determine if running in the NetBSD source tree by checking for the | | 181 | # Determine if running in the NetBSD source tree by checking for the |
181 | # existence of build.sh and tools/ in the current or a parent directory, | | 182 | # existence of build.sh and tools/ in the current or a parent directory, |
182 | # and setting _SRC_TOP_ to the result. | | 183 | # and setting _SRC_TOP_ to the result. |
183 | # | | 184 | # |
184 | .if !defined(_SRC_TOP_) # { | | 185 | .if !defined(_SRC_TOP_) # { |
185 | _SRC_TOP_!= cd "${.CURDIR}"; while :; do \ | | 186 | _SRC_TOP_!= cd "${.CURDIR}"; while :; do \ |
186 | here=`pwd`; \ | | 187 | here=`pwd`; \ |
187 | [ -f build.sh ] && [ -d tools ] && { echo $$here; break; }; \ | | 188 | [ -f build.sh ] && [ -d tools ] && { echo $$here; break; }; \ |
188 | case $$here in /) echo ""; break;; esac; \ | | 189 | case $$here in /) echo ""; break;; esac; \ |
189 | cd ..; done | | 190 | cd ..; done |
190 | | | 191 | |
191 | .MAKEOVERRIDES+= _SRC_TOP_ | | 192 | .MAKEOVERRIDES+= _SRC_TOP_ |
192 | | | 193 | |
193 | .endif # } | | 194 | .endif # } |
194 | | | 195 | |
195 | # | | 196 | # |
196 | # If _SRC_TOP_ != "", we're within the NetBSD source tree. | | 197 | # If _SRC_TOP_ != "", we're within the NetBSD source tree. |
197 | # * Set defaults for NETBSDSRCDIR and _SRC_TOP_OBJ_. | | 198 | # * Set defaults for NETBSDSRCDIR and _SRC_TOP_OBJ_. |
198 | # * Define _NETBSD_VERSION_DEPENDS. Targets that depend on the | | 199 | # * Define _NETBSD_VERSION_DEPENDS. Targets that depend on the |
199 | # NetBSD version, or on variables defined at build time, can | | 200 | # NetBSD version, or on variables defined at build time, can |
200 | # declare a dependency on ${_NETBSD_VERSION_DEPENDS}. | | 201 | # declare a dependency on ${_NETBSD_VERSION_DEPENDS}. |
201 | # | | 202 | # |
202 | .if (${_SRC_TOP_} != "") # { | | 203 | .if (${_SRC_TOP_} != "") # { |
203 | | | 204 | |
204 | NETBSDSRCDIR?= ${_SRC_TOP_} | | 205 | NETBSDSRCDIR?= ${_SRC_TOP_} |
205 | | | 206 | |
206 | .if !defined(_SRC_TOP_OBJ_) | | 207 | .if !defined(_SRC_TOP_OBJ_) |
207 | _SRC_TOP_OBJ_!= cd "${_SRC_TOP_}" && ${PRINTOBJDIR} | | 208 | _SRC_TOP_OBJ_!= cd "${_SRC_TOP_}" && ${PRINTOBJDIR} |
208 | .MAKEOVERRIDES+= _SRC_TOP_OBJ_ | | 209 | .MAKEOVERRIDES+= _SRC_TOP_OBJ_ |
209 | .endif | | 210 | .endif |
210 | | | 211 | |
211 | _NETBSD_VERSION_DEPENDS= ${_SRC_TOP_OBJ_}/params | | 212 | _NETBSD_VERSION_DEPENDS= ${_SRC_TOP_OBJ_}/params |
212 | _NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/sys/param.h | | 213 | _NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/sys/param.h |
213 | _NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/conf/newvers.sh | | 214 | _NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/conf/newvers.sh |
214 | _NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/conf/osrelease.sh | | 215 | _NETBSD_VERSION_DEPENDS+= ${NETBSDSRCDIR}/sys/conf/osrelease.sh |
215 | ${_SRC_TOP_OBJ_}/params: .NOTMAIN .OPTIONAL # created by top level "make build" | | 216 | ${_SRC_TOP_OBJ_}/params: .NOTMAIN .OPTIONAL # created by top level "make build" |
216 | | | 217 | |
217 | .endif # _SRC_TOP_ != "" # } | | 218 | .endif # _SRC_TOP_ != "" # } |
218 | | | 219 | |
219 | | | 220 | |
220 | .if (${_SRC_TOP_} != "") && \ | | 221 | .if (${_SRC_TOP_} != "") && \ |
221 | (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) | | 222 | (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) |
222 | USETOOLS?= yes | | 223 | USETOOLS?= yes |
223 | .endif | | 224 | .endif |
224 | USETOOLS?= no | | 225 | USETOOLS?= no |
225 | | | 226 | |
226 | | | 227 | |
227 | .if ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "mips64" || \ | | 228 | .if ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "mips64" || \ |
228 | ${MACHINE_ARCH} == "sh3" | | 229 | ${MACHINE_ARCH} == "sh3" |
229 | .BEGIN: | | 230 | .BEGIN: |
230 | @echo "Must set MACHINE_ARCH to one of ${MACHINE_ARCH}eb or ${MACHINE_ARCH}el" | | 231 | @echo "Must set MACHINE_ARCH to one of ${MACHINE_ARCH}eb or ${MACHINE_ARCH}el" |
231 | @false | | 232 | @false |
232 | .elif defined(REQUIRETOOLS) && \ | | 233 | .elif defined(REQUIRETOOLS) && \ |
233 | (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) && \ | | 234 | (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) && \ |
234 | ${USETOOLS} == "no" | | 235 | ${USETOOLS} == "no" |
235 | .BEGIN: | | 236 | .BEGIN: |
236 | @echo "USETOOLS=no, but this component requires a version-specific host toolchain" | | 237 | @echo "USETOOLS=no, but this component requires a version-specific host toolchain" |
237 | @false | | 238 | @false |
238 | .endif | | 239 | .endif |
239 | | | 240 | |
240 | # | | 241 | # |
241 | # Host platform information; may be overridden | | 242 | # Host platform information; may be overridden |
242 | # | | 243 | # |
243 | .include <bsd.host.mk> | | 244 | .include <bsd.host.mk> |
244 | | | 245 | |
245 | .if ${USETOOLS} == "yes" # { | | 246 | .if ${USETOOLS} == "yes" # { |
246 | | | 247 | |
247 | # | | 248 | # |
248 | # Provide a default for TOOLDIR. | | 249 | # Provide a default for TOOLDIR. |
249 | # | | 250 | # |
250 | .if !defined(TOOLDIR) | | 251 | .if !defined(TOOLDIR) |
251 | TOOLDIR:= ${_SRC_TOP_OBJ_}/tooldir.${HOST_OSTYPE} | | 252 | TOOLDIR:= ${_SRC_TOP_OBJ_}/tooldir.${HOST_OSTYPE} |
252 | .MAKEOVERRIDES+= TOOLDIR | | 253 | .MAKEOVERRIDES+= TOOLDIR |
253 | .endif | | 254 | .endif |
254 | | | 255 | |
255 | # | | 256 | # |
256 | # This is the prefix used for the NetBSD-sourced tools. | | 257 | # This is the prefix used for the NetBSD-sourced tools. |
257 | # | | 258 | # |
258 | _TOOL_PREFIX?= nb | | 259 | _TOOL_PREFIX?= nb |
259 | | | 260 | |
260 | # | | 261 | # |
261 | # If an external toolchain base is specified, use it. | | 262 | # If an external toolchain base is specified, use it. |
262 | # | | 263 | # |
263 | .if defined(EXTERNAL_TOOLCHAIN) # { | | 264 | .if defined(EXTERNAL_TOOLCHAIN) # { |
264 | AR= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ar | | 265 | AR= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ar |
265 | AS= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-as | | 266 | AS= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-as |
266 | LD= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ld | | 267 | LD= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ld |
267 | NM= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-nm | | 268 | NM= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-nm |
268 | OBJCOPY= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objcopy | | 269 | OBJCOPY= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objcopy |
269 | OBJDUMP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objdump | | 270 | OBJDUMP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objdump |
270 | RANLIB= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ranlib | | 271 | RANLIB= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ranlib |
271 | READELF= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-readelf | | 272 | READELF= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-readelf |
272 | SIZE= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-size | | 273 | SIZE= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-size |
273 | STRINGS= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strings | | 274 | STRINGS= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strings |
274 | STRIP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strip | | 275 | STRIP= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strip |
275 | | | 276 | |
276 | TOOL_CC.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc | | 277 | TOOL_CC.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc |
277 | TOOL_CPP.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-cpp | | 278 | TOOL_CPP.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-cpp |
278 | TOOL_CXX.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-c++ | | 279 | TOOL_CXX.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-c++ |
279 | TOOL_FC.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-g77 | | 280 | TOOL_FC.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-g77 |
280 | TOOL_OBJC.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc | | 281 | TOOL_OBJC.gcc= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc |
281 | | | 282 | |
282 | TOOL_CC.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang | | 283 | TOOL_CC.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang |
283 | TOOL_CPP.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang-cpp | | 284 | TOOL_CPP.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang-cpp |
284 | TOOL_CXX.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang++ | | 285 | TOOL_CXX.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang++ |
285 | TOOL_OBJC.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang | | 286 | TOOL_OBJC.clang= ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-clang |
286 | .else # } { | | 287 | .else # } { |
287 | # Define default locations for common tools. | | 288 | # Define default locations for common tools. |
288 | .if ${USETOOLS_BINUTILS:Uyes} == "yes" # { | | 289 | .if ${USETOOLS_BINUTILS:Uyes} == "yes" # { |
289 | AR= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ar | | 290 | AR= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ar |
290 | AS= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-as | | 291 | AS= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-as |
291 | LD= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld | | 292 | LD= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld |
292 | NM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-nm | | 293 | NM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-nm |
293 | OBJCOPY= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objcopy | | 294 | OBJCOPY= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objcopy |
294 | OBJDUMP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objdump | | 295 | OBJDUMP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objdump |
295 | RANLIB= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib | | 296 | RANLIB= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib |
296 | READELF= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-readelf | | 297 | READELF= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-readelf |
297 | SIZE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-size | | 298 | SIZE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-size |
298 | STRINGS= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strings | | 299 | STRINGS= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strings |
299 | STRIP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip | | 300 | STRIP= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip |
300 | | | 301 | |
301 | # GCC supports C, C++, Fortran and Objective C | | 302 | # GCC supports C, C++, Fortran and Objective C |
302 | TOOL_CC.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc | | 303 | TOOL_CC.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc |
303 | TOOL_CPP.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-cpp | | 304 | TOOL_CPP.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-cpp |
304 | TOOL_CXX.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-c++ | | 305 | TOOL_CXX.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-c++ |
305 | TOOL_FC.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-g77 | | 306 | TOOL_FC.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-g77 |
306 | TOOL_OBJC.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc | | 307 | TOOL_OBJC.gcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc |
307 | .endif # } | | 308 | .endif # } |
308 | | | 309 | |
309 | # Clang supports C, C++ and Objective C | | 310 | # Clang supports C, C++ and Objective C |
310 | TOOL_CC.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang | | 311 | TOOL_CC.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang |
311 | TOOL_CPP.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang-cpp | | 312 | TOOL_CPP.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang-cpp |
312 | TOOL_CXX.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang++ | | 313 | TOOL_CXX.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang++ |
313 | TOOL_OBJC.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang | | 314 | TOOL_OBJC.clang= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang |
314 | | | 315 | |
315 | # PCC supports C and Fortran | | 316 | # PCC supports C and Fortran |
316 | TOOL_CC.pcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-pcc | | 317 | TOOL_CC.pcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-pcc |
317 | TOOL_CPP.pcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-pcpp | | 318 | TOOL_CPP.pcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-pcpp |
318 | TOOL_CXX.pcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-p++ | | 319 | TOOL_CXX.pcc= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-p++ |
319 | | | 320 | |
320 | # | | 321 | # |
321 | # Make sure DESTDIR is set, so that builds with these tools always | | 322 | # Make sure DESTDIR is set, so that builds with these tools always |
322 | # get appropriate -nostdinc, -nostdlib, etc. handling. The default is | | 323 | # get appropriate -nostdinc, -nostdlib, etc. handling. The default is |
323 | # <empty string>, meaning start from /, the root directory. | | 324 | # <empty string>, meaning start from /, the root directory. |
324 | # | | 325 | # |
325 | DESTDIR?= | | 326 | DESTDIR?= |
326 | | | 327 | |
327 | .if !defined(HOSTPROG) && !defined(HOSTLIB) | | 328 | .if !defined(HOSTPROG) && !defined(HOSTLIB) |
328 | . if ${DESTDIR} != "" | | 329 | . if ${DESTDIR} != "" |
329 | CPPFLAGS+= --sysroot=${DESTDIR} | | 330 | CPPFLAGS+= --sysroot=${DESTDIR} |
330 | LDFLAGS+= --sysroot=${DESTDIR} | | 331 | LDFLAGS+= --sysroot=${DESTDIR} |
331 | . else | | 332 | . else |
332 | CPPFLAGS+= --sysroot=/ | | 333 | CPPFLAGS+= --sysroot=/ |
333 | LDFLAGS+= --sysroot=/ | | 334 | LDFLAGS+= --sysroot=/ |
334 | . endif | | 335 | . endif |
335 | .endif | | 336 | .endif |
336 | .endif # EXTERNAL_TOOLCHAIN # } | | 337 | .endif # EXTERNAL_TOOLCHAIN # } |
337 | | | 338 | |
338 | DBSYM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-dbsym | | 339 | DBSYM= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-dbsym |
339 | ELF2AOUT= ${TOOLDIR}/bin/${_TOOL_PREFIX}m68k-elf2aout | | 340 | ELF2AOUT= ${TOOLDIR}/bin/${_TOOL_PREFIX}m68k-elf2aout |
340 | ELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff | | 341 | ELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff |
341 | INSTALL= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install | | 342 | INSTALL= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install |
342 | LEX= ${TOOLDIR}/bin/${_TOOL_PREFIX}lex | | 343 | LEX= ${TOOLDIR}/bin/${_TOOL_PREFIX}lex |
343 | LINT= CC=${CC:Q} ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-lint | | 344 | LINT= CC=${CC:Q} ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-lint |
344 | LORDER= NM=${NM:Q} MKTEMP=${TOOL_MKTEMP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder | | 345 | LORDER= NM=${NM:Q} MKTEMP=${TOOL_MKTEMP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder |
345 | MKDEP= CC=${CC:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep | | 346 | MKDEP= CC=${CC:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep |
346 | MKDEPCXX= CC=${CXX:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep | | 347 | MKDEPCXX= CC=${CXX:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep |
347 | PAXCTL= ${TOOLDIR}/bin/${_TOOL_PREFIX}paxctl | | 348 | PAXCTL= ${TOOLDIR}/bin/${_TOOL_PREFIX}paxctl |
348 | TSORT= ${TOOLDIR}/bin/${_TOOL_PREFIX}tsort -q | | 349 | TSORT= ${TOOLDIR}/bin/${_TOOL_PREFIX}tsort -q |
349 | YACC= ${TOOLDIR}/bin/${_TOOL_PREFIX}yacc | | 350 | YACC= ${TOOLDIR}/bin/${_TOOL_PREFIX}yacc |
350 | | | 351 | |
351 | TOOL_AMIGAAOUT2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-aout2bb | | 352 | TOOL_AMIGAAOUT2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-aout2bb |
352 | TOOL_AMIGAELF2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-elf2bb | | 353 | TOOL_AMIGAELF2BB= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-elf2bb |
353 | TOOL_AMIGATXLT= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-txlt | | 354 | TOOL_AMIGATXLT= ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-txlt |
354 | TOOL_ASN1_COMPILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}asn1_compile | | 355 | TOOL_ASN1_COMPILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}asn1_compile |
355 | TOOL_AWK= ${TOOLDIR}/bin/${_TOOL_PREFIX}awk | | 356 | TOOL_AWK= ${TOOLDIR}/bin/${_TOOL_PREFIX}awk |
356 | TOOL_CAP_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}cap_mkdb | | 357 | TOOL_CAP_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}cap_mkdb |
357 | TOOL_CAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}cat | | 358 | TOOL_CAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}cat |
358 | TOOL_CKSUM= ${TOOLDIR}/bin/${_TOOL_PREFIX}cksum | | 359 | TOOL_CKSUM= ${TOOLDIR}/bin/${_TOOL_PREFIX}cksum |
359 | TOOL_CLANG_TBLGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}clang-tblgen | | 360 | TOOL_CLANG_TBLGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}clang-tblgen |
360 | TOOL_COMPILE_ET= ${TOOLDIR}/bin/${_TOOL_PREFIX}compile_et | | 361 | TOOL_COMPILE_ET= ${TOOLDIR}/bin/${_TOOL_PREFIX}compile_et |
361 | TOOL_CONFIG= ${TOOLDIR}/bin/${_TOOL_PREFIX}config | | 362 | TOOL_CONFIG= ${TOOLDIR}/bin/${_TOOL_PREFIX}config |
362 | TOOL_CRUNCHGEN= MAKE=${.MAKE:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}crunchgen | | 363 | TOOL_CRUNCHGEN= MAKE=${.MAKE:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}crunchgen |
363 | TOOL_CTAGS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctags | | 364 | TOOL_CTAGS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctags |
364 | TOOL_CTFCONVERT= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctfconvert | | 365 | TOOL_CTFCONVERT= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctfconvert |
365 | TOOL_CTFMERGE= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctfmerge | | 366 | TOOL_CTFMERGE= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctfmerge |
366 | TOOL_CVSLATEST= ${TOOLDIR}/bin/${_TOOL_PREFIX}cvslatest | | 367 | TOOL_CVSLATEST= ${TOOLDIR}/bin/${_TOOL_PREFIX}cvslatest |
367 | TOOL_DB= ${TOOLDIR}/bin/${_TOOL_PREFIX}db | | 368 | TOOL_DB= ${TOOLDIR}/bin/${_TOOL_PREFIX}db |
368 | TOOL_DISKLABEL= ${TOOLDIR}/bin/nbdisklabel | | 369 | TOOL_DISKLABEL= ${TOOLDIR}/bin/nbdisklabel |
369 | TOOL_EQN= ${TOOLDIR}/bin/${_TOOL_PREFIX}eqn | | 370 | TOOL_EQN= ${TOOLDIR}/bin/${_TOOL_PREFIX}eqn |
370 | TOOL_FDISK= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk | | 371 | TOOL_FDISK= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk |
371 | TOOL_FGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}fgen | | 372 | TOOL_FGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}fgen |
372 | TOOL_GENASSYM= ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym | | 373 | TOOL_GENASSYM= ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym |
373 | TOOL_GENCAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}gencat | | 374 | TOOL_GENCAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}gencat |
374 | TOOL_GMAKE= ${TOOLDIR}/bin/${_TOOL_PREFIX}gmake | | 375 | TOOL_GMAKE= ${TOOLDIR}/bin/${_TOOL_PREFIX}gmake |
375 | # grep exists in src/tools, but is not hooked up into the build. | | 376 | # grep exists in src/tools, but is not hooked up into the build. |
376 | #TOOL_GREP= ${TOOLDIR}/bin/${_TOOL_PREFIX}grep | | 377 | #TOOL_GREP= ${TOOLDIR}/bin/${_TOOL_PREFIX}grep |
377 | TOOL_GREP= grep | | 378 | TOOL_GREP= grep |
378 | TOOL_GROFF= PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}groff | | 379 | TOOL_GROFF= PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}groff |
379 | TOOL_HEXDUMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}hexdump | | 380 | TOOL_HEXDUMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}hexdump |
380 | TOOL_HP300MKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hp300-mkboot | | 381 | TOOL_HP300MKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hp300-mkboot |
381 | TOOL_HPPAMKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hppa-mkboot | | 382 | TOOL_HPPAMKBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}hppa-mkboot |
382 | TOOL_INDXBIB= ${TOOLDIR}/bin/${_TOOL_PREFIX}indxbib | | 383 | TOOL_INDXBIB= ${TOOLDIR}/bin/${_TOOL_PREFIX}indxbib |
383 | TOOL_INSTALLBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}installboot | | 384 | TOOL_INSTALLBOOT= ${TOOLDIR}/bin/${_TOOL_PREFIX}installboot |
384 | TOOL_INSTALL_INFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}install-info | | 385 | TOOL_INSTALL_INFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}install-info |
385 | TOOL_JOIN= ${TOOLDIR}/bin/${_TOOL_PREFIX}join | | 386 | TOOL_JOIN= ${TOOLDIR}/bin/${_TOOL_PREFIX}join |
386 | TOOL_LLVM_TBLGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}llvm-tblgen | | 387 | TOOL_LLVM_TBLGEN= ${TOOLDIR}/bin/${_TOOL_PREFIX}llvm-tblgen |
387 | TOOL_M4= ${TOOLDIR}/bin/${_TOOL_PREFIX}m4 | | 388 | TOOL_M4= ${TOOLDIR}/bin/${_TOOL_PREFIX}m4 |
388 | TOOL_MACPPCFIXCOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}macppc-fixcoff | | 389 | TOOL_MACPPCFIXCOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}macppc-fixcoff |
389 | TOOL_MAKEFS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makefs | | 390 | TOOL_MAKEFS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makefs |
390 | TOOL_MAKEINFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}makeinfo | | 391 | TOOL_MAKEINFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}makeinfo |
391 | TOOL_MAKEKEYS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makekeys | | 392 | TOOL_MAKEKEYS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makekeys |
392 | TOOL_MAKESTRS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makestrs | | 393 | TOOL_MAKESTRS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makestrs |
393 | TOOL_MAKEWHATIS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makewhatis | | 394 | TOOL_MAKEWHATIS= ${TOOLDIR}/bin/${_TOOL_PREFIX}makewhatis |
394 | TOOL_MANDOC_ASCII= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tascii | | 395 | TOOL_MANDOC_ASCII= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tascii |
395 | TOOL_MANDOC_HTML= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Thtml | | 396 | TOOL_MANDOC_HTML= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Thtml |
396 | TOOL_MANDOC_LINT= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tlint | | 397 | TOOL_MANDOC_LINT= ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tlint |
397 | TOOL_MDSETIMAGE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-mdsetimage | | 398 | TOOL_MDSETIMAGE= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-mdsetimage |
398 | TOOL_MENUC= MENUDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}menuc | | 399 | TOOL_MENUC= MENUDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}menuc |
399 | TOOL_M68KELF2AOUT= ${TOOLDIR}/bin/${_TOOL_PREFIX}m68k-elf2aout | | 400 | TOOL_M68KELF2AOUT= ${TOOLDIR}/bin/${_TOOL_PREFIX}m68k-elf2aout |
400 | TOOL_MIPSELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff | | 401 | TOOL_MIPSELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff |
401 | TOOL_MKCSMAPPER= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkcsmapper | | 402 | TOOL_MKCSMAPPER= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkcsmapper |
402 | TOOL_MKESDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkesdb | | 403 | TOOL_MKESDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkesdb |
403 | TOOL_MKLOCALE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mklocale | | 404 | TOOL_MKLOCALE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mklocale |
404 | TOOL_MKMAGIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}file | | 405 | TOOL_MKMAGIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}file |
405 | TOOL_MKNOD= ${TOOLDIR}/bin/${_TOOL_PREFIX}mknod | | 406 | TOOL_MKNOD= ${TOOLDIR}/bin/${_TOOL_PREFIX}mknod |
406 | TOOL_MKTEMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}mktemp | | 407 | TOOL_MKTEMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}mktemp |
407 | TOOL_MKUBOOTIMAGE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkubootimage | | 408 | TOOL_MKUBOOTIMAGE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkubootimage |
408 | TOOL_ELFTOSB= ${TOOLDIR}/bin/${_TOOL_PREFIX}elftosb | | 409 | TOOL_ELFTOSB= ${TOOLDIR}/bin/${_TOOL_PREFIX}elftosb |
409 | TOOL_MSGC= MSGDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}msgc | | 410 | TOOL_MSGC= MSGDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}msgc |
410 | TOOL_MTREE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mtree | | 411 | TOOL_MTREE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mtree |
411 | TOOL_NBPERF= ${TOOLDIR}/bin/${_TOOL_PREFIX}perf | | 412 | TOOL_NBPERF= ${TOOLDIR}/bin/${_TOOL_PREFIX}perf |
412 | TOOL_NCDCS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ibmnws-ncdcs | | 413 | TOOL_NCDCS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ibmnws-ncdcs |
413 | TOOL_PAX= ${TOOLDIR}/bin/${_TOOL_PREFIX}pax | | 414 | TOOL_PAX= ${TOOLDIR}/bin/${_TOOL_PREFIX}pax |
414 | TOOL_PIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}pic | | 415 | TOOL_PIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}pic |
415 | TOOL_PIGZ= ${TOOLDIR}/bin/${_TOOL_PREFIX}pigz | | 416 | TOOL_PIGZ= ${TOOLDIR}/bin/${_TOOL_PREFIX}pigz |
416 | TOOL_PKG_CREATE= ${TOOLDIR}/bin/${_TOOL_PREFIX}pkg_create | | 417 | TOOL_PKG_CREATE= ${TOOLDIR}/bin/${_TOOL_PREFIX}pkg_create |
417 | TOOL_POWERPCMKBOOTIMAGE=${TOOLDIR}/bin/${_TOOL_PREFIX}powerpc-mkbootimage | | 418 | TOOL_POWERPCMKBOOTIMAGE=${TOOLDIR}/bin/${_TOOL_PREFIX}powerpc-mkbootimage |
418 | TOOL_PWD_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}pwd_mkdb | | 419 | TOOL_PWD_MKDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}pwd_mkdb |
419 | TOOL_REFER= ${TOOLDIR}/bin/${_TOOL_PREFIX}refer | | 420 | TOOL_REFER= ${TOOLDIR}/bin/${_TOOL_PREFIX}refer |
420 | TOOL_ROFF_ASCII= PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}nroff | | 421 | TOOL_ROFF_ASCII= PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}nroff |
421 | TOOL_ROFF_DOCASCII= ${TOOL_GROFF} -Tascii | | 422 | TOOL_ROFF_DOCASCII= ${TOOL_GROFF} -Tascii |
422 | TOOL_ROFF_DOCHTML= ${TOOL_GROFF} -Thtml | | 423 | TOOL_ROFF_DOCHTML= ${TOOL_GROFF} -Thtml |
423 | TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi | | 424 | TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi |
424 | TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html | | 425 | TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html |
425 | TOOL_ROFF_PS= ${TOOL_GROFF} -Tps | | 426 | TOOL_ROFF_PS= ${TOOL_GROFF} -Tps |
426 | TOOL_ROFF_RAW= ${TOOL_GROFF} -Z | | 427 | TOOL_ROFF_RAW= ${TOOL_GROFF} -Z |
427 | TOOL_RPCGEN= RPCGEN_CPP=${CPP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}rpcgen | | 428 | TOOL_RPCGEN= RPCGEN_CPP=${CPP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}rpcgen |
428 | TOOL_SED= ${TOOLDIR}/bin/${_TOOL_PREFIX}sed | | 429 | TOOL_SED= ${TOOLDIR}/bin/${_TOOL_PREFIX}sed |
429 | TOOL_SLC= ${TOOLDIR}/bin/${_TOOL_PREFIX}slc | | 430 | TOOL_SLC= ${TOOLDIR}/bin/${_TOOL_PREFIX}slc |
430 | TOOL_SOELIM= ${TOOLDIR}/bin/${_TOOL_PREFIX}soelim | | 431 | TOOL_SOELIM= ${TOOLDIR}/bin/${_TOOL_PREFIX}soelim |
431 | TOOL_SORTINFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}sortinfo | | 432 | TOOL_SORTINFO= ${TOOLDIR}/bin/${_TOOL_PREFIX}sortinfo |
432 | TOOL_SPARKCRC= ${TOOLDIR}/bin/${_TOOL_PREFIX}sparkcrc | | 433 | TOOL_SPARKCRC= ${TOOLDIR}/bin/${_TOOL_PREFIX}sparkcrc |
433 | TOOL_STAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}stat | | 434 | TOOL_STAT= ${TOOLDIR}/bin/${_TOOL_PREFIX}stat |
434 | TOOL_STRFILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}strfile | | 435 | TOOL_STRFILE= ${TOOLDIR}/bin/${_TOOL_PREFIX}strfile |
435 | TOOL_SUNLABEL= ${TOOLDIR}/bin/${_TOOL_PREFIX}sunlabel | | 436 | TOOL_SUNLABEL= ${TOOLDIR}/bin/${_TOOL_PREFIX}sunlabel |
436 | TOOL_TBL= ${TOOLDIR}/bin/${_TOOL_PREFIX}tbl | | 437 | TOOL_TBL= ${TOOLDIR}/bin/${_TOOL_PREFIX}tbl |
437 | TOOL_TIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}tic | | 438 | TOOL_TIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}tic |
438 | TOOL_UUDECODE= ${TOOLDIR}/bin/${_TOOL_PREFIX}uudecode | | 439 | TOOL_UUDECODE= ${TOOLDIR}/bin/${_TOOL_PREFIX}uudecode |
439 | TOOL_VGRIND= ${TOOLDIR}/bin/${_TOOL_PREFIX}vgrind -f | | 440 | TOOL_VGRIND= ${TOOLDIR}/bin/${_TOOL_PREFIX}vgrind -f |
440 | TOOL_VFONTEDPR= ${TOOLDIR}/libexec/${_TOOL_PREFIX}vfontedpr | | 441 | TOOL_VFONTEDPR= ${TOOLDIR}/libexec/${_TOOL_PREFIX}vfontedpr |
441 | TOOL_ZIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}zic | | 442 | TOOL_ZIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}zic |
442 | | | 443 | |
443 | .else # USETOOLS != yes # } { | | 444 | .else # USETOOLS != yes # } { |
444 | | | 445 | |
445 | # Clang supports C, C++ and Objective C | | 446 | # Clang supports C, C++ and Objective C |
446 | TOOL_CC.clang= clang | | 447 | TOOL_CC.clang= clang |
447 | TOOL_CPP.clang= clang-cpp | | 448 | TOOL_CPP.clang= clang-cpp |
448 | TOOL_CXX.clang= clang++ | | 449 | TOOL_CXX.clang= clang++ |
449 | TOOL_OBJC.clang= clang | | 450 | TOOL_OBJC.clang= clang |
450 | | | 451 | |
451 | # GCC supports C, C++, Fortran and Objective C | | 452 | # GCC supports C, C++, Fortran and Objective C |
452 | TOOL_CC.gcc= gcc | | 453 | TOOL_CC.gcc= gcc |
453 | TOOL_CPP.gcc= cpp | | 454 | TOOL_CPP.gcc= cpp |
454 | TOOL_CXX.gcc= c++ | | 455 | TOOL_CXX.gcc= c++ |
455 | TOOL_FC.gcc= g77 | | 456 | TOOL_FC.gcc= g77 |
456 | TOOL_OBJC.gcc= gcc | | 457 | TOOL_OBJC.gcc= gcc |
457 | | | 458 | |
458 | # PCC supports C and Fortran | | 459 | # PCC supports C and Fortran |
459 | TOOL_CC.pcc= pcc | | 460 | TOOL_CC.pcc= pcc |
460 | TOOL_CPP.pcc= pcpp | | 461 | TOOL_CPP.pcc= pcpp |
461 | TOOL_CXX.pcc= p++ | | 462 | TOOL_CXX.pcc= p++ |
462 | | | 463 | |
463 | TOOL_AMIGAAOUT2BB= amiga-aout2bb | | 464 | TOOL_AMIGAAOUT2BB= amiga-aout2bb |
464 | TOOL_AMIGAELF2BB= amiga-elf2bb | | 465 | TOOL_AMIGAELF2BB= amiga-elf2bb |
465 | TOOL_AMIGATXLT= amiga-txlt | | 466 | TOOL_AMIGATXLT= amiga-txlt |
466 | TOOL_ASN1_COMPILE= asn1_compile | | 467 | TOOL_ASN1_COMPILE= asn1_compile |
467 | TOOL_AWK= awk | | 468 | TOOL_AWK= awk |
468 | TOOL_CAP_MKDB= cap_mkdb | | 469 | TOOL_CAP_MKDB= cap_mkdb |
469 | TOOL_CAT= cat | | 470 | TOOL_CAT= cat |
470 | TOOL_CKSUM= cksum | | 471 | TOOL_CKSUM= cksum |
471 | TOOL_CLANG_TBLGEN= clang-tblgen | | 472 | TOOL_CLANG_TBLGEN= clang-tblgen |
472 | TOOL_COMPILE_ET= compile_et | | 473 | TOOL_COMPILE_ET= compile_et |
473 | TOOL_CONFIG= config | | 474 | TOOL_CONFIG= config |
474 | TOOL_CRUNCHGEN= crunchgen | | 475 | TOOL_CRUNCHGEN= crunchgen |
475 | TOOL_CTAGS= ctags | | 476 | TOOL_CTAGS= ctags |
476 | TOOL_CTFCONVERT= ctfconvert | | 477 | TOOL_CTFCONVERT= ctfconvert |
477 | TOOL_CTFMERGE= ctfmerge | | 478 | TOOL_CTFMERGE= ctfmerge |
478 | TOOL_CVSLATEST= cvslatest | | 479 | TOOL_CVSLATEST= cvslatest |
479 | TOOL_DB= db | | 480 | TOOL_DB= db |
480 | TOOL_DISKLABEL= disklabel | | 481 | TOOL_DISKLABEL= disklabel |
481 | TOOL_EQN= eqn | | 482 | TOOL_EQN= eqn |
482 | TOOL_FDISK= fdisk | | 483 | TOOL_FDISK= fdisk |
483 | TOOL_FGEN= fgen | | 484 | TOOL_FGEN= fgen |
484 | TOOL_GENASSYM= genassym | | 485 | TOOL_GENASSYM= genassym |
485 | TOOL_GENCAT= gencat | | 486 | TOOL_GENCAT= gencat |
486 | TOOL_GMAKE= gmake | | 487 | TOOL_GMAKE= gmake |
487 | TOOL_GREP= grep | | 488 | TOOL_GREP= grep |
488 | TOOL_GROFF= groff | | 489 | TOOL_GROFF= groff |
489 | TOOL_HEXDUMP= hexdump | | 490 | TOOL_HEXDUMP= hexdump |
490 | TOOL_HP300MKBOOT= hp300-mkboot | | 491 | TOOL_HP300MKBOOT= hp300-mkboot |
491 | TOOL_HPPAMKBOOT= hppa-mkboot | | 492 | TOOL_HPPAMKBOOT= hppa-mkboot |
492 | TOOL_INDXBIB= indxbib | | 493 | TOOL_INDXBIB= indxbib |
493 | TOOL_INSTALLBOOT= installboot | | 494 | TOOL_INSTALLBOOT= installboot |
494 | TOOL_INSTALL_INFO= install-info | | 495 | TOOL_INSTALL_INFO= install-info |
495 | TOOL_JOIN= join | | 496 | TOOL_JOIN= join |
496 | TOOL_LLVM_TBLGEN= llvm-tblgen | | 497 | TOOL_LLVM_TBLGEN= llvm-tblgen |
497 | TOOL_M4= m4 | | 498 | TOOL_M4= m4 |
498 | TOOL_MACPPCFIXCOFF= macppc-fixcoff | | 499 | TOOL_MACPPCFIXCOFF= macppc-fixcoff |
499 | TOOL_MAKEFS= makefs | | 500 | TOOL_MAKEFS= makefs |
500 | TOOL_MAKEINFO= makeinfo | | 501 | TOOL_MAKEINFO= makeinfo |
501 | TOOL_MAKEKEYS= makekeys | | 502 | TOOL_MAKEKEYS= makekeys |
502 | TOOL_MAKESTRS= makestrs | | 503 | TOOL_MAKESTRS= makestrs |
503 | TOOL_MAKEWHATIS= /usr/libexec/makewhatis | | 504 | TOOL_MAKEWHATIS= /usr/libexec/makewhatis |
504 | TOOL_MANDOC_ASCII= mandoc -Tascii | | 505 | TOOL_MANDOC_ASCII= mandoc -Tascii |
505 | TOOL_MANDOC_HTML= mandoc -Thtml | | 506 | TOOL_MANDOC_HTML= mandoc -Thtml |
506 | TOOL_MANDOC_LINT= mandoc -Tlint | | 507 | TOOL_MANDOC_LINT= mandoc -Tlint |
507 | TOOL_MDSETIMAGE= mdsetimage | | 508 | TOOL_MDSETIMAGE= mdsetimage |
508 | TOOL_MENUC= menuc | | 509 | TOOL_MENUC= menuc |
509 | TOOL_M68KELF2AOUT= m68k-elf2aout | | 510 | TOOL_M68KELF2AOUT= m68k-elf2aout |
510 | TOOL_MIPSELF2ECOFF= mips-elf2ecoff | | 511 | TOOL_MIPSELF2ECOFF= mips-elf2ecoff |
511 | TOOL_MKCSMAPPER= mkcsmapper | | 512 | TOOL_MKCSMAPPER= mkcsmapper |
512 | TOOL_MKESDB= mkesdb | | 513 | TOOL_MKESDB= mkesdb |
513 | TOOL_MKLOCALE= mklocale | | 514 | TOOL_MKLOCALE= mklocale |
514 | TOOL_MKMAGIC= file | | 515 | TOOL_MKMAGIC= file |
515 | TOOL_MKNOD= mknod | | 516 | TOOL_MKNOD= mknod |
516 | TOOL_MKTEMP= mktemp | | 517 | TOOL_MKTEMP= mktemp |
517 | TOOL_MKUBOOTIMAGE= mkubootimage | | 518 | TOOL_MKUBOOTIMAGE= mkubootimage |
518 | TOOL_ELFTOSB= elftosb | | 519 | TOOL_ELFTOSB= elftosb |
519 | TOOL_MSGC= msgc | | 520 | TOOL_MSGC= msgc |
520 | TOOL_MTREE= mtree | | 521 | TOOL_MTREE= mtree |
521 | TOOL_NBPERF= nbperf | | 522 | TOOL_NBPERF= nbperf |
522 | TOOL_NCDCS= ncdcs | | 523 | TOOL_NCDCS= ncdcs |
523 | TOOL_PAX= pax | | 524 | TOOL_PAX= pax |
524 | TOOL_PIC= pic | | 525 | TOOL_PIC= pic |
525 | TOOL_PIGZ= pigz | | 526 | TOOL_PIGZ= pigz |
526 | TOOL_PKG_CREATE= pkg_create | | 527 | TOOL_PKG_CREATE= pkg_create |
527 | TOOL_POWERPCMKBOOTIMAGE= powerpc-mkbootimage | | 528 | TOOL_POWERPCMKBOOTIMAGE= powerpc-mkbootimage |
528 | TOOL_PWD_MKDB= pwd_mkdb | | 529 | TOOL_PWD_MKDB= pwd_mkdb |
529 | TOOL_REFER= refer | | 530 | TOOL_REFER= refer |
530 | TOOL_ROFF_ASCII= nroff | | 531 | TOOL_ROFF_ASCII= nroff |
531 | TOOL_ROFF_DOCASCII= ${TOOL_GROFF} -Tascii | | 532 | TOOL_ROFF_DOCASCII= ${TOOL_GROFF} -Tascii |
532 | TOOL_ROFF_DOCHTML= ${TOOL_GROFF} -Thtml | | 533 | TOOL_ROFF_DOCHTML= ${TOOL_GROFF} -Thtml |
533 | TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi | | 534 | TOOL_ROFF_DVI= ${TOOL_GROFF} -Tdvi |
534 | TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html | | 535 | TOOL_ROFF_HTML= ${TOOL_GROFF} -Tlatin1 -mdoc2html |
535 | TOOL_ROFF_PS= ${TOOL_GROFF} -Tps | | 536 | TOOL_ROFF_PS= ${TOOL_GROFF} -Tps |
536 | TOOL_ROFF_RAW= ${TOOL_GROFF} -Z | | 537 | TOOL_ROFF_RAW= ${TOOL_GROFF} -Z |
537 | TOOL_RPCGEN= rpcgen | | 538 | TOOL_RPCGEN= rpcgen |
538 | TOOL_SED= sed | | 539 | TOOL_SED= sed |
539 | TOOL_SOELIM= soelim | | 540 | TOOL_SOELIM= soelim |
540 | TOOL_SORTINFO= sortinfo | | 541 | TOOL_SORTINFO= sortinfo |
541 | TOOL_SPARKCRC= sparkcrc | | 542 | TOOL_SPARKCRC= sparkcrc |
542 | TOOL_STAT= stat | | 543 | TOOL_STAT= stat |
543 | TOOL_STRFILE= strfile | | 544 | TOOL_STRFILE= strfile |
544 | TOOL_SUNLABEL= sunlabel | | 545 | TOOL_SUNLABEL= sunlabel |
545 | TOOL_TBL= tbl | | 546 | TOOL_TBL= tbl |
546 | TOOL_TIC= tic | | 547 | TOOL_TIC= tic |
547 | TOOL_UUDECODE= uudecode | | 548 | TOOL_UUDECODE= uudecode |
548 | TOOL_VGRIND= vgrind -f | | 549 | TOOL_VGRIND= vgrind -f |
549 | TOOL_VFONTEDPR= /usr/libexec/vfontedpr | | 550 | TOOL_VFONTEDPR= /usr/libexec/vfontedpr |
550 | TOOL_ZIC= zic | | 551 | TOOL_ZIC= zic |
551 | | | 552 | |
552 | .endif # USETOOLS != yes # } | | 553 | .endif # USETOOLS != yes # } |
553 | | | 554 | |
554 | # Standalone code should not be compiled with PIE or CTF | | 555 | # Standalone code should not be compiled with PIE or CTF |
555 | # Should create a better test | | 556 | # Should create a better test |
556 | .if defined(BINDIR) && ${BINDIR} == "/usr/mdec" | | 557 | .if defined(BINDIR) && ${BINDIR} == "/usr/mdec" |
557 | NOPIE= # defined | | 558 | NOPIE= # defined |
558 | NOCTF= # defined | | 559 | NOCTF= # defined |
559 | .endif | | 560 | .endif |
560 | | | 561 | |
561 | # Fallback to ensure that all variables are defined to something | | 562 | # Fallback to ensure that all variables are defined to something |
562 | TOOL_CC.false= false | | 563 | TOOL_CC.false= false |
563 | TOOL_CPP.false= false | | 564 | TOOL_CPP.false= false |
564 | TOOL_CXX.false= false | | 565 | TOOL_CXX.false= false |
565 | TOOL_FC.false= false | | 566 | TOOL_FC.false= false |
566 | TOOL_OBJC.false= false | | 567 | TOOL_OBJC.false= false |
567 | | | 568 | |
568 | AVAILABLE_COMPILER?= ${HAVE_PCC:Dpcc} ${HAVE_LLVM:Dclang} ${HAVE_GCC:Dgcc} ${EXTERNAL_TOOLCHAIN:Dgcc} false | | 569 | AVAILABLE_COMPILER?= ${HAVE_PCC:Dpcc} ${HAVE_LLVM:Dclang} ${HAVE_GCC:Dgcc} ${EXTERNAL_TOOLCHAIN:Dgcc} false |
569 | | | 570 | |
570 | .for _t in CC CPP CXX FC OBJC | | 571 | .for _t in CC CPP CXX FC OBJC |
571 | ACTIVE_${_t}= ${AVAILABLE_COMPILER:@.c.@ ${ !defined(UNSUPPORTED_COMPILER.${.c.}) && defined(TOOL_${_t}.${.c.}) :? ${.c.} : }@:[1]} | | 572 | ACTIVE_${_t}= ${AVAILABLE_COMPILER:@.c.@ ${ !defined(UNSUPPORTED_COMPILER.${.c.}) && defined(TOOL_${_t}.${.c.}) :? ${.c.} : }@:[1]} |
572 | SUPPORTED_${_t}=${AVAILABLE_COMPILER:Nfalse:@.c.@ ${ !defined(UNSUPPORTED_COMPILER.${.c.}) && defined(TOOL_${_t}.${.c.}) :? ${.c.} : }@} | | 573 | SUPPORTED_${_t}=${AVAILABLE_COMPILER:Nfalse:@.c.@ ${ !defined(UNSUPPORTED_COMPILER.${.c.}) && defined(TOOL_${_t}.${.c.}) :? ${.c.} : }@} |
573 | .endfor | | 574 | .endfor |
574 | # make bugs prevent moving this into the .for loop | | 575 | # make bugs prevent moving this into the .for loop |
575 | CC= ${TOOL_CC.${ACTIVE_CC}} | | 576 | CC= ${TOOL_CC.${ACTIVE_CC}} |
576 | CPP= ${TOOL_CPP.${ACTIVE_CPP}} | | 577 | CPP= ${TOOL_CPP.${ACTIVE_CPP}} |
577 | CXX= ${TOOL_CXX.${ACTIVE_CXX}} | | 578 | CXX= ${TOOL_CXX.${ACTIVE_CXX}} |
578 | FC= ${TOOL_FC.${ACTIVE_FC}} | | 579 | FC= ${TOOL_FC.${ACTIVE_FC}} |
579 | OBJC= ${TOOL_OBJC.${ACTIVE_OBJC}} | | 580 | OBJC= ${TOOL_OBJC.${ACTIVE_OBJC}} |
580 | | | 581 | |
581 | # For each ${MACHINE_CPU}, list the ports that use it. | | 582 | # For each ${MACHINE_CPU}, list the ports that use it. |
582 | MACHINES.aarch64= evbarm64 | | 583 | MACHINES.aarch64= evbarm64 |
583 | MACHINES.alpha= alpha | | 584 | MACHINES.alpha= alpha |
584 | MACHINES.arm= acorn26 acorn32 cats epoc32 evbarm hpcarm \ | | 585 | MACHINES.arm= acorn26 acorn32 cats epoc32 evbarm hpcarm \ |
585 | iyonix netwinder shark zaurus | | 586 | iyonix netwinder shark zaurus |
586 | MACHINES.coldfire= evbcf | | 587 | MACHINES.coldfire= evbcf |
587 | MACHINES.i386= i386 | | 588 | MACHINES.i386= i386 |
588 | MACHINES.ia64= ia64 | | 589 | MACHINES.ia64= ia64 |
589 | MACHINES.hppa= hppa | | 590 | MACHINES.hppa= hppa |
590 | MACHINES.m68000= sun2 | | 591 | MACHINES.m68000= sun2 |
591 | MACHINES.m68k= amiga atari cesfic hp300 luna68k mac68k \ | | 592 | MACHINES.m68k= amiga atari cesfic hp300 luna68k mac68k \ |
592 | news68k next68k sun3 x68k | | 593 | news68k next68k sun3 x68k |
593 | MACHINES.mips= arc cobalt algor cobalt emips evbmips ews4800mips \ | | 594 | MACHINES.mips= arc cobalt algor cobalt emips evbmips ews4800mips \ |
594 | hpcmips mipsco newsmips pmax sbmips sgimips | | 595 | hpcmips mipsco newsmips pmax sbmips sgimips |
595 | MACHINES.or1k= or1k | | 596 | MACHINES.or1k= or1k |
596 | MACHINES.powerpc= amigappc bebox evbppc ibmnws macppc mvmeppc \ | | 597 | MACHINES.powerpc= amigappc bebox evbppc ibmnws macppc mvmeppc \ |
597 | ofppc prep rs6000 sandpoint | | 598 | ofppc prep rs6000 sandpoint |
598 | MACHINES.riscv= riscv | | 599 | MACHINES.riscv= riscv |
599 | MACHINES.sh3= dreamcast evbsh3 hpcsh landisk mmeye | | 600 | MACHINES.sh3= dreamcast evbsh3 hpcsh landisk mmeye |
600 | MACHINES.sparc= sparc sparc64 | | 601 | MACHINES.sparc= sparc sparc64 |
601 | MACHINES.sparc64= sparc64 | | 602 | MACHINES.sparc64= sparc64 |
602 | MACHINES.vax= vax | | 603 | MACHINES.vax= vax |
603 | MACHINES.x86_64= amd64 | | 604 | MACHINES.x86_64= amd64 |
604 | | | 605 | |
605 | # for crunchide & ldd, define the OBJECT_FMTS used by a MACHINE_ARCH | | 606 | # for crunchide & ldd, define the OBJECT_FMTS used by a MACHINE_ARCH |
606 | # | | 607 | # |
607 | OBJECT_FMTS= | | 608 | OBJECT_FMTS= |
608 | .if ${MACHINE_ARCH} != "alpha" | | 609 | .if ${MACHINE_ARCH} != "alpha" |
609 | OBJECT_FMTS+= elf32 | | 610 | OBJECT_FMTS+= elf32 |
610 | .endif | | 611 | .endif |
611 | .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH:M*64*} != "" | | 612 | .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH:M*64*} != "" |
612 | OBJECT_FMTS+= elf64 | | 613 | OBJECT_FMTS+= elf64 |
613 | .endif | | 614 | .endif |
614 | | | 615 | |
615 | # OBJCOPY flags to create a.out binaries for old firmware | | 616 | # OBJCOPY flags to create a.out binaries for old firmware |
616 | # shared among src/distrib and ${MACHINE}/conf/Makefile.${MACHINE}.inc | | 617 | # shared among src/distrib and ${MACHINE}/conf/Makefile.${MACHINE}.inc |
617 | .if ${MACHINE_CPU} == "arm" | | 618 | .if ${MACHINE_CPU} == "arm" |
618 | OBJCOPY_ELF2AOUT_FLAGS?= \ | | 619 | OBJCOPY_ELF2AOUT_FLAGS?= \ |
619 | -O a.out-arm-netbsd \ | | 620 | -O a.out-arm-netbsd \ |
620 | -R .ident \ | | 621 | -R .ident \ |
621 | -R .ARM.attributes \ | | 622 | -R .ARM.attributes \ |
622 | -R .ARM.exidx \ | | 623 | -R .ARM.exidx \ |
623 | -R .ARM.extab \ | | 624 | -R .ARM.extab \ |
624 | -R .SUNW_ctf \ | | 625 | -R .SUNW_ctf \ |
625 | -R .arm.atpcs \ | | 626 | -R .arm.atpcs \ |
626 | -R .comment \ | | 627 | -R .comment \ |
627 | -R .debug_abbrev \ | | 628 | -R .debug_abbrev \ |
628 | -R .debug_aranges \ | | 629 | -R .debug_aranges \ |
629 | -R .debug_info \ | | 630 | -R .debug_info \ |
630 | -R .debug_line \ | | 631 | -R .debug_line \ |
631 | -R .debug_frame \ | | 632 | -R .debug_frame \ |
632 | -R .debug_loc \ | | 633 | -R .debug_loc \ |
633 | -R .debug_pubnames \ | | 634 | -R .debug_pubnames \ |
634 | -R .debug_pubtypes \ | | 635 | -R .debug_pubtypes \ |
635 | -R .debug_ranges \ | | 636 | -R .debug_ranges \ |
636 | -R .debug_str \ | | 637 | -R .debug_str \ |
637 | -R .eh_frame \ | | 638 | -R .eh_frame \ |
638 | -R .note.netbsd.ident | | 639 | -R .note.netbsd.ident |
639 | .endif | | 640 | .endif |
640 | | | 641 | |
641 | # | | 642 | # |
642 | # Targets to check if DESTDIR or RELEASEDIR is provided | | 643 | # Targets to check if DESTDIR or RELEASEDIR is provided |
643 | # | | 644 | # |
644 | .if !target(check_DESTDIR) | | 645 | .if !target(check_DESTDIR) |
645 | check_DESTDIR: .PHONY .NOTMAIN | | 646 | check_DESTDIR: .PHONY .NOTMAIN |
646 | .if !defined(DESTDIR) | | 647 | .if !defined(DESTDIR) |
647 | @echo "setenv DESTDIR before doing that!" | | 648 | @echo "setenv DESTDIR before doing that!" |
648 | @false | | 649 | @false |
649 | .else | | 650 | .else |
650 | @true | | 651 | @true |
651 | .endif | | 652 | .endif |
652 | .endif | | 653 | .endif |
653 | | | 654 | |
654 | .if !target(check_RELEASEDIR) | | 655 | .if !target(check_RELEASEDIR) |
655 | check_RELEASEDIR: .PHONY .NOTMAIN | | 656 | check_RELEASEDIR: .PHONY .NOTMAIN |
656 | .if !defined(RELEASEDIR) | | 657 | .if !defined(RELEASEDIR) |
657 | @echo "setenv RELEASEDIR before doing that!" | | 658 | @echo "setenv RELEASEDIR before doing that!" |
658 | @false | | 659 | @false |
659 | .else | | 660 | .else |
660 | @true | | 661 | @true |
661 | .endif | | 662 | .endif |
662 | .endif | | 663 | .endif |
663 | | | 664 | |
664 | # | | 665 | # |
665 | # Build a dynamically linked /bin and /sbin, with the necessary shared | | 666 | # Build a dynamically linked /bin and /sbin, with the necessary shared |
666 | # libraries moved from /usr/lib to /lib and the shared linker moved | | 667 | # libraries moved from /usr/lib to /lib and the shared linker moved |
667 | # from /usr/libexec to /lib | | 668 | # from /usr/libexec to /lib |
668 | # | | 669 | # |
669 | # Note that if the BINDIR is not /bin or /sbin, then we always use the | | 670 | # Note that if the BINDIR is not /bin or /sbin, then we always use the |
670 | # non-DYNAMICROOT behavior (i.e. it is only enabled for programs in /bin | | 671 | # non-DYNAMICROOT behavior (i.e. it is only enabled for programs in /bin |
671 | # and /sbin). See <bsd.shlib.mk>. | | 672 | # and /sbin). See <bsd.shlib.mk>. |
672 | # | | 673 | # |
673 | MKDYNAMICROOT?= yes | | 674 | MKDYNAMICROOT?= yes |
674 | | | 675 | |
675 | # | | 676 | # |
676 | # Where the system object and source trees are kept; can be configurable | | 677 | # Where the system object and source trees are kept; can be configurable |
677 | # by the user in case they want them in ~/foosrc and ~/fooobj (for example). | | 678 | # by the user in case they want them in ~/foosrc and ~/fooobj (for example). |
678 | # | | 679 | # |
679 | BSDSRCDIR?= /usr/src | | 680 | BSDSRCDIR?= /usr/src |
680 | BSDOBJDIR?= /usr/obj | | 681 | BSDOBJDIR?= /usr/obj |
681 | NETBSDSRCDIR?= ${BSDSRCDIR} | | 682 | NETBSDSRCDIR?= ${BSDSRCDIR} |
682 | | | 683 | |
683 | BINGRP?= wheel | | 684 | BINGRP?= wheel |
684 | BINOWN?= root | | 685 | BINOWN?= root |
685 | BINMODE?= 555 | | 686 | BINMODE?= 555 |
686 | NONBINMODE?= 444 | | 687 | NONBINMODE?= 444 |
687 | | | 688 | |
688 | # These are here mainly because we don't want suid root in case | | 689 | # These are here mainly because we don't want suid root in case |
689 | # a Makefile defines BINMODE. | | 690 | # a Makefile defines BINMODE. |
690 | RUMPBINGRP?= wheel | | 691 | RUMPBINGRP?= wheel |
691 | RUMPBINOWN?= root | | 692 | RUMPBINOWN?= root |
692 | RUMPBINMODE?= 555 | | 693 | RUMPBINMODE?= 555 |
693 | RUMPNONBINMODE?=444 | | 694 | RUMPNONBINMODE?=444 |
694 | | | 695 | |
695 | MANDIR?= /usr/share/man | | 696 | MANDIR?= /usr/share/man |
696 | MANGRP?= wheel | | 697 | MANGRP?= wheel |
697 | MANOWN?= root | | 698 | MANOWN?= root |
698 | MANMODE?= ${NONBINMODE} | | 699 | MANMODE?= ${NONBINMODE} |
699 | MANINSTALL?= ${_MANINSTALL} | | 700 | MANINSTALL?= ${_MANINSTALL} |
700 | | | 701 | |
701 | INFODIR?= /usr/share/info | | 702 | INFODIR?= /usr/share/info |
702 | INFOGRP?= wheel | | 703 | INFOGRP?= wheel |
703 | INFOOWN?= root | | 704 | INFOOWN?= root |
704 | INFOMODE?= ${NONBINMODE} | | 705 | INFOMODE?= ${NONBINMODE} |
705 | | | 706 | |
706 | LIBDIR?= /usr/lib | | 707 | LIBDIR?= /usr/lib |
707 | | | 708 | |
708 | LINTLIBDIR?= /usr/libdata/lint | | 709 | LINTLIBDIR?= /usr/libdata/lint |
709 | LIBGRP?= ${BINGRP} | | 710 | LIBGRP?= ${BINGRP} |
710 | LIBOWN?= ${BINOWN} | | 711 | LIBOWN?= ${BINOWN} |
711 | LIBMODE?= ${NONBINMODE} | | 712 | LIBMODE?= ${NONBINMODE} |
712 | | | 713 | |
713 | DOCDIR?= /usr/share/doc | | 714 | DOCDIR?= /usr/share/doc |
714 | DOCGRP?= wheel | | 715 | DOCGRP?= wheel |
715 | DOCOWN?= root | | 716 | DOCOWN?= root |
716 | DOCMODE?= ${NONBINMODE} | | 717 | DOCMODE?= ${NONBINMODE} |
717 | | | 718 | |
718 | NLSDIR?= /usr/share/nls | | 719 | NLSDIR?= /usr/share/nls |
719 | NLSGRP?= wheel | | 720 | NLSGRP?= wheel |
720 | NLSOWN?= root | | 721 | NLSOWN?= root |
721 | NLSMODE?= ${NONBINMODE} | | 722 | NLSMODE?= ${NONBINMODE} |
722 | | | 723 | |
723 | KMODULEGRP?= wheel | | 724 | KMODULEGRP?= wheel |
724 | KMODULEOWN?= root | | 725 | KMODULEOWN?= root |
725 | KMODULEMODE?= ${NONBINMODE} | | 726 | KMODULEMODE?= ${NONBINMODE} |
726 | | | 727 | |
727 | LOCALEDIR?= /usr/share/locale | | 728 | LOCALEDIR?= /usr/share/locale |
728 | LOCALEGRP?= wheel | | 729 | LOCALEGRP?= wheel |
729 | LOCALEOWN?= root | | 730 | LOCALEOWN?= root |
730 | LOCALEMODE?= ${NONBINMODE} | | 731 | LOCALEMODE?= ${NONBINMODE} |
731 | | | 732 | |
732 | FIRMWAREDIR?= /libdata/firmware | | 733 | FIRMWAREDIR?= /libdata/firmware |
733 | FIRMWAREGRP?= wheel | | 734 | FIRMWAREGRP?= wheel |
734 | FIRMWAREOWN?= root | | 735 | FIRMWAREOWN?= root |
735 | FIRMWAREMODE?= ${NONBINMODE} | | 736 | FIRMWAREMODE?= ${NONBINMODE} |
736 | | | 737 | |
737 | DEBUGDIR?= /usr/libdata/debug | | 738 | DEBUGDIR?= /usr/libdata/debug |
738 | DEBUGGRP?= wheel | | 739 | DEBUGGRP?= wheel |
739 | DEBUGOWN?= root | | 740 | DEBUGOWN?= root |
740 | DEBUGMODE?= ${NONBINMODE} | | 741 | DEBUGMODE?= ${NONBINMODE} |
741 | | | 742 | |
742 | # | | 743 | # |
743 | # Data-driven table using make variables to control how | | 744 | # Data-driven table using make variables to control how |
744 | # toolchain-dependent targets and shared libraries are built | | 745 | # toolchain-dependent targets and shared libraries are built |
745 | # for different platforms and object formats. | | 746 | # for different platforms and object formats. |
746 | # | | 747 | # |
747 | # OBJECT_FMT: currently either "ELF" or "a.out". | | 748 | # OBJECT_FMT: currently either "ELF" or "a.out". |
748 | # | | 749 | # |
749 | # All platforms are ELF. | | 750 | # All platforms are ELF. |
750 | # | | 751 | # |
751 | OBJECT_FMT= ELF | | 752 | OBJECT_FMT= ELF |
752 | | | 753 | |
753 | # | | 754 | # |
754 | # If this platform's toolchain is missing, we obviously cannot build it. | | 755 | # If this platform's toolchain is missing, we obviously cannot build it. |
755 | # | | 756 | # |
756 | .if ${TOOLCHAIN_MISSING} != "no" | | 757 | .if ${TOOLCHAIN_MISSING} != "no" |
757 | MKBINUTILS:= no | | 758 | MKBINUTILS:= no |
758 | MKGDB:= no | | 759 | MKGDB:= no |
759 | MKGCC:= no | | 760 | MKGCC:= no |
760 | .endif | | 761 | .endif |
761 | | | 762 | |
762 | # | | 763 | # |
763 | # If we are using an external toolchain, we can still build the target's | | 764 | # If we are using an external toolchain, we can still build the target's |
764 | # binutils, but we cannot build GCC's support libraries, since those are | | 765 | # binutils, but we cannot build GCC's support libraries, since those are |
765 | # tightly-coupled to the version of GCC being used. | | 766 | # tightly-coupled to the version of GCC being used. |
766 | # | | 767 | # |
767 | .if defined(EXTERNAL_TOOLCHAIN) | | 768 | .if defined(EXTERNAL_TOOLCHAIN) |
768 | MKGCC:= no | | 769 | MKGCC:= no |
769 | .endif | | 770 | .endif |
770 | | | 771 | |
771 | # No GDB support for aarch64 | | 772 | # No GDB support for aarch64 |
772 | MKGDB.aarch64= no | | 773 | MKGDB.aarch64= no |
773 | MKGDB.or1k= no | | 774 | MKGDB.or1k= no |
774 | MKGDB.riscv32= no | | 775 | MKGDB.riscv32= no |
775 | MKGDB.riscv64= no | | 776 | MKGDB.riscv64= no |
776 | | | 777 | |
777 | # No kernel modules for or1k (yet) | | 778 | # No kernel modules for or1k (yet) |
778 | MKKMOD.or1k= no | | 779 | MKKMOD.or1k= no |
779 | MKKMOD.riscv32= no | | 780 | MKKMOD.riscv32= no |
780 | MKKMOD.riscv64= no | | 781 | MKKMOD.riscv64= no |
781 | | | 782 | |
782 | # No profiling for or1k (yet) | | 783 | # No profiling for or1k (yet) |
783 | MKPROFILE.or1k= no | | 784 | MKPROFILE.or1k= no |
784 | MKPROFILE.riscv32=no | | 785 | MKPROFILE.riscv32=no |
785 | MKPROFILE.riscv64=no | | 786 | MKPROFILE.riscv64=no |
786 | | | 787 | |
787 | # | | 788 | # |
788 | # The m68000 port is incomplete. | | 789 | # The m68000 port is incomplete. |
789 | # | | 790 | # |
790 | .if ${MACHINE_ARCH} == "m68000" | | 791 | .if ${MACHINE_ARCH} == "m68000" |
791 | NOPIC= # defined | | 792 | NOPIC= # defined |
792 | MKISCSI= no | | 793 | MKISCSI= no |
793 | # XXX GCC 4 outputs mcount() calling sequences that try to load values | | 794 | # XXX GCC 4 outputs mcount() calling sequences that try to load values |
794 | # from over 64KB away and this fails to assemble. | | 795 | # from over 64KB away and this fails to assemble. |
795 | .if defined(HAVE_GCC) | | 796 | .if defined(HAVE_GCC) |
796 | NOPROFILE= # defined | | 797 | NOPROFILE= # defined |
797 | .endif | | 798 | .endif |
798 | .endif | | 799 | .endif |
799 | | | 800 | |
800 | # | | 801 | # |
801 | # The ia64 port is incomplete. | | 802 | # The ia64 port is incomplete. |
802 | # | | 803 | # |
803 | MKLINT.ia64= no | | 804 | MKLINT.ia64= no |
804 | MKGDB.ia64= no | | 805 | MKGDB.ia64= no |
805 | | | 806 | |
806 | # | | 807 | # |
807 | # On the MIPS, all libs are compiled with ABIcalls (and are thus PIC), | | 808 | # On the MIPS, all libs are compiled with ABIcalls (and are thus PIC), |
808 | # not just shared libraries, so don't build the _pic version. | | 809 | # not just shared libraries, so don't build the _pic version. |
809 | # | | 810 | # |
810 | .if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" || \ | | 811 | .if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" || \ |
811 | ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb" | | 812 | ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb" |
812 | MKPICLIB:= no | | 813 | MKPICLIB:= no |
813 | .endif | | 814 | .endif |
814 | | | 815 | |
815 | # PowerPC64 and AArch64 ABI's are PIC | | 816 | # PowerPC64 and AArch64 ABI's are PIC |
816 | MKPICLIB.powerpc64= no | | 817 | MKPICLIB.powerpc64= no |
817 | #MKPICLIB.aarch64= no | | 818 | #MKPICLIB.aarch64= no |
818 | | | 819 | |
819 | # | | 820 | # |
820 | # On VAX using ELF, all objects are PIC, not just shared libraries, | | 821 | # On VAX using ELF, all objects are PIC, not just shared libraries, |
821 | # so don't build the _pic version. | | 822 | # so don't build the _pic version. |
822 | # | | 823 | # |
823 | MKPICLIB.vax= no | | 824 | MKPICLIB.vax= no |
824 | | | 825 | |
825 | # | | 826 | # |
826 | # Location of the file that contains the major and minor numbers of the | | 827 | # Location of the file that contains the major and minor numbers of the |
827 | # version of a shared library. If this file exists a shared library | | 828 | # version of a shared library. If this file exists a shared library |
828 | # will be built by <bsd.lib.mk>. | | 829 | # will be built by <bsd.lib.mk>. |
829 | # | | 830 | # |
830 | SHLIB_VERSION_FILE?= ${.CURDIR}/shlib_version | | 831 | SHLIB_VERSION_FILE?= ${.CURDIR}/shlib_version |
831 | | | 832 | |
832 | # | | 833 | # |
833 | # GNU sources and packages sometimes see architecture names differently. | | 834 | # GNU sources and packages sometimes see architecture names differently. |
834 | # | | 835 | # |
835 | GNU_ARCH.aarch64eb=aarch64_be | | 836 | GNU_ARCH.aarch64eb=aarch64_be |
836 | GNU_ARCH.coldfire=m5407 | | 837 | GNU_ARCH.coldfire=m5407 |
837 | GNU_ARCH.earm=arm | | 838 | GNU_ARCH.earm=arm |
838 | GNU_ARCH.earmhf=arm | | 839 | GNU_ARCH.earmhf=arm |
839 | GNU_ARCH.earmeb=armeb | | 840 | GNU_ARCH.earmeb=armeb |
840 | GNU_ARCH.earmhfeb=armeb | | 841 | GNU_ARCH.earmhfeb=armeb |
841 | GNU_ARCH.earmv4=armv4 | | 842 | GNU_ARCH.earmv4=armv4 |
842 | GNU_ARCH.earmv4eb=armv4eb | | 843 | GNU_ARCH.earmv4eb=armv4eb |
843 | GNU_ARCH.earmv5=arm | | 844 | GNU_ARCH.earmv5=arm |
844 | GNU_ARCH.earmv5eb=armeb | | 845 | GNU_ARCH.earmv5eb=armeb |
845 | GNU_ARCH.earmv6=armv6 | | 846 | GNU_ARCH.earmv6=armv6 |
846 | GNU_ARCH.earmv6hf=armv6 | | 847 | GNU_ARCH.earmv6hf=armv6 |
847 | GNU_ARCH.earmv6eb=armv6eb | | 848 | GNU_ARCH.earmv6eb=armv6eb |
848 | GNU_ARCH.earmv6hfeb=armv6eb | | 849 | GNU_ARCH.earmv6hfeb=armv6eb |
849 | GNU_ARCH.earmv7=armv7 | | 850 | GNU_ARCH.earmv7=armv7 |
850 | GNU_ARCH.earmv7hf=armv7 | | 851 | GNU_ARCH.earmv7hf=armv7 |
851 | GNU_ARCH.earmv7eb=armv7eb | | 852 | GNU_ARCH.earmv7eb=armv7eb |
852 | GNU_ARCH.earmv7hfeb=armv7eb | | 853 | GNU_ARCH.earmv7hfeb=armv7eb |
853 | GNU_ARCH.i386=i486 | | 854 | GNU_ARCH.i386=i486 |
854 | GCC_CONFIG_ARCH.i386=i486 | | 855 | GCC_CONFIG_ARCH.i386=i486 |
855 | GCC_CONFIG_TUNE.i386=nocona | | 856 | GCC_CONFIG_TUNE.i386=nocona |
856 | GCC_CONFIG_TUNE.x86_64=nocona | | 857 | GCC_CONFIG_TUNE.x86_64=nocona |
857 | GNU_ARCH.m68000=m68010 | | 858 | GNU_ARCH.m68000=m68010 |
858 | GNU_ARCH.sh3eb=sh | | 859 | GNU_ARCH.sh3eb=sh |
859 | GNU_ARCH.sh3el=shle | | 860 | GNU_ARCH.sh3el=shle |
860 | GNU_ARCH.mips64eb=mips64 | | 861 | GNU_ARCH.mips64eb=mips64 |
861 | MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_ARCH}:U${MACHINE_ARCH}} | | 862 | MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_ARCH}:U${MACHINE_ARCH}} |
862 | | | 863 | |
863 | # | | 864 | # |
864 | # In order to identify NetBSD to GNU packages, we sometimes need | | 865 | # In order to identify NetBSD to GNU packages, we sometimes need |
865 | # an "elf" tag for historically a.out platforms. | | 866 | # an "elf" tag for historically a.out platforms. |
866 | # | | 867 | # |
867 | .if (!empty(MACHINE_ARCH:Mearm*)) | | 868 | .if (!empty(MACHINE_ARCH:Mearm*)) |
868 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf-${MACHINE_ARCH:C/eb//:C/v[4-7]//:S/earm/eabi/} | | 869 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf-${MACHINE_ARCH:C/eb//:C/v[4-7]//:S/earm/eabi/} |
869 | .elif (${MACHINE_GNU_ARCH} == "arm" || \ | | 870 | .elif (${MACHINE_GNU_ARCH} == "arm" || \ |
870 | ${MACHINE_GNU_ARCH} == "armeb" || \ | | 871 | ${MACHINE_GNU_ARCH} == "armeb" || \ |
871 | ${MACHINE_ARCH} == "i386" || \ | | 872 | ${MACHINE_ARCH} == "i386" || \ |
872 | ${MACHINE_CPU} == "m68k" || \ | | 873 | ${MACHINE_CPU} == "m68k" || \ |
873 | ${MACHINE_GNU_ARCH} == "sh" || \ | | 874 | ${MACHINE_GNU_ARCH} == "sh" || \ |
874 | ${MACHINE_GNU_ARCH} == "shle" || \ | | 875 | ${MACHINE_GNU_ARCH} == "shle" || \ |
875 | ${MACHINE_ARCH} == "sparc" || \ | | 876 | ${MACHINE_ARCH} == "sparc" || \ |
876 | ${MACHINE_ARCH} == "vax") | | 877 | ${MACHINE_ARCH} == "vax") |
877 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf | | 878 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf |
878 | .else | | 879 | .else |
879 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsd | | 880 | MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsd |
880 | .endif | | 881 | .endif |
881 | | | 882 | |
882 | .if !empty(MACHINE_ARCH:M*arm*) | | 883 | .if !empty(MACHINE_ARCH:M*arm*) |
883 | # Flags to pass to CC for using the old APCS ABI on ARM for compat or stand. | | 884 | # Flags to pass to CC for using the old APCS ABI on ARM for compat or stand. |
884 | ARM_APCS_FLAGS= -mabi=apcs-gnu -mfloat-abi=soft | | 885 | ARM_APCS_FLAGS= -mabi=apcs-gnu -mfloat-abi=soft |
885 | ARM_APCS_FLAGS+=${${ACTIVE_CC} == "gcc":? -marm :} | | 886 | ARM_APCS_FLAGS+=${${ACTIVE_CC} == "gcc":? -marm :} |
886 | ARM_APCS_FLAGS+=${${ACTIVE_CC} == "clang":? -target ${MACHINE_GNU_ARCH}--netbsdelf -B ${TOOLDIR}/${MACHINE_GNU_PLATFORM}/bin :} | | 887 | ARM_APCS_FLAGS+=${${ACTIVE_CC} == "clang":? -target ${MACHINE_GNU_ARCH}--netbsdelf -B ${TOOLDIR}/${MACHINE_GNU_PLATFORM}/bin :} |
887 | .endif | | 888 | .endif |
888 | | | 889 | |
889 | GENASSYM_CPPFLAGS+= ${${ACTIVE_CC} == "clang":? -no-integrated-as :} | | 890 | GENASSYM_CPPFLAGS+= ${${ACTIVE_CC} == "clang":? -no-integrated-as :} |
890 | | | 891 | |
891 | TARGETS+= all clean cleandir depend dependall includes \ | | 892 | TARGETS+= all clean cleandir depend dependall includes \ |
892 | install lint obj regress tags html analyze describe \ | | 893 | install lint obj regress tags html analyze describe \ |
893 | rumpdescribe | | 894 | rumpdescribe |
894 | PHONY_NOTMAIN = all clean cleandir depend dependall distclean includes \ | | 895 | PHONY_NOTMAIN = all clean cleandir depend dependall distclean includes \ |
895 | install lint obj regress beforedepend afterdepend \ | | 896 | install lint obj regress beforedepend afterdepend \ |
896 | beforeinstall afterinstall realinstall realdepend realall \ | | 897 | beforeinstall afterinstall realinstall realdepend realall \ |
897 | html subdir-all subdir-install subdir-depend analyze describe \ | | 898 | html subdir-all subdir-install subdir-depend analyze describe \ |
898 | rumpdescribe | | 899 | rumpdescribe |
899 | .PHONY: ${PHONY_NOTMAIN} | | 900 | .PHONY: ${PHONY_NOTMAIN} |
900 | .NOTMAIN: ${PHONY_NOTMAIN} | | 901 | .NOTMAIN: ${PHONY_NOTMAIN} |
901 | | | 902 | |
902 | .if ${NEED_OWN_INSTALL_TARGET} != "no" | | 903 | .if ${NEED_OWN_INSTALL_TARGET} != "no" |
903 | .if !target(install) | | 904 | .if !target(install) |
904 | install: beforeinstall .WAIT subdir-install realinstall .WAIT afterinstall | | 905 | install: beforeinstall .WAIT subdir-install realinstall .WAIT afterinstall |
905 | beforeinstall: | | 906 | beforeinstall: |
906 | subdir-install: | | 907 | subdir-install: |
907 | realinstall: | | 908 | realinstall: |
908 | afterinstall: | | 909 | afterinstall: |
909 | .endif | | 910 | .endif |
910 | all: realall subdir-all | | 911 | all: realall subdir-all |
911 | subdir-all: | | 912 | subdir-all: |
912 | realall: | | 913 | realall: |
913 | depend: realdepend subdir-depend | | 914 | depend: realdepend subdir-depend |
914 | subdir-depend: | | 915 | subdir-depend: |
915 | realdepend: | | 916 | realdepend: |
916 | distclean: cleandir | | 917 | distclean: cleandir |
917 | cleandir: clean | | 918 | cleandir: clean |
918 | | | 919 | |
919 | dependall: .NOTMAIN realdepend .MAKE | | 920 | dependall: .NOTMAIN realdepend .MAKE |
920 | @cd "${.CURDIR}"; ${MAKE} realall | | 921 | @cd "${.CURDIR}"; ${MAKE} realall |
921 | .endif | | 922 | .endif |
922 | | | 923 | |
923 | # | | 924 | # |
924 | # Define MKxxx variables (which are either yes or no) for users | | 925 | # Define MKxxx variables (which are either yes or no) for users |
925 | # to set in /etc/mk.conf and override in the make environment. | | 926 | # to set in /etc/mk.conf and override in the make environment. |
926 | # These should be tested with `== "no"' or `!= "no"'. | | 927 | # These should be tested with `== "no"' or `!= "no"'. |
927 | # The NOxxx variables should only be set by Makefiles. | | 928 | # The NOxxx variables should only be set by Makefiles. |
928 | # | | 929 | # |
929 | # Please keep etc/Makefile and share/man/man5/mk.conf.5 in sync | | 930 | # Please keep etc/Makefile and share/man/man5/mk.conf.5 in sync |
930 | # with changes to the MK* variables here. | | 931 | # with changes to the MK* variables here. |
931 | # | | 932 | # |
932 | | | 933 | |
933 | # | | 934 | # |
934 | # Supported NO* options (if defined, MK* will be forced to "no", | | 935 | # Supported NO* options (if defined, MK* will be forced to "no", |
935 | # regardless of user's mk.conf setting). | | 936 | # regardless of user's mk.conf setting). |
936 | # | | 937 | # |
937 | # Source makefiles should set NO*, and not MK*, and must do so before | | 938 | # Source makefiles should set NO*, and not MK*, and must do so before |
938 | # including bsd.own.mk. | | 939 | # including bsd.own.mk. |
939 | # | | 940 | # |
940 | .for var in \ | | 941 | .for var in \ |
941 | NOCRYPTO NODOC NOHTML NOINFO NOLINKLIB NOLINT NOMAN NONLS NOOBJ NOPIC \ | | 942 | NOCRYPTO NODOC NOHTML NOINFO NOLINKLIB NOLINT NOMAN NONLS NOOBJ NOPIC \ |
942 | NOPICINSTALL NOPROFILE NOSHARE NOSTATICLIB | | 943 | NOPICINSTALL NOPROFILE NOSHARE NOSTATICLIB |
943 | .if defined(${var}) | | 944 | .if defined(${var}) |
944 | MK${var:S/^NO//}:= no | | 945 | MK${var:S/^NO//}:= no |
945 | .endif | | 946 | .endif |
946 | .endfor | | 947 | .endfor |
947 | | | 948 | |
948 | # | | 949 | # |
949 | # Older-style variables that enabled behaviour when set. | | 950 | # Older-style variables that enabled behaviour when set. |
950 | # | | 951 | # |
951 | .for var in MANZ UNPRIVED UPDATE | | 952 | .for var in MANZ UNPRIVED UPDATE |
952 | .if defined(${var}) | | 953 | .if defined(${var}) |
953 | MK${var}:= yes | | 954 | MK${var}:= yes |
954 | .endif | | 955 | .endif |
955 | .endfor | | 956 | .endfor |
956 | | | 957 | |
957 | # | | 958 | # |
958 | # MK* options which have variable defaults. | | 959 | # MK* options which have variable defaults. |
959 | # | | 960 | # |
960 | .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" \ | | 961 | .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" \ |
961 | || ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" \ | | 962 | || ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" \ |
962 | || ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_CPU} == "aarch64" \ | | 963 | || ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_CPU} == "aarch64" \ |
963 | || ${MACHINE_ARCH} == "riscv64" \ | | 964 | || ${MACHINE_ARCH} == "riscv64" \ |
964 | || !empty(MACHINE_ARCH:Mearm*) | | 965 | || !empty(MACHINE_ARCH:Mearm*) |
965 | MKCOMPAT?= yes | | 966 | MKCOMPAT?= yes |
966 | .else | | 967 | .else |
967 | # Don't let this build where it really isn't supported. | | 968 | # Don't let this build where it really isn't supported. |
968 | MKCOMPAT:= no | | 969 | MKCOMPAT:= no |
969 | MKCOMPATTESTS:= no | | 970 | MKCOMPATTESTS:= no |
970 | MKCOMPATX11:= no | | 971 | MKCOMPATX11:= no |
971 | .endif | | 972 | .endif |
972 | | | 973 | |
973 | .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386" \ | | 974 | .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386" \ |
974 | || ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" \ | | 975 | || ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" \ |
975 | || (${MACHINE} == "evbppc" && ${MACHINE_ARCH} == "powerpc") | | 976 | || (${MACHINE} == "evbppc" && ${MACHINE_ARCH} == "powerpc") |
976 | MKCOMPATMODULES?= yes | | 977 | MKCOMPATMODULES?= yes |
977 | .else | | 978 | .else |
978 | MKCOMPATMODULES:= no | | 979 | MKCOMPATMODULES:= no |
979 | .endif | | 980 | .endif |
980 | | | 981 | |
981 | # | | 982 | # |
982 | # Default mips64 to softfloat now. | | 983 | # Default mips64 to softfloat now. |
983 | # arm is always softfloat unless it isn't | | 984 | # arm is always softfloat unless it isn't |
984 | # emips is always softfloat. | | 985 | # emips is always softfloat. |
985 | # coldfire is always softfloat | | 986 | # coldfire is always softfloat |
986 | # or1k is always softfloat | | 987 | # or1k is always softfloat |
987 | # | | 988 | # |
988 | .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" || \ | | 989 | .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" || \ |
989 | (${MACHINE_CPU} == "arm" && ${MACHINE_ARCH:M*hf*} == "") || \ | | 990 | (${MACHINE_CPU} == "arm" && ${MACHINE_ARCH:M*hf*} == "") || \ |
990 | ${MACHINE_ARCH} == "coldfire" || ${MACHINE_CPU} == "or1k" || \ | | 991 | ${MACHINE_ARCH} == "coldfire" || ${MACHINE_CPU} == "or1k" || \ |
991 | ${MACHINE} == "emips" | | 992 | ${MACHINE} == "emips" |
992 | MKSOFTFLOAT?= yes | | 993 | MKSOFTFLOAT?= yes |
993 | .endif | | 994 | .endif |
994 | | | 995 | |
995 | .if ${MACHINE} == "emips" | | 996 | .if ${MACHINE} == "emips" |
996 | SOFTFLOAT_BITS= 32 | | 997 | SOFTFLOAT_BITS= 32 |
997 | .endif | | 998 | .endif |
998 | | | 999 | |
999 | .if ${MACHINE_ARCH} == "i386" || \ | | 1000 | .if ${MACHINE_ARCH} == "i386" || \ |
1000 | ${MACHINE_ARCH} == "x86_64" || \ | | 1001 | ${MACHINE_ARCH} == "x86_64" || \ |
1001 | ${MACHINE_ARCH} == "sparc" | | 1002 | ${MACHINE_ARCH} == "sparc" |
1002 | MKSLJIT?= yes | | 1003 | MKSLJIT?= yes |
1003 | .else | | 1004 | .else |
1004 | MKSLJIT?= no | | 1005 | MKSLJIT?= no |
1005 | .endif | | 1006 | .endif |
1006 | | | 1007 | |
1007 | # | | 1008 | # |
1008 | # MK* backward compatibility. | | 1009 | # MK* backward compatibility. |
1009 | # | | 1010 | # |
1010 | .if defined(MKBFD) | | 1011 | .if defined(MKBFD) |
1011 | MKBINUTILS?= ${MKBFD} | | 1012 | MKBINUTILS?= ${MKBFD} |
1012 | .endif | | 1013 | .endif |
1013 | | | 1014 | |
1014 | # | | 1015 | # |
1015 | # We want to build zfs only for amd64 by default for now. | | 1016 | # We want to build zfs only for amd64 by default for now. |
1016 | # | | 1017 | # |
1017 | .if ${MACHINE} == "amd64" | | 1018 | .if ${MACHINE} == "amd64" |
1018 | MKZFS?= yes | | 1019 | MKZFS?= yes |
1019 | .endif | | 1020 | .endif |
1020 | | | 1021 | |
1021 | # | | 1022 | # |
1022 | # DTrace works on amd64, i386 and earm* | | 1023 | # DTrace works on amd64, i386 and earm* |
1023 | # | | 1024 | # |
1024 | | | 1025 | |
1025 | .if ${MACHINE_ARCH} == "i386" || \ | | 1026 | .if ${MACHINE_ARCH} == "i386" || \ |
1026 | ${MACHINE_ARCH} == "x86_64" || \ | | 1027 | ${MACHINE_ARCH} == "x86_64" || \ |
1027 | !empty(MACHINE_ARCH:Mearm*) | | 1028 | !empty(MACHINE_ARCH:Mearm*) |
1028 | MKDTRACE?= yes | | 1029 | MKDTRACE?= yes |
1029 | MKCTF?= yes | | 1030 | MKCTF?= yes |
1030 | .endif | | 1031 | .endif |
1031 | # | | 1032 | # |
1032 | # MK* options which default to "yes". | | 1033 | # MK* options which default to "yes". |
1033 | # | | 1034 | # |
1034 | _MKVARS.yes= \ | | 1035 | _MKVARS.yes= \ |
1035 | MKATF \ | | 1036 | MKATF \ |
1036 | MKBINUTILS \ | | 1037 | MKBINUTILS \ |
1037 | MKCRYPTO MKCOMPLEX MKCVS MKCXX \ | | 1038 | MKCRYPTO MKCOMPLEX MKCVS MKCXX \ |
1038 | MKDOC \ | | 1039 | MKDOC \ |
1039 | MKGCC MKGDB MKGROFF \ | | 1040 | MKGCC MKGDB MKGROFF \ |
1040 | MKHESIOD MKHTML \ | | 1041 | MKHESIOD MKHTML \ |
1041 | MKIEEEFP MKINET6 MKINFO MKIPFILTER MKISCSI \ | | 1042 | MKIEEEFP MKINET6 MKINFO MKIPFILTER MKISCSI \ |
1042 | MKKERBEROS \ | | 1043 | MKKERBEROS \ |
1043 | MKKMOD \ | | 1044 | MKKMOD \ |
1044 | MKLDAP MKLIBSTDCXX MKLINKLIB MKLVM \ | | 1045 | MKLDAP MKLIBSTDCXX MKLINKLIB MKLVM \ |
1045 | MKMAN MKMANDOC \ | | 1046 | MKMAN MKMANDOC \ |
1046 | MKMDNS \ | | 1047 | MKMDNS \ |
1047 | MKMAKEMANDB \ | | 1048 | MKMAKEMANDB \ |
1048 | MKNLS \ | | 1049 | MKNLS \ |
1049 | MKNPF \ | | 1050 | MKNPF \ |
1050 | MKOBJ \ | | 1051 | MKOBJ \ |
1051 | MKPAM MKPERFUSE \ | | 1052 | MKPAM MKPERFUSE \ |
1052 | MKPF MKPIC MKPICINSTALL MKPICLIB MKPOSTFIX MKPROFILE \ | | 1053 | MKPF MKPIC MKPICINSTALL MKPICLIB MKPOSTFIX MKPROFILE \ |
1053 | MKRUMP \ | | 1054 | MKRUMP \ |
1054 | MKSHARE MKSKEY MKSTATICLIB \ | | 1055 | MKSHARE MKSKEY MKSTATICLIB \ |
1055 | MKX11FONTS \ | | 1056 | MKX11FONTS \ |
1056 | MKYP | | 1057 | MKYP |
1057 | .for var in ${_MKVARS.yes} | | 1058 | .for var in ${_MKVARS.yes} |
1058 | ${var}?= ${${var}.${MACHINE_ARCH}:Uyes} | | 1059 | ${var}?= ${${var}.${MACHINE_ARCH}:Uyes} |
1059 | .endfor | | 1060 | .endfor |
1060 | | | 1061 | |
1061 | # | | 1062 | # |
1062 | # MKGCCCMDS is only valid if we are building GCC so make it dependent on that. | | 1063 | # MKGCCCMDS is only valid if we are building GCC so make it dependent on that. |
1063 | # | | 1064 | # |
1064 | _MKVARS.yes += MKGCCCMDS | | 1065 | _MKVARS.yes += MKGCCCMDS |
1065 | MKGCCCMDS?= ${MKGCC} | | 1066 | MKGCCCMDS?= ${MKGCC} |
1066 | | | 1067 | |
1067 | # | | 1068 | # |
1068 | # Exceptions to the above: | | 1069 | # Exceptions to the above: |
1069 | # | | 1070 | # |
1070 | .if ${MACHINE} == "acorn26" # page size is prohibitive | | 1071 | .if ${MACHINE} == "acorn26" # page size is prohibitive |
1071 | MKKMOD= no | | 1072 | MKKMOD= no |
1072 | .endif | | 1073 | .endif |
1073 | | | 1074 | |
1074 | # | | 1075 | # |
1075 | # MK* options which default to "no". Note that MKZFS has a different | | 1076 | # MK* options which default to "no". Note that MKZFS has a different |
1076 | # default for some platforms, see above. | | 1077 | # default for some platforms, see above. |
1077 | # | | 1078 | # |
1078 | _MKVARS.no= \ | | 1079 | _MKVARS.no= \ |
1079 | MKBSDGREP MKBSDTAR \ | | 1080 | MKBSDGREP MKBSDTAR \ |
1080 | MKCATPAGES MKCOMPATTESTS MKCOMPATX11 MKCRYPTO_RC5 MKCTF MKDEBUG \ | | 1081 | MKCATPAGES MKCOMPATTESTS MKCOMPATX11 MKCRYPTO_RC5 MKCTF MKDEBUG \ |
1081 | MKDEBUGLIB MKDTRACE MKEXTSRC MKGROFFHTMLDOC \ | | 1082 | MKDEBUGLIB MKDTRACE MKEXTSRC MKGROFFHTMLDOC \ |
1082 | MKKYUA MKLLD MKLLDB MKLINT \ | | 1083 | MKKYUA MKLLD MKLLDB MKLINT \ |
1083 | MKMANZ MKMCLINKER MKOBJDIRS \ | | 1084 | MKMANZ MKMCLINKER MKOBJDIRS \ |
1084 | MKLIBCXX MKLLVM MKPCC \ | | 1085 | MKLIBCXX MKLLVM MKPCC \ |
1085 | MKPIGZGZIP \ | | 1086 | MKPIGZGZIP \ |
1086 | MKREPRO \ | | 1087 | MKREPRO \ |
1087 | MKSOFTFLOAT MKSTRIPIDENT MKTPM \ | | 1088 | MKSOFTFLOAT MKSTRIPIDENT MKTPM \ |
1088 | MKUNPRIVED MKUPDATE MKX11 MKX11MOTIF MKZFS | | 1089 | MKUNPRIVED MKUPDATE MKX11 MKX11MOTIF MKZFS |
1089 | .for var in ${_MKVARS.no} | | 1090 | .for var in ${_MKVARS.no} |
1090 | ${var}?= ${${var}.${MACHINE_ARCH}:Uno} | | 1091 | ${var}?= ${${var}.${MACHINE_ARCH}:Uno} |
1091 | .endfor | | 1092 | .endfor |
1092 | | | 1093 | |
1093 | # | | 1094 | # |
1094 | # Which platforms build the xorg-server drivers (as opposed | | 1095 | # Which platforms build the xorg-server drivers (as opposed |
1095 | # to just Xnest and Xvfb.) | | 1096 | # to just Xnest and Xvfb.) |
1096 | # | | 1097 | # |
1097 | .if ${MACHINE} == "alpha" || \ | | 1098 | .if ${MACHINE} == "alpha" || \ |
1098 | ${MACHINE} == "amd64" || \ | | 1099 | ${MACHINE} == "amd64" || \ |
1099 | ${MACHINE} == "amiga" || \ | | 1100 | ${MACHINE} == "amiga" || \ |
1100 | ${MACHINE} == "bebox" || \ | | 1101 | ${MACHINE} == "bebox" || \ |
1101 | ${MACHINE} == "cats" || \ | | 1102 | ${MACHINE} == "cats" || \ |
1102 | ${MACHINE} == "dreamcast" || \ | | 1103 | ${MACHINE} == "dreamcast" || \ |
1103 | ${MACHINE} == "ews4800mips" || \ | | 1104 | ${MACHINE} == "ews4800mips" || \ |
1104 | ${MACHINE} == "evbarm" || \ | | 1105 | ${MACHINE} == "evbarm" || \ |
1105 | ${MACHINE} == "evbmips" || \ | | 1106 | ${MACHINE} == "evbmips" || \ |
1106 | ${MACHINE} == "hp300" || \ | | 1107 | ${MACHINE} == "hp300" || \ |
1107 | ${MACHINE} == "hpcarm" || \ | | 1108 | ${MACHINE} == "hpcarm" || \ |
1108 | ${MACHINE} == "hpcmips" || \ | | 1109 | ${MACHINE} == "hpcmips" || \ |
1109 | ${MACHINE} == "hpcsh" || \ | | 1110 | ${MACHINE} == "hpcsh" || \ |
1110 | ${MACHINE} == "i386" || \ | | 1111 | ${MACHINE} == "i386" || \ |
1111 | ${MACHINE} == "ibmnws" || \ | | 1112 | ${MACHINE} == "ibmnws" || \ |
1112 | ${MACHINE} == "luna68k" || \ | | 1113 | ${MACHINE} == "luna68k" || \ |
1113 | ${MACHINE} == "mac68k" || \ | | 1114 | ${MACHINE} == "mac68k" || \ |
1114 | ${MACHINE} == "macppc" || \ | | 1115 | ${MACHINE} == "macppc" || \ |
1115 | ${MACHINE} == "netwinder" || \ | | 1116 | ${MACHINE} == "netwinder" || \ |
1116 | ${MACHINE} == "newsmips" || \ | | 1117 | ${MACHINE} == "newsmips" || \ |
1117 | ${MACHINE} == "prep" || \ | | 1118 | ${MACHINE} == "prep" || \ |
1118 | ${MACHINE} == "ofppc" || \ | | 1119 | ${MACHINE} == "ofppc" || \ |
1119 | ${MACHINE} == "sgimips" || \ | | 1120 | ${MACHINE} == "sgimips" || \ |
1120 | ${MACHINE} == "shark" || \ | | 1121 | ${MACHINE} == "shark" || \ |
1121 | ${MACHINE} == "sparc" || \ | | 1122 | ${MACHINE} == "sparc" || \ |
1122 | ${MACHINE} == "sparc64" || \ | | 1123 | ${MACHINE} == "sparc64" || \ |
1123 | ${MACHINE} == "vax" || \ | | 1124 | ${MACHINE} == "vax" || \ |
1124 | ${MACHINE} == "zaurus" | | 1125 | ${MACHINE} == "zaurus" |
1125 | MKXORG_SERVER?=yes | | 1126 | MKXORG_SERVER?=yes |
1126 | .else | | 1127 | .else |
1127 | MKXORG_SERVER?=no | | 1128 | MKXORG_SERVER?=no |
1128 | .endif | | 1129 | .endif |
1129 | | | 1130 | |
1130 | # | | 1131 | # |
1131 | # Force some options off if their dependencies are off. | | 1132 | # Force some options off if their dependencies are off. |
1132 | # | | 1133 | # |
1133 | | | 1134 | |
1134 | .if ${MKCXX} == "no" | | 1135 | .if ${MKCXX} == "no" |