提交 f7021d23 编写于 作者: V vit9696

User: Add header dependency tracking during build

上级 a062e103
......@@ -37,6 +37,7 @@ Utilities/TestSmbios/Smbios
Utilities/TestPeCoff/PeCoff
*.o
*.o.tmp
*.d
*.exe
*.gcda
*.gcno
......
......@@ -238,7 +238,11 @@ OBJS := $(addprefix $(OUT_DIR)/,$(OBJS))
$(OUT_DIR)/%.o: %.c
@$(MKDIR) $(OUT_DIR)
$(CC) $(CFLAGS) $< -o $@
$(CC) -MMD -MT $@ -MF $(OUT_DIR)/$*.d $(CFLAGS) $< -o $@
DEP := $(OBJS:%.o=%.d)
DEP_TEST := $(OBJ:%.o=%.d)
-include $(DEP) $(DEP_TEST)
all: $(PRODUCT)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册