r8254 itix - /branches/itix/netsurf/Makefile
netsurf at semichrome.net
netsurf at semichrome.net
Thu Jul 2 11:39:49 BST 2009
Author: itix
Date: Thu Jul 2 05:39:48 2009
New Revision: 8254
URL: http://source.netsurf-browser.org?rev=8254&view=rev
Log:
Added MorphOS to makefile rules
Modified:
branches/itix/netsurf/Makefile
Modified: branches/itix/netsurf/Makefile
URL: http://source.netsurf-browser.org/branches/itix/netsurf/Makefile?rev=8254&r1=8253&r2=8254&view=diff
==============================================================================
--- branches/itix/netsurf/Makefile (original)
+++ branches/itix/netsurf/Makefile Thu Jul 2 05:39:48 2009
@@ -76,12 +76,19 @@
else
ifeq ($(HOST),Darwin)
HOST := macosx
- endif
-
- # Default target is GTK backend
- ifeq ($(TARGET),)
- TARGET := gtk
- endif
+ eelse
+ ifeq ($(HOST),MorphOS)
+ HOST := morphos
+ ifeq ($(TARGET),)
+ TARGET := morphos
+ endif
+ else
+
+ # Default target is GTK backend
+ ifeq ($(TARGET),)
+ TARGET := gtk
+ endif
+ endif
endif
endif
endif
@@ -92,8 +99,10 @@
ifneq ($(TARGET),gtk)
ifneq ($(TARGET),beos)
ifneq ($(TARGET),amiga)
- ifneq ($(TARGET),framebuffer)
- $(error Unknown TARGET "$(TARGET)", should either be "riscos", "gtk", "beos", "amiga", or "framebuffer")
+ ifneq ($(TARGET),morphos)
+ ifneq ($(TARGET),framebuffer)
+ $(error Unknown TARGET "$(TARGET)", should either be "riscos", "gtk", "beos", "amiga", "morphos", or "framebuffer")
+ endif
endif
endif
endif
@@ -466,6 +475,29 @@
CFLAGS += -DNS_AMIGA_CAIRO -I SDK:local/common/include/cairo
LDFLAGS += -use-dynld -lcairo -lpixman-1 -lfreetype -lfontconfig -lpng12 -lexpat
endif
+endif
+
+# ----------------------------------------------------------------------------
+# MorphOS target setup
+# ----------------------------------------------------------------------------
+
+ifeq ($(TARGET),morphos)
+ CC := gcc4 -noixemul
+ NETSURF_FEATURE_ROSPRITE_CFLAGS := -DWITH_NSSPRITE
+ NETSURF_FEATURE_HUBBUB_CFLAGS := -DWITH_HUBBUB
+ NETSURF_FEATURE_BMP_CFLAGS := -DWITH_BMP
+ NETSURF_FEATURE_GIF_CFLAGS := -DWITH_GIF
+ NETSURF_FEATURE_PNG_CFLAGS := -DWITH_PNG
+ NETSURF_FEATURE_NSSVG_CFLAGS := -DWITH_NS_SVG
+
+ $(eval $(call feature_enabled,ROSPRITE,-DWITH_NSSPRITE,-lrosprite,RISC OS Sprite decoder))
+ $(eval $(call feature_enabled,HUBBUB,-DWITH_HUBBUB,-lhubbub -lparserutils,Hubbub HTML parser))
+ $(eval $(call feature_enabled,BMP,-DWITH_BMP,-lnsbmp,NetSurf BMP decoder))
+ $(eval $(call feature_enabled,GIF,-DWITH_GIF,-lnsgif,NetSurf GIF decoder))
+ $(eval $(call feature_enabled,PNG,-DWITH_PNG,-lpng,PNG support))
+
+ CFLAGS += -noixemul -std=c99 -I. -Dnsmui -mstring -mmultiple -mcpu=750 -idirafter/usr/local/include -Imui/include -D__MORPHOS_SHAREDLIBS -DAROS_ALMOST_COMPATIBLE -U__STRICT_ANSI__ -DMULTITHREADED -D__MORPHOS2__
+ LDFLAGS += -Wl,-Map=file.map -noixemul -lxml2 -lcurl -lrxspencer -lssl -lcrypto -liconv -lttengine -lcodesets
endif
# ----------------------------------------------------------------------------
More information about the netsurf-commits
mailing list