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
This commit is contained in:
parent
447cf563ca
commit
64ccc3b803
|
@ -179,7 +179,7 @@ $(objutil)/%.o: $(objutil)/%.c
|
||||||
@printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
|
@printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
|
||||||
$(HOSTCC) -MMD -I$(subst $(objutil)/,util/,$(dir $<)) -I$(dir $<) $(HOSTCFLAGS) -c -o $@ $<
|
$(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"
|
@printf " CC $(subst $(obj)/,,$(@))\n"
|
||||||
$(CC) -MMD $(CFLAGS) -c -o $@ $<
|
$(CC) -MMD $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue