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