summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile19
-rw-r--r--Makefile.config14
-rw-r--r--Makefile.sources9
3 files changed, 41 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f92262902..36b5efe9a 100644
--- a/Makefile
+++ b/Makefile
@@ -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