diff --git a/Makefile b/Makefile index facc0a8d83..066c869740 100644 --- a/Makefile +++ b/Makefile @@ -379,6 +379,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 $@ $<