| @@ -1,30 +1,30 @@ | | | @@ -1,30 +1,30 @@ |
1 | # $NetBSD: Makefile.common,v 1.8 2008/04/12 22:43:02 jlam Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.9 2009/12/15 06:35:29 asau Exp $ |
2 | | | 2 | |
3 | # smlnj also supports hppa, sparc, ppc, mlrisc & alpha | | 3 | # smlnj also supports hppa, sparc, ppc, mlrisc & alpha |
4 | # pkg support for those platforms, and say, solaris-x86 | | 4 | # pkg support for those platforms, and say, solaris-x86 |
5 | # is left as an (easy) exercise for the reader. | | 5 | # is left as an (easy) exercise for the reader. |
6 | ONLY_FOR_PLATFORM= Linux-*-i386 NetBSD-*-i386 SunOS-*-sparc \ | | 6 | ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-sparc NetBSD-*-powerpc \ |
7 | NetBSD-*-sparc NetBSD-*-powerpc | | 7 | FreeBSD-*-i386 Linux-*-i386 SunOS-*-sparc |
8 | | | 8 | |
9 | .include "../../mk/bsd.prefs.mk" | | 9 | .include "../../mk/bsd.prefs.mk" |
10 | | | 10 | |
11 | # Possible values of BOX and OS must be kept in sync with the | | 11 | # Possible values of BOX and OS must be kept in sync with the |
12 | # currently ported platforms. | | 12 | # currently ported platforms. |
13 | | | 13 | |
14 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" | | 14 | .if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" |
15 | OS= ${LOWER_OPSYS} | | | |
16 | .elif ${OPSYS} == "NetBSD" | | | |
17 | OS= bsd | | 15 | OS= bsd |
| | | 16 | .elif ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" |
| | | 17 | OS= ${LOWER_OPSYS} |
18 | .endif | | 18 | .endif |
19 | | | 19 | |
20 | PLIST_VARS+= nlffi # not available on all platforms | | 20 | PLIST_VARS+= nlffi # not available on all platforms |
21 | | | 21 | |
22 | .if ${MACHINE_ARCH} == "i386" | | 22 | .if ${MACHINE_ARCH} == "i386" |
23 | BOX= x86 | | 23 | BOX= x86 |
24 | PLIST.nlffi= yes | | 24 | PLIST.nlffi= yes |
25 | .elif ${MACHINE_ARCH} == "powerpc" | | 25 | .elif ${MACHINE_ARCH} == "powerpc" |
26 | BOX= ppc | | 26 | BOX= ppc |
27 | .elif ${MACHINE_ARCH} == "sparc" | | 27 | .elif ${MACHINE_ARCH} == "sparc" |
28 | BOX= ${MACHINE_ARCH} | | 28 | BOX= ${MACHINE_ARCH} |
29 | PLIST.nlffi= yes | | 29 | PLIST.nlffi= yes |
30 | .else | | 30 | .else |