]> git.sur5r.net Git - cc65/commitdiff
Create the .inc files before creating the dependency file, so we avoid
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 29 Sep 2009 11:59:10 +0000 (11:59 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 29 Sep 2009 11:59:10 +0000 (11:59 +0000)
problems with files that weren't found.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4269 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/make/gcc.mak
src/ld65/make/gcc.mak

index f579fc7edb9f982df3fd0f5ac19b018aa979b657..66ba08a32943412c4e90a76d1adca075ecb4f973 100644 (file)
@@ -108,9 +108,9 @@ zap:        clean
 # Make the dependencies
 
 .PHONY: depend dep
-depend dep:    $(OBJS:.o=.c)
+depend dep:    $(INCS) $(OBJS:.o=.c)
        @echo "Creating dependency information"
-       $(CC) $(CFLAGS) -MM -MG $^ > .depend
+       $(CC) $(CFLAGS) -MM $(OBJS:.o=.c) > .depend
 
 # -----------------------------------------------------------------------------
 # Rules to make config includes
index fa34ffdcf92b80b8f8c3f951119f7a93cf83eb64..22631db65e0f86b39bbe7db94b343c745c2b82ca 100644 (file)
@@ -115,9 +115,9 @@ zap:        clean
 # Make the dependencies
 
 .PHONY: depend dep
-depend dep:    $(OBJS:.o=.c)
+depend dep:    $(INCS) $(OBJS:.o=.c)
        @echo "Creating dependency information"
-       $(CC) $(CFLAGS) -MM -MG $^ > .depend
+       $(CC) $(CFLAGS) -MM $(OBJS:.o=.c) > .depend
 
 # -----------------------------------------------------------------------------
 # Rules to make config includes