always remove libapp.a before rebuilding it.

This commit is contained in:
Stefan `Sec` Zehl 2011-07-27 00:28:08 +02:00
parent 2da811bf61
commit 833a6387fb
1 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,11 @@
# User configuration and firmware specific object files
##########################################################################
OBJS = default.o
OBJS =
ifndef NODEFAULT
OBJS += default.o
endif
OBJS += $(foreach mod,$(APP),$(mod).o)
SRCS = $(foreach mod,$(APP),$(mod).c)
@ -53,7 +57,6 @@ LOBJ=loadable_$(LAPP).o
$(LOBJ):
$(CC) $(CFLAGS) -o $@ $(LSRC)
$(RM) $(LIBFILE)
OBJS += $(LOBJ)
endif
@ -75,6 +78,7 @@ OBJS += $(TOBJS)
endif
$(LIBFILE): $(OBJS) $(WRAPOBJ)
$(RM) -f $@
$(AR) rcs $@ $(OBJS) $(WRAPOBJ)
%.o : %.c