| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bsd.prefs.mk,v 1.324 2012/07/02 15:49:41 jperkin Exp $ | | 1 | # $NetBSD: bsd.prefs.mk,v 1.325 2012/07/27 09:44:31 jperkin Exp $ |
2 | # | | 2 | # |
3 | # This file includes the mk.conf file, which contains the user settings. | | 3 | # This file includes the mk.conf file, which contains the user settings. |
4 | # | | 4 | # |
5 | # Packages should include this file before any of the .if directives, as | | 5 | # Packages should include this file before any of the .if directives, as |
6 | # well as before modifying variables like CFLAGS, LDFLAGS, and so on. | | 6 | # well as before modifying variables like CFLAGS, LDFLAGS, and so on. |
7 | # Otherwise the behavior may be unexpected. | | 7 | # Otherwise the behavior may be unexpected. |
8 | # | | 8 | # |
9 | # When mk.conf is included by this file, the following variables are | | 9 | # When mk.conf is included by this file, the following variables are |
10 | # defined: | | 10 | # defined: |
11 | # | | 11 | # |
12 | # ACCEPTABLE_LICENSES | | 12 | # ACCEPTABLE_LICENSES |
13 | # This variable is set to the list of Open Source licenses. See | | 13 | # This variable is set to the list of Open Source licenses. See |
14 | # mk/license.mk for details. | | 14 | # mk/license.mk for details. |
| @@ -250,33 +250,33 @@ LOWER_OPSYS?= osf1 | | | @@ -250,33 +250,33 @@ LOWER_OPSYS?= osf1 |
250 | LOWER_OPSYS_VERSUFFIX?= ${OS_VERSION} | | 250 | LOWER_OPSYS_VERSUFFIX?= ${OS_VERSION} |
251 | LOWER_VENDOR?= dec | | 251 | LOWER_VENDOR?= dec |
252 | | | 252 | |
253 | .elif ${OPSYS} == "HPUX" | | 253 | .elif ${OPSYS} == "HPUX" |
254 | OS_VERSION:= ${OS_VERSION:C/^B.//} | | 254 | OS_VERSION:= ${OS_VERSION:C/^B.//} |
255 | .if ${MACHINE_ARCH} == "9000" | | 255 | .if ${MACHINE_ARCH} == "9000" |
256 | MACHINE_ARCH= hppa | | 256 | MACHINE_ARCH= hppa |
257 | .endif | | 257 | .endif |
258 | LOWER_OPSYS?= hpux | | 258 | LOWER_OPSYS?= hpux |
259 | LOWER_OPSYS_VERSUFFIX?= ${OS_VERSION} | | 259 | LOWER_OPSYS_VERSUFFIX?= ${OS_VERSION} |
260 | LOWER_VENDOR?= hp | | 260 | LOWER_VENDOR?= hp |
261 | | | 261 | |
262 | .elif ${OPSYS} == "SunOS" | | 262 | .elif ${OPSYS} == "SunOS" |
| | | 263 | ABI?= 32 |
263 | . if ${MACHINE_ARCH} == "sparc" | | 264 | . if ${MACHINE_ARCH} == "sparc" |
264 | SPARC_TARGET_ARCH?= sparcv7 | | 265 | SPARC_TARGET_ARCH?= sparcv7 |
265 | . elif ${MACHINE_ARCH} == "sun4" | | 266 | . elif ${MACHINE_ARCH} == "sun4" |
266 | MACHINE_ARCH= sparc | | 267 | MACHINE_ARCH= sparc |
267 | SPARC_TARGET_ARCH?= sparcv7 | | 268 | SPARC_TARGET_ARCH?= sparcv7 |
268 | . elif ${MACHINE_ARCH} == "i86pc" || ${MACHINE_ARCH} == "i86xpv" || ${MACHINE_ARCH} == "i386" | | 269 | . elif ${MACHINE_ARCH} == "i86pc" || ${MACHINE_ARCH} == "i86xpv" || ${MACHINE_ARCH} == "i386" |
269 | ABI?= 32 | | | |
270 | LOWER_ARCH.32= i386 | | 270 | LOWER_ARCH.32= i386 |
271 | LOWER_ARCH.64= x86_64 | | 271 | LOWER_ARCH.64= x86_64 |
272 | LOWER_ARCH= ${LOWER_ARCH.${ABI}} | | 272 | LOWER_ARCH= ${LOWER_ARCH.${ABI}} |
273 | MACHINE_ARCH= ${LOWER_ARCH} | | 273 | MACHINE_ARCH= ${LOWER_ARCH} |
274 | . elif ${MACHINE_ARCH} == "unknown" | | 274 | . elif ${MACHINE_ARCH} == "unknown" |
275 | . if !defined(LOWER_ARCH) | | 275 | . if !defined(LOWER_ARCH) |
276 | LOWER_ARCH!= ${UNAME} -p | | 276 | LOWER_ARCH!= ${UNAME} -p |
277 | . endif # !defined(LOWER_ARCH) | | 277 | . endif # !defined(LOWER_ARCH) |
278 | MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH:Q} | | 278 | MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH:Q} |
279 | . endif | | 279 | . endif |
280 | LOWER_VENDOR?= sun | | 280 | LOWER_VENDOR?= sun |
281 | LOWER_OPSYS?= solaris | | 281 | LOWER_OPSYS?= solaris |
282 | LOWER_OPSYS_VERSUFFIX= 2.${OS_VERSION:C/5.//} | | 282 | LOWER_OPSYS_VERSUFFIX= 2.${OS_VERSION:C/5.//} |