1 # $NetBSD: Makefile.common,v 1.8 2008/04/12 22:43:02 jlam Exp $
3 # smlnj also supports hppa, sparc, ppc, mlrisc & alpha
4 # pkg support for those platforms, and say, solaris-x86
5 # is left as an (easy) exercise for the reader.
6 ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-sparc NetBSD-*-powerpc \
7 FreeBSD-*-i386 Linux-*-i386 SunOS-*-sparc
9 .include "../../mk/bsd.prefs.mk"
11 # Possible values of BOX and OS must be kept in sync with the
12 # currently ported platforms.
14 .if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD"
16 .elif ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
20 PLIST_VARS+= nlffi # not available on all platforms
22 .if ${MACHINE_ARCH} == "i386"
25 .elif ${MACHINE_ARCH} == "powerpc"
27 .elif ${MACHINE_ARCH} == "sparc"
31 # for "make fetch", default to i386 instead of trying to download
37 PLIST_SUBST+= BOX=${BOX:Q} OS=${OS:Q} NLFFI=${NLFFI}