From: uz Date: Tue, 29 Sep 2009 11:59:10 +0000 (+0000) Subject: Create the .inc files before creating the dependency file, so we avoid X-Git-Tag: V2.13.0rc2~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=16f05a78c25c8206a666442f16d3edc4783941f7;p=cc65 Create the .inc files before creating the dependency file, so we avoid problems with files that weren't found. git-svn-id: svn://svn.cc65.org/cc65/trunk@4269 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/make/gcc.mak b/src/ca65/make/gcc.mak index f579fc7ed..66ba08a32 100644 --- a/src/ca65/make/gcc.mak +++ b/src/ca65/make/gcc.mak @@ -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 diff --git a/src/ld65/make/gcc.mak b/src/ld65/make/gcc.mak index fa34ffdcf..22631db65 100644 --- a/src/ld65/make/gcc.mak +++ b/src/ld65/make/gcc.mak @@ -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