From: Kevin O'Connor Date: Thu, 18 Jun 2009 00:33:41 +0000 (-0400) Subject: Avoid makefile "else ifeq" syntax - old versions don't support it. X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=seabios.git;a=commitdiff_plain;h=d82a1ca4a0a481233414374ba2731a51303ec1b6 Avoid makefile "else ifeq" syntax - old versions don't support it. --- diff --git a/Makefile b/Makefile index c22a6c2..356e72c 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