Added changes for TARGET=amiga

svn path=/trunk/netsurf/; revision=4865
This commit is contained in:
Chris Young 2008-08-02 14:35:40 +00:00
parent 26203b2215
commit 611e4f8cbe
3 changed files with 41 additions and 1 deletions

View File

@ -60,6 +60,12 @@ else
# Haiku implements the BeOS API
HOST := beos
endif
ifeq ($(HOST),AmigaOS)
HOST := amiga
ifeq ($(TARGET),)
TARGET := amiga
endif
endif
ifeq ($(HOST),beos)
# Build happening on BeOS platform, default target is BeOS backend
ifeq ($(TARGET),)
@ -81,7 +87,9 @@ ifneq ($(TARGET),riscos)
ifneq ($(TARGET),gtk)
ifneq ($(TARGET),beos)
ifneq ($(TARGET),debug)
$(error Unknown TARGET "$(TARGET)", should either be "riscos", "gtk", "beos" or "debug")
ifneq ($(TARGET),amiga)
$(error Unknown TARGET "$(TARGET)", should either be "riscos", "gtk", "beos", "amiga" or "debug")
endif
endif
endif
endif
@ -362,6 +370,15 @@ ifeq ($(TARGET),beos)
LDFLAGS += -lbe -ltranslation $(NETLDFLAGS)
endif
# ----------------------------------------------------------------------------
# Amiga target setup
# ----------------------------------------------------------------------------
ifeq ($(TARGET),amiga)
CFLAGS += -mcrt=newlib -D__USE_INLINE__ -std=c99 -I .
LDFLAGS += -lxml2 -lz -ljpeg -lcurl -lm -lmng -lsocket -lpthread -lrosprite -liconv -lregex -lauto -lssl -lcrypto -lamisslauto -mcrt=newlib
endif
# ----------------------------------------------------------------------------
# Debug target setup
# ----------------------------------------------------------------------------

View File

@ -96,6 +96,20 @@ ifeq ($(TARGET),gtk)
endif
# ----------------------------------------------------------------------------
# Amiga-specific options
# ----------------------------------------------------------------------------
ifeq ($(TARGET),amiga)
# Use James Shaw's librosprite for rendering RISC OS Sprites
# Valid options: YES, NO, AUTO
NETSURF_USE_ROSPRITE := YES
# Use libharu to enable PDF export and GTK printing support.
# Valid options: YES, NO
NETSURF_USE_HARU_PDF := NO
endif
# Include any local overrides
-include Makefile.config.override

View File

@ -82,6 +82,10 @@ RDEP_BEOS := $(addprefix beos/res/,$(RDEP_BEOS)) \
S_DEBUG := netsurfd.c debug_bitmap.c filetyped.c fontd.c
S_DEBUG := $(addprefix debug/,$(S_DEBUG))
# S_AMIGA are sources purely for the Amiga build
S_AMIGA := compat.c gui.c tree.c history.c hotlist.c schedule.c thumbnail.c misc.c bitmap.c font.c filetype.c utf8.c login.c plotters.c
S_AMIGA := $(addprefix amiga/,$(S_AMIGA))
# Some extra rules for building the scanner etc.
css/css_enum.c css/css_enum.h: css/css_enums css/makeenum
$(VQ)echo "MAKEENUM: css"
@ -149,6 +153,11 @@ SOURCES := $(S_COMMON) $(S_IMAGE) $(S_DEBUG)
EXETARGET := nsdebug
endif
ifeq ($(TARGET),amiga)
SOURCES := $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_AMIGA)
EXETARGET := NetSurf
endif
ifeq ($(SOURCES),)
$(error Unable to build NetSurf, could not determine set of sources to build)
endif