summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2009-03-21 23:20:15 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2009-03-21 23:20:15 +0000
commitbe485d795e1b5260eec80b25d66c95f887b46f9a (patch)
treeac9653e88db6c060a48f062673144d4dc20c962f /Makefile
parent7b1f478b5a3d31777744ad436e16d59c9ca0a34c (diff)
downloadnetsurf-be485d795e1b5260eec80b25d66c95f887b46f9a.tar.gz
netsurf-be485d795e1b5260eec80b25d66c95f887b46f9a.tar.bz2
Quick fix for building with gcc2. It's getting quite ugly though...
svn path=/trunk/netsurf/; revision=6813
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 55858b381..c0e12bcbb 100644
--- a/Makefile
+++ b/Makefile
@@ -754,6 +754,14 @@ endef
# 1 = Source file
# 2 = obj filename, no prefix
# 3 = dep filename, no prefix
+ifeq ($(GCCVER),2)
+define compile_target_c
+$$(OBJROOT)/$(2): $$(OBJROOT)/created $$(DEPROOT)/$(3)
+ $$(VQ)echo " COMPILE: $(1)"
+ $$(Q)$$(CXX) $$(CFLAGS) -o $$@ -c $(1)
+
+endef
+else
define compile_target_c
$$(DEPROOT)/$(3) $$(OBJROOT)/$(2): $$(OBJROOT)/created
$$(VQ)echo " COMPILE: $(1)"
@@ -762,6 +770,7 @@ $$(DEPROOT)/$(3) $$(OBJROOT)/$(2): $$(OBJROOT)/created
-MF $$(DEPROOT)/$(3) -o $$(OBJROOT)/$(2) -c $(1)
endef
+endif
define compile_target_cpp
$$(OBJROOT)/$(2): $$(OBJROOT)/created $$(DEPROOT)/$(3)