From 1a0d09947a4e883cb488182d113910b0175e20d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Wed, 26 Dec 2012 08:12:13 +0000 Subject: [PATCH] automatic dependency generation did not work --- BaS_gcc/.cproject | 7 ++++--- BaS_gcc/Makefile | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/BaS_gcc/.cproject b/BaS_gcc/.cproject index de1188a..8f54c38 100644 --- a/BaS_gcc/.cproject +++ b/BaS_gcc/.cproject @@ -168,6 +168,7 @@ make + all true true @@ -175,7 +176,6 @@ make - clean true true @@ -183,15 +183,16 @@ make + ram true true true - + make - basflash + bfl true true true diff --git a/BaS_gcc/Makefile b/BaS_gcc/Makefile index f8b751a..1e6f9a1 100644 --- a/BaS_gcc/Makefile +++ b/BaS_gcc/Makefile @@ -132,7 +132,8 @@ $(OBJDIR)/%.o:$(SRCDIR)/%.S $(CC) -c $(CFLAGS) -Wa,--bitwise-or $(INCLUDE) $< -o $@ depend: $(ASRCS) $(CSRCS) - $(CC) $(CFLAGS) $(INCLUDE) -M $(ASRCS) $(CSRCS) > depend + $(CC) $(CFLAGS) $(INCLUDE) -M $(ASRCS) $(CSRCS) | sed -e 's/^\(.*\).o:/$(OBJDIR)\/\1.o:/' > depend + ifneq (clean,$(MAKECMDGOALS)) -include depend