summaryrefslogtreecommitdiff
path: root/Makefile.defaults
diff options
context:
space:
mode:
authorFrançois Revel <mmu_man@netsurf-browser.org>2011-01-19 01:36:21 +0000
committerFrançois Revel <mmu_man@netsurf-browser.org>2011-01-19 01:36:21 +0000
commit6d1169e92d421855284dd27e8695e6bdf1e216f3 (patch)
tree02068006e63ce6809d8411e4cebcd801de8ca53b /Makefile.defaults
parentebc216434fd5e090df3493e4eb444efb330ee8e4 (diff)
downloadnetsurf-6d1169e92d421855284dd27e8695e6bdf1e216f3.tar.gz
netsurf-6d1169e92d421855284dd27e8695e6bdf1e216f3.tar.bz2
Add the required makefile stuff to build NetSurf for OSX using 'make cocoa' in trunk/. Crashes for now though. Requires some libs installed with macports to /opt/local.
svn path=/trunk/netsurf/; revision=11380
Diffstat (limited to 'Makefile.defaults')
-rw-r--r--Makefile.defaults39
1 files changed, 39 insertions, 0 deletions
diff --git a/Makefile.defaults b/Makefile.defaults
index c0d2e1b1a..32bfe8f18 100644
--- a/Makefile.defaults
+++ b/Makefile.defaults
@@ -345,6 +345,45 @@ ifeq ($(TARGET),atari)
endif
+# ----------------------------------------------------------------------------
+# Cocoa-specific options
+# ----------------------------------------------------------------------------
+ifeq ($(TARGET),cocoa)
+
+ # Force using glibc internal iconv implementation instead of external libiconv
+ # Valid options: YES, NO
+ NETSURF_USE_LIBICONV_PLUG := NO
+
+ # Enable NetSurf's use of librosprite for displaying RISC OS Sprites
+ # Valid options: YES, NO, AUTO
+ NETSURF_USE_ROSPRITE := NO
+
+ # Enable NetSurf's use of libwebp/libvpx for displaying WebPs
+ # Valid options: YES, NO
+ NETSURF_USE_WEBP := NO
+
+ # Enable NetSurf's use of librsvg in conjunction with Cairo to display SVGs
+ # Valid options: YES, NO, AUTO
+ NETSURF_USE_RSVG := AUTO
+
+ # Enable NetSurf's use of libsvgtiny for displaying SVGs
+ # Valid options: YES, NO, AUTO
+ NETSURF_USE_NSSVG := YES
+
+ NETSURF_USE_MNG := NO
+
+ NETSURF_ATARI_USE_FREETYPE := YES
+
+ # Optimisation levels
+ CFLAGS += -O2 -Wuninitialized
+
+ WARNFLAGS = -W -Wundef -Wpointer-arith \
+ -Wcast-align -Wwrite-strings -Wstrict-prototypes \
+ -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \
+ -Wnested-externs -Wl,-t
+
+endif
+
# Include any local configuration
-include Makefile.config