aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-06-17 20:33:41 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-06-17 20:33:41 -0400
commitd82a1ca4a0a481233414374ba2731a51303ec1b6 (patch)
treeeaf8d46e216d38eb3e8cefb79757dc470b77080c /Makefile
parent5a1d0fcfdcba55c5eb04c539dd5038059fc3a204 (diff)
downloadseabios-d82a1ca4a0a481233414374ba2731a51303ec1b6.tar.gz
Avoid makefile "else ifeq" syntax - old versions don't support it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c22a6c2c..356e72cf 100644
--- 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