summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2008-03-19 00:48:08 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2008-03-19 00:48:08 +0000
commita3f44e659bd5b87946e69449f132b63788205455 (patch)
tree24d3323361b36dc9b04cf37762fdd850d0dab149
parent8b7c27d31eb24c20181928b58f711aa37d2f943a (diff)
downloadnetsurf-a3f44e659bd5b87946e69449f132b63788205455.tar.gz
netsurf-a3f44e659bd5b87946e69449f132b63788205455.tar.bz2
Merge HOST_SYSTEM into HOST; ask non-system only header dependency.
svn path=/trunk/netsurf/; revision=3966
-rw-r--r--Makefile.unix25
1 files changed, 10 insertions, 15 deletions
diff --git a/Makefile.unix b/Makefile.unix
index ce6b0b7b4..f51c1ec88 100644
--- a/Makefile.unix
+++ b/Makefile.unix
@@ -24,16 +24,15 @@
all: all-program
# Determine host type
-HOST_SYSTEM := $(shell uname -s)
+HOST := $(shell uname -s)
-ifeq ($(HOST_SYSTEM),riscos)
-# Native build on RO
-HOST=riscos
+ifeq ($(HOST),riscos)
+# Build happening on RO platform, default target is RO backend
ifeq ($(TARGET),)
TARGET := riscos
endif
else
-HOST=unix
+# Build happening on non-RO platform, default target is GTK backend
ifeq ($(TARGET),)
TARGET := gtk
endif
@@ -63,9 +62,6 @@ WARNFLAGS = -W -Wall -Wundef -Wpointer-arith -Wcast-qual \
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \
-Wnested-externs -Winline -Wno-unused-parameter -Wuninitialized
-STARTGROUP := -Wl,--start-group
-ENDGROUP := -Wl,--end-group
-
ifeq ($(TARGET),riscos)
ifeq ($(HOST),riscos)
# Build for RO on RO
@@ -76,6 +72,9 @@ CC := /home/riscos/cross/bin/gcc
endif
STARTGROUP :=
ENDGROUP :=
+else
+STARTGROUP := -Wl,--start-group
+ENDGROUP := -Wl,--end-group
endif
LDFLAGS := -lxml2 -lz -lm -lcurl -lssl -lcrypto -lmng \
@@ -98,11 +97,9 @@ GTKLDFLAGS := $(shell pkg-config --cflags --libs libglade-2.0 gtk+-2.0 gthread-2
CFLAGS += $(GTKCFLAGS)
LDFLAGS += $(GTKLDFLAGS) -llcms
-ifneq ($(HOST),riscos)
-ifeq ($(shell uname -s),Windows_NT)
+ifeq ($(HOST),Windows_NT)
CFLAGS += -U__STRICT_ANSI__
endif
-endif
endif
@@ -151,13 +148,11 @@ DEPFILES :=
# 2 = dep filename, no prefix
# 3 = obj filename, no prefix
define dependency_generate_c
-
DEPFILES += $(2)
-
$$(DEPROOT)/$(2): $$(DEPROOT)/created $(1) css/css_enum.h css/parser.h
$$(VQ)echo " DEP: $(1)"
$$(Q)$$(RM) $$(DEPROOT)/$(2)
- $$(Q)$$(CC) $$(CFLAGS) -M -MT '$$(DEPROOT)/$2 $$(OBJROOT)/$(3)' \
+ $$(Q)$$(CC) $$(CFLAGS) -MM -MT '$$(DEPROOT)/$2 $$(OBJROOT)/$(3)' \
-MF $$(DEPROOT)/$(2) $(1)
endef
@@ -170,7 +165,7 @@ DEPFILES += $(2)
$$(DEPROOT)/$(2): $$(DEPROOT)/created $(1)
$$(VQ)echo " DEP: $(1)"
$$(Q)$$(RM) $$(DEPROOT)/$(2)
- $$(Q)$$(CC) $$(CFLAGS) -M -MT '$$(DEPROOT)/$2 $$(OBJROOT)/$(3)' \
+ $$(Q)$$(CC) $$(CFLAGS) -MM -MT '$$(DEPROOT)/$2 $$(OBJROOT)/$(3)' \
-MF $$(DEPROOT)/$(2) $(1)
endef