Buildsystem hackery to support cross compiling for AmigaOS4

svn path=/trunk/netsurf/; revision=11952
This commit is contained in:
John Mark Bell 2011-03-09 21:32:54 +00:00
parent f71dcf9667
commit ac1ecacb1b
2 changed files with 15 additions and 7 deletions

View File

@ -111,7 +111,7 @@ RESOURCES =
ifneq ($(TARGET),riscos)
ifneq ($(TARGET),gtk)
ifneq ($(TARGET),beos)
ifneq ($(TARGET),amiga)
ifneq ($(findstring amiga,$(TARGET)),amiga)
ifneq ($(TARGET),framebuffer)
ifneq ($(TARGET),windows)
ifneq ($(TARGET),atari)
@ -212,11 +212,19 @@ else
PKG_CONFIG :=
endif
else
ifeq ($(TARGET),amiga)
ifneq ($(HOST),amiga)
# TODO: We'll eventually need ppc-unknown-amigaos4, too -- how?
GCCSDK_INSTALL_ENV ?= /opt/netsurf/m68k-unknown-amigaos/env
GCCSDK_INSTALL_CROSSBIN ?= /opt/netsurf/m68k-unknown-amigaos/cross/bin
ifeq ($(findstring amiga,$(TARGET)),amiga)
ifneq ($(findstring amiga,$(HOST)),amiga)
ifeq ($(TARGET),amigaos3)
GCCSDK_INSTALL_ENV ?= /opt/netsurf/m68k-unknown-amigaos/env
GCCSDK_INSTALL_CROSSBIN ?= /opt/netsurf/m68k-unknown-amigaos/cross/bin
SUBTARGET = os3
else
GCCSDK_INSTALL_ENV ?= /opt/netsurf/ppc-amigaos/env
GCCSDK_INSTALL_CROSSBIN ?= /opt/netsurf/ppc-amigaos/cross/bin
endif
override TARGET := amiga
CC := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*gcc)

View File

@ -2,7 +2,7 @@
# Amiga target setup
# ----------------------------------------------------------------------------
CFLAGS += -std=c99 -I . -Dnsamiga
CFLAGS += -std=c99 -I . -Dnsamiga -U__STRICT_ANSI__
NETSURF_FEATURE_ROSPRITE_CFLAGS := -DWITH_NSSPRITE
NETSURF_FEATURE_BMP_CFLAGS := -DWITH_BMP