diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-08-02 14:35:40 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-08-02 14:35:40 +0000 |
commit | 611e4f8cbe5bfce70dc24a7913fcf82212f70b27 (patch) | |
tree | a1fb3a70255c8fe15783a7bb6bab624cba4abb9e | |
parent | 26203b22157e0b92caa973d712968f4f4bbeee6c (diff) | |
download | netsurf-611e4f8cbe5bfce70dc24a7913fcf82212f70b27.tar.gz netsurf-611e4f8cbe5bfce70dc24a7913fcf82212f70b27.tar.bz2 |
Added changes for TARGET=amiga
svn path=/trunk/netsurf/; revision=4865
-rw-r--r-- | Makefile | 19 | ||||
-rw-r--r-- | Makefile.config | 14 | ||||
-rw-r--r-- | Makefile.sources | 9 |
3 files changed, 41 insertions, 1 deletions
@@ -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 @@ -363,6 +371,15 @@ ifeq ($(TARGET),beos) 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 # ---------------------------------------------------------------------------- diff --git a/Makefile.config b/Makefile.config index 0d8c8778d..8765610f3 100644 --- a/Makefile.config +++ b/Makefile.config @@ -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 diff --git a/Makefile.sources b/Makefile.sources index 8c5ad41bd..90ae33e27 100644 --- a/Makefile.sources +++ b/Makefile.sources @@ -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 |