| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bsd.prefs.mk,v 1.322 2012/06/11 09:36:02 jperkin Exp $ | | 1 | # $NetBSD: bsd.prefs.mk,v 1.323 2012/06/14 21:57:37 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. |
| @@ -251,26 +251,27 @@ OS_VERSION:= ${OS_VERSION:C/^B.//} | | | @@ -251,26 +251,27 @@ OS_VERSION:= ${OS_VERSION:C/^B.//} |
251 | MACHINE_ARCH= hppa | | 251 | MACHINE_ARCH= hppa |
252 | .endif | | 252 | .endif |
253 | LOWER_OPSYS?= hpux | | 253 | LOWER_OPSYS?= hpux |
254 | LOWER_OPSYS_VERSUFFIX?= ${OS_VERSION} | | 254 | LOWER_OPSYS_VERSUFFIX?= ${OS_VERSION} |
255 | LOWER_VENDOR?= hp | | 255 | LOWER_VENDOR?= hp |
256 | | | 256 | |
257 | .elif ${OPSYS} == "SunOS" | | 257 | .elif ${OPSYS} == "SunOS" |
258 | . if ${MACHINE_ARCH} == "sparc" | | 258 | . if ${MACHINE_ARCH} == "sparc" |
259 | SPARC_TARGET_ARCH?= sparcv7 | | 259 | SPARC_TARGET_ARCH?= sparcv7 |
260 | . elif ${MACHINE_ARCH} == "sun4" | | 260 | . elif ${MACHINE_ARCH} == "sun4" |
261 | MACHINE_ARCH= sparc | | 261 | MACHINE_ARCH= sparc |
262 | SPARC_TARGET_ARCH?= sparcv7 | | 262 | SPARC_TARGET_ARCH?= sparcv7 |
263 | . elif ${MACHINE_ARCH} == "i86pc" || ${MACHINE_ARCH} == "i86xpv" || ${MACHINE_ARCH} == "i386" | | 263 | . elif ${MACHINE_ARCH} == "i86pc" || ${MACHINE_ARCH} == "i86xpv" || ${MACHINE_ARCH} == "i386" |
| | | 264 | ABI?= 32 |
264 | LOWER_ARCH.32= i386 | | 265 | LOWER_ARCH.32= i386 |
265 | LOWER_ARCH.64= x86_64 | | 266 | LOWER_ARCH.64= x86_64 |
266 | LOWER_ARCH= ${LOWER_ARCH.${ABI}} | | 267 | LOWER_ARCH= ${LOWER_ARCH.${ABI}} |
267 | MACHINE_ARCH= ${LOWER_ARCH} | | 268 | MACHINE_ARCH= ${LOWER_ARCH} |
268 | . elif ${MACHINE_ARCH} == "unknown" | | 269 | . elif ${MACHINE_ARCH} == "unknown" |
269 | . if !defined(LOWER_ARCH) | | 270 | . if !defined(LOWER_ARCH) |
270 | LOWER_ARCH!= ${UNAME} -p | | 271 | LOWER_ARCH!= ${UNAME} -p |
271 | . endif # !defined(LOWER_ARCH) | | 272 | . endif # !defined(LOWER_ARCH) |
272 | MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH:Q} | | 273 | MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH:Q} |
273 | . endif | | 274 | . endif |
274 | LOWER_VENDOR?= sun | | 275 | LOWER_VENDOR?= sun |
275 | LOWER_OPSYS?= solaris | | 276 | LOWER_OPSYS?= solaris |
276 | LOWER_OPSYS_VERSUFFIX= 2.${OS_VERSION:C/5.//} | | 277 | LOWER_OPSYS_VERSUFFIX= 2.${OS_VERSION:C/5.//} |