diff --git a/Makefile b/Makefile index 4052e81a2e..143197d3f0 100644 --- a/Makefile +++ b/Makefile @@ -414,6 +414,10 @@ $(TEST_BUILDDIR)/%.o: $(TEST_SUBDIR)/%.c $(TEST_BUILDDIR)/%.d: $(TEST_SUBDIR)/%.c $(SCANINC) -M $@ $(INCLUDE_SCANINC_ARGS) -I tools/agbcc/include $< +ifneq ($(NODEP),1) +-include $(addprefix $(OBJ_DIR)/,$(TEST_SRCS:.c=.d)) +endif + $(ASM_BUILDDIR)/%.o: $(ASM_SUBDIR)/%.s $(AS) $(ASFLAGS) -o $@ $<