mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Quick fix for building with gcc2. It's getting quite ugly though...
svn path=/trunk/netsurf/; revision=6813
This commit is contained in:
parent
7b1f478b5a
commit
be485d795e
9
Makefile
9
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)
|
||||
|
Loading…
Reference in New Issue
Block a user