fixed "clean" target to really clean

added a "depend" target
This commit is contained in:
Markus Fröschle
2012-10-14 07:01:07 +00:00
parent fca9811ebb
commit 0b3a146609

View File

@@ -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