always remove libapp.a before rebuilding it.
This commit is contained in:
parent
2da811bf61
commit
833a6387fb
|
@ -2,7 +2,11 @@
|
||||||
# User configuration and firmware specific object files
|
# User configuration and firmware specific object files
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
OBJS = default.o
|
OBJS =
|
||||||
|
ifndef NODEFAULT
|
||||||
|
OBJS += default.o
|
||||||
|
endif
|
||||||
|
|
||||||
OBJS += $(foreach mod,$(APP),$(mod).o)
|
OBJS += $(foreach mod,$(APP),$(mod).o)
|
||||||
|
|
||||||
SRCS = $(foreach mod,$(APP),$(mod).c)
|
SRCS = $(foreach mod,$(APP),$(mod).c)
|
||||||
|
@ -53,7 +57,6 @@ LOBJ=loadable_$(LAPP).o
|
||||||
|
|
||||||
$(LOBJ):
|
$(LOBJ):
|
||||||
$(CC) $(CFLAGS) -o $@ $(LSRC)
|
$(CC) $(CFLAGS) -o $@ $(LSRC)
|
||||||
$(RM) $(LIBFILE)
|
|
||||||
|
|
||||||
OBJS += $(LOBJ)
|
OBJS += $(LOBJ)
|
||||||
endif
|
endif
|
||||||
|
@ -75,6 +78,7 @@ OBJS += $(TOBJS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(LIBFILE): $(OBJS) $(WRAPOBJ)
|
$(LIBFILE): $(OBJS) $(WRAPOBJ)
|
||||||
|
$(RM) -f $@
|
||||||
$(AR) rcs $@ $(OBJS) $(WRAPOBJ)
|
$(AR) rcs $@ $(OBJS) $(WRAPOBJ)
|
||||||
|
|
||||||
%.o : %.c
|
%.o : %.c
|
||||||
|
|
Loading…
Reference in New Issue