| @@ -1,35 +1,36 @@ | | | @@ -1,35 +1,36 @@ |
1 | # $NetBSD: linux.mk,v 1.17 2012/04/18 06:17:24 obache Exp $ | | 1 | # $NetBSD: linux.mk,v 1.18 2012/06/16 14:21:25 obache Exp $ |
2 | # | | 2 | # |
3 | # Linux binary emulation framework | | 3 | # Linux binary emulation framework |
4 | # | | 4 | # |
5 | | | 5 | |
6 | .if ${OPSYS} == "Linux" | | 6 | .if ${OPSYS} == "Linux" |
7 | . if ${EMUL_ARCH} == ${MACHINE_ARCH} | | 7 | . if ${EMUL_ARCH} == ${MACHINE_ARCH} |
8 | EMUL_TYPE.linux?= native | | 8 | EMUL_TYPE.linux?= native |
9 | . else | | 9 | . else |
10 | EMUL_TYPE.linux?= none | | 10 | EMUL_TYPE.linux?= none |
11 | . endif | | 11 | . endif |
12 | .else | | 12 | .else |
13 | | | 13 | |
14 | # NetBSD 5.99.50 or later default to 11.3, otherwise 10.0 | | 14 | # NetBSD 5.99.50 or later default to 11.3, otherwise 10.0 |
15 | .if ${OPSYS} == "NetBSD" && ${EMUL_ARCH} != "powerpc" && \ | | 15 | .if ${OPSYS} == "NetBSD" && ${EMUL_ARCH} != "powerpc" |
16 | (empty(OS_VERSION:M[0-5].*) || \ | | 16 | . if empty(OS_VERSION:M[0-5].*) |
17 | !empty(OS_VERSION:M5.99.[5-9][0-9]) || \ | | 17 | SUSE_PREFER?= 12.1 |
18 | !empty(OS_VERSION:M5.99.[0-9][0-9][0-9]*)) | | 18 | . elif !empty(OS_VERSION:M5.99.[5-9][0-9]) || \ |
| | | 19 | !empty(OS_VERSION:M5.99.[0-9][0-9][0-9]*) |
19 | SUSE_PREFER?= 11.3 | | 20 | SUSE_PREFER?= 11.3 |
20 | .else | | 21 | . endif |
21 | SUSE_PREFER?= 10.0 | | | |
22 | .endif | | 22 | .endif |
| | | 23 | SUSE_PREFER?= 10.0 |
23 | | | 24 | |
24 | .for _version_ in ${EMUL_REQD:Msuse>=*:S/suse>=//} | | 25 | .for _version_ in ${EMUL_REQD:Msuse>=*:S/suse>=//} |
25 | SUSE_VERSION_REQD?= ${_version_} | | 26 | SUSE_VERSION_REQD?= ${_version_} |
26 | .endfor | | 27 | .endfor |
27 | .if !defined(SUSE_VERSION_REQD) || ${SUSE_PREFER} > ${SUSE_VERSION_REQD} | | 28 | .if !defined(SUSE_VERSION_REQD) || ${SUSE_PREFER} > ${SUSE_VERSION_REQD} |
28 | SUSE_VERSION_REQD= ${SUSE_PREFER} | | 29 | SUSE_VERSION_REQD= ${SUSE_PREFER} |
29 | .endif | | 30 | .endif |
30 | | | 31 | |
31 | EMUL_TYPE.linux?= suse-${SUSE_VERSION_REQD} | | 32 | EMUL_TYPE.linux?= suse-${SUSE_VERSION_REQD} |
32 | .endif | | 33 | .endif |
33 | EMUL_MODULES.linux?= # empty | | 34 | EMUL_MODULES.linux?= # empty |
34 | | | 35 | |
35 | .if ((${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64")) || \ | | 36 | .if ((${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64")) || \ |