Comments
Patch
===================================================================
@@ -356,11 +356,20 @@
ifeq ($(_OS),CYGWIN_)
STACK=-Wl,--stack,16384000
endif
+
$(objutil)/romcc/romcc: $(top)/util/romcc/romcc.c
@printf " HOSTCC $(subst $(obj)/,,$(@)) (this may take a while)\n"
@# Note: Adding -O2 here might cause problems. For details see:
@# http://www.coreboot.org/pipermail/coreboot/2010-February/055825.html
$(HOSTCC) -g $(STACK) -Wall -o $@ $<
+$(obj)/%.o: $(obj)/%.c $(obj)/config.h
+ printf " CC $(subst $(obj)/,,$(@))\n"
+ $(CC) -MMD $(CFLAGS) -c -o $@ $<
+
+$(obj)/util/%.o: $(obj)/util/%.c $(obj)/config.h
+ printf " HOSTCC $(subst $(obj)/,,$(@))\n"
+ $(HOSTCC) -MMD $(HOSTCFLAGS) -c -o $@ $<
+
.PHONY: $(PHONY) prepare clean distclean doxygen doxy coreboot .xcompile