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