aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2345fa6..4477c66 100644
--- a/Makefile
+++ b/Makefile
@@ -85,5 +85,5 @@ clean:
rm -rf cc $(DRIVER_OBJ) cc-qbe $(OBJ) stage2 stage3
deps.mk: $(DRIVER_SRC) $(SRC) config.h
- $(CC) $(CFLAGS) -MM $(DRIVER_SRC) $(SRC) >$@
+ for src in $(DRIVER_SRC) $(SRC); do $(CC) $(CFLAGS) -MM -MT "\$$(objdir)/$${src%.c}.o" "$$src"; done >$@
-include deps.mk