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 a1e617ae55
commit 67c3a3be4c

View File

@@ -57,10 +57,16 @@ $(EXEC): $(OBJS)
$(LD) --oformat srec -Map $(MAPFILE) --cref -T flash.lk -s -o $@ $(OBJS) $(LD) --oformat srec -Map $(MAPFILE) --cref -T flash.lk -s -o $@ $(OBJS)
clean: clean:
@ rm -f $(EXEC) $(OBJS) $(MAPFILE) @ rm -f $(EXEC) $(OBJS) $(MAPFILE) depend
$(OBJDIR)/%.o:$(SRCDIR)/%.c $(OBJDIR)/%.o:$(SRCDIR)/%.c
$(CC) -c $(CFLAGS) $(INCLUDE) $< -o $@ $(CC) -c $(CFLAGS) $(INCLUDE) $< -o $@
$(OBJDIR)/%.o:$(SRCDIR)/%.S $(OBJDIR)/%.o:$(SRCDIR)/%.S
$(CC) -c $(CFLAGS) -Wa,--bitwise-or $(INCLUDE) $< -o $@ $(CC) -c $(CFLAGS) -Wa,--bitwise-or $(INCLUDE) $< -o $@
depend: $(ASRCS) $(CSRCS)
$(CC) $(CFLAGS) $(INCLUDE) -M $(ASRCS) $(CSRCS) > depend
include depend