projects
/
seabios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a1d0fc
)
Avoid makefile "else ifeq" syntax - old versions don't support it.
author
Kevin O'Connor
<kevin@koconnor.net>
Thu, 18 Jun 2009 00:33:41 +0000
(20:33 -0400)
committer
Kevin O'Connor
<kevin@koconnor.net>
Thu, 18 Jun 2009 00:33:41 +0000
(20:33 -0400)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index c22a6c2cc66689917e9cefdd9692d163148a67ae..356e72cfc127eccfbe870c59529536edeb050d83 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-76,7
+76,8
@@
define whole-compile
$(Q)printf '$(foreach i,$2,#include "../$i"\n)' > $3.tmp.c
$(Q)$(CC) $1 -fwhole-program -DWHOLE_PROGRAM -c $3.tmp.c -o $3
endef
-else ifeq "$(COMPSTRAT)" "2"
+else
+ifeq "$(COMPSTRAT)" "2"
# Second menthod - don't use -fwhole-program at all.
define whole-compile
@echo " Compiling whole program $3"
@@
-90,6
+91,7
@@
define whole-compile
$(Q)$(CC) $1 -fwhole-program -DWHOLE_PROGRAM -combine -c $2 -o $3
endef
endif
+endif
$(OUT)%.s: %.c