summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-06-21 07:26:06 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-06-21 07:26:06 +0000
commit7cda4fa7bc0b81729c36b61b54bd31947457beb8 (patch)
tree0b4f00156e2a649f6aef9ff9eb1ed8a873a2ea67
parentbd442e37500ef0a57b213d03cea5cb9ef358ddc2 (diff)
downloadnetsurf-7cda4fa7bc0b81729c36b61b54bd31947457beb8.tar.gz
netsurf-7cda4fa7bc0b81729c36b61b54bd31947457beb8.tar.bz2
Amiga host support for framebuffer target (credit: Ole Loots)
svn path=/trunk/netsurf/; revision=10578
-rw-r--r--Makefile39
1 files changed, 30 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index e011b8563..94834e337 100644
--- a/Makefile
+++ b/Makefile
@@ -76,8 +76,16 @@ else
else
ifeq ($(HOST),Darwin)
HOST := macosx
+ endif
+ ifeq ($(HOST),FreeMiNT)
+ HOST := mint
endif
-
+ ifeq ($(HOST),mint)
+ ifeq ($(TARGET),)
+ TARGET := framebuffer
+ endif
+ endif
+
# Default target is GTK backend
ifeq ($(TARGET),)
TARGET := gtk
@@ -537,7 +545,6 @@ ifeq ($(TARGET),framebuffer)
$(eval $(call feature_enabled,MNG,-DWITH_MNG,-lmng,PNG/MNG/JNG (libmng)))
$(eval $(call feature_enabled,PNG,-DWITH_PNG,-lpng,PNG (libpng) ))
-
ifeq ($(NETSURF_FB_FONTLIB),freetype)
CFLAGS += -DFB_USE_FREETYPE $(shell freetype-config --cflags)
LDFLAGS += $(shell freetype-config --libs)
@@ -556,20 +563,34 @@ ifeq ($(TARGET),framebuffer)
$(eval $(call pkg_config_find_and_add,BMP,libnsbmp,BMP))
$(eval $(call pkg_config_find_and_add,GIF,libnsgif,GIF))
-
CFLAGS += -std=c99 -g -I. -Dsmall $(WARNFLAGS) \
-D_BSD_SOURCE \
-D_XOPEN_SOURCE=600 \
- -D_POSIX_C_SOURCE=200112L \
- $(shell $(PKG_CONFIG) --cflags libnsfb) \
- $(shell $(PKG_CONFIG) --cflags libhubbub libcurl openssl) \
- $(shell $(PKG_CONFIG) --cflags libcss) \
+ -D_POSIX_C_SOURCE=200112L \
+ $(shell $(PKG_CONFIG) --cflags libnsfb libhubbub libcss openssl) \
$(shell xml2-config --cflags)
+ ifeq ($(HOST),mint)
+ # freemint does not support pkg-config for libcurl
+ CFLAGS += $(shell curl-config --cflags)
+ else
+ CFLAGS += $(shell $(PKG_CONFIG) --cflags libcurl)
+ endif
+
LDFLAGS += -Wl,--whole-archive $(shell $(PKG_CONFIG) --libs libnsfb) -Wl,--no-whole-archive
- LDFLAGS += $(shell $(PKG_CONFIG) --libs libxml-2.0 libcurl libhubbub openssl)
- LDFLAGS += $(shell $(PKG_CONFIG) --libs libcss)
+ ifeq ($(HOST),mint)
+ LDFLAGS += $(shell curl-config --libs)
+ LDFLAGS += $(shell $(PKG_CONFIG) --libs libhubbub openssl libcss)
+ # xml-config returns -lsocket which is not needed and does not exist on all systems.
+ # because of that - hardcoded reference to libxml-2.0 here.
+ LDFLAGS += -L/usr/lib/ -lxml2 -lz -liconv
+ LDFLAGS += -lm
+ else
+ LDFLAGS += $(shell $(PKG_CONFIG) --libs libxml-2.0 libcurl libhubbub openssl)
+ LDFLAGS += $(shell $(PKG_CONFIG) --libs libcss)
+ endif
+
endif
# ----------------------------------------------------------------------------