From 97e1d9503f67561488fc3ad26ae18f4b463be6e6 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Mon, 28 Jul 2008 21:21:40 +0000 Subject: Make sure new Makefile works when cross-building to RISC OS, as well as when building natively. svn path=/trunk/netsurf/; revision=4778 --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ccaa72004..0e02f8189 100644 --- a/Makefile +++ b/Makefile @@ -2,15 +2,16 @@ # Makefile for NetSurf # # Copyright 2007 Daniel Silverstone +# Copyright 2008 Rob Kendrick # -# - # Trivially, invoke as: # make # to build native, or: # make TARGET=riscos # to cross-build for RO. # +# Look at Makefile.config for configuration options. +# # Tested on unix platforms (building for GTK and cross-compiling for RO) and # on RO (building for RO). # @@ -171,11 +172,15 @@ LDFLAGS += -lz ifeq ($(HOST),riscos) LDFLAGS := -Xlinker -symbols=$(OBJROOT)/sym -lxml2 -lz -lm -lcurl -lssl \ -lcrypto -lcares +endif + +ifeq ($(TARGET),riscos) $(eval $(call feature_enabled,NSSVG,-DWITH_NS_SVG,-lsvgtiny)) $(eval $(call feature_enabled,DRAW,-DWITH_DRAW,-lpencil)) $(eval $(call feature_enabled,SPRITE,-DWITH_SPRITE,)) $(eval $(call feature_enabled,ARTWORKS,-DWITH_ARTWORKS,)) + endif # ---------------------------------------------------------------------------- -- cgit v1.2.3