From: Oliver Schmidt Date: Sun, 12 May 2013 16:19:46 +0000 (+0200) Subject: Made dependency handling for C sources actually work. X-Git-Tag: V2.14~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=16b77658a7918c4363d22cc8663e406d2cedea92;p=cc65 Made dependency handling for C sources actually work. --- diff --git a/libsrc/Makefile b/libsrc/Makefile index b4393a6ac..aa61dda6b 100644 --- a/libsrc/Makefile +++ b/libsrc/Makefile @@ -211,7 +211,7 @@ endef define COMPILE_recipe @echo $(TARGET) - $< -@$(CC) -t $(TARGET) $(CFLAGS) --create-dep $(@:.o=.d) -o $(@:.o=.s) $< +@$(CC) -t $(TARGET) $(CFLAGS) --create-dep $(@:.o=.d) --dep-target $@ -o $(@:.o=.s) $< @$(CA) -t $(TARGET) -o $@ $(@:.o=.s) endef