summaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2011-05-20 23:08:12 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2011-05-20 23:08:12 +0000
commit64ccc3b80348d5d8e6b8f698ec5ef2b596a46153 (patch)
tree0842c7190243672f76134a22c3b5c61cc4750c36 /Makefile.inc
parent447cf563ca03902d744c9dd5a269bc1940f2eb72 (diff)
downloadcoreboot-64ccc3b80348d5d8e6b8f698ec5ef2b596a46153.tar.gz
coreboot-64ccc3b80348d5d8e6b8f698ec5ef2b596a46153.tar.bz2
coreboot-64ccc3b80348d5d8e6b8f698ec5ef2b596a46153.zip
Handle both cases, obj being absolute and relative
gnu make's handling of filenames is less than optimal. It simply compares strings, so foo/../bar is different from bar, even though they're logically the same. Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Acked-by: Patrick Georgi <patrick@georgi-clan.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6605 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 76bfc262f2fd..a488a77c68a7 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -179,7 +179,7 @@ $(objutil)/%.o: $(objutil)/%.c
@printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
$(HOSTCC) -MMD -I$(subst $(objutil)/,util/,$(dir $<)) -I$(dir $<) $(HOSTCFLAGS) -c -o $@ $<
-$(abspath $(obj))/%.ramstage.o: $(obj)/%.c $(obj)/config.h $(OPTION_TABLE_H)
+$(obj)/%.ramstage.o $(abspath $(obj))/%.ramstage.o: $(obj)/%.c $(obj)/config.h $(OPTION_TABLE_H)
@printf " CC $(subst $(obj)/,,$(@))\n"
$(CC) -MMD $(CFLAGS) -c -o $@ $<