From 67c3a3be4ca8c8c0e92a3ad169b215fba14c3029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sun, 14 Oct 2012 07:01:07 +0000 Subject: [PATCH] fixed "clean" target to really clean added a "depend" target --- BaS_GNU/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BaS_GNU/Makefile b/BaS_GNU/Makefile index 01e2deb..089a5d5 100644 --- a/BaS_GNU/Makefile +++ b/BaS_GNU/Makefile @@ -57,10 +57,16 @@ $(EXEC): $(OBJS) $(LD) --oformat srec -Map $(MAPFILE) --cref -T flash.lk -s -o $@ $(OBJS) clean: - @ rm -f $(EXEC) $(OBJS) $(MAPFILE) + @ rm -f $(EXEC) $(OBJS) $(MAPFILE) depend $(OBJDIR)/%.o:$(SRCDIR)/%.c $(CC) -c $(CFLAGS) $(INCLUDE) $< -o $@ $(OBJDIR)/%.o:$(SRCDIR)/%.S $(CC) -c $(CFLAGS) -Wa,--bitwise-or $(INCLUDE) $< -o $@ + +depend: $(ASRCS) $(CSRCS) + $(CC) $(CFLAGS) $(INCLUDE) -M $(ASRCS) $(CSRCS) > depend + +include depend + \ No newline at end of file