2009-12-15 07:35:29 +01:00
|
|
|
# $NetBSD: Makefile.common,v 1.9 2009/12/15 06:35:29 asau Exp $
|
2003-03-21 23:54:38 +01:00
|
|
|
|
|
|
|
# smlnj also supports hppa, sparc, ppc, mlrisc & alpha
|
|
|
|
# pkg support for those platforms, and say, solaris-x86
|
|
|
|
# is left as an (easy) exercise for the reader.
|
2009-12-15 07:35:29 +01:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-sparc NetBSD-*-powerpc \
|
|
|
|
FreeBSD-*-i386 Linux-*-i386 SunOS-*-sparc
|
2003-03-21 23:54:38 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
# Possible values of BOX and OS must be kept in sync with the
|
|
|
|
# currently ported platforms.
|
|
|
|
|
2009-12-15 07:35:29 +01:00
|
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD"
|
2003-03-21 23:54:38 +01:00
|
|
|
OS= bsd
|
2009-12-15 07:35:29 +01:00
|
|
|
.elif ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
|
|
|
|
OS= ${LOWER_OPSYS}
|
2003-03-21 23:54:38 +01:00
|
|
|
.endif
|
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= nlffi # not available on all platforms
|
2003-07-02 01:10:32 +02:00
|
|
|
|
2003-03-21 23:54:38 +01:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
BOX= x86
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.nlffi= yes
|
2003-07-02 01:10:32 +02:00
|
|
|
.elif ${MACHINE_ARCH} == "powerpc"
|
|
|
|
BOX= ppc
|
2003-03-21 23:54:38 +01:00
|
|
|
.elif ${MACHINE_ARCH} == "sparc"
|
|
|
|
BOX= ${MACHINE_ARCH}
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.nlffi= yes
|
2006-10-19 21:47:34 +02:00
|
|
|
.else
|
|
|
|
# for "make fetch", default to i386 instead of trying to download
|
|
|
|
# a non-existing file
|
|
|
|
BOX= x86
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.nlffi= yes
|
2003-03-21 23:54:38 +01:00
|
|
|
.endif
|
|
|
|
|
2005-12-08 10:14:50 +01:00
|
|
|
PLIST_SUBST+= BOX=${BOX:Q} OS=${OS:Q} NLFFI=${NLFFI}
|