diff options
author | François Revel <mmu_man@netsurf-browser.org> | 2009-03-21 23:20:15 +0000 |
---|---|---|
committer | François Revel <mmu_man@netsurf-browser.org> | 2009-03-21 23:20:15 +0000 |
commit | be485d795e1b5260eec80b25d66c95f887b46f9a (patch) | |
tree | ac9653e88db6c060a48f062673144d4dc20c962f /Makefile | |
parent | 7b1f478b5a3d31777744ad436e16d59c9ca0a34c (diff) | |
download | netsurf-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-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) |