diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 70c716a0..0be389ad 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -227,7 +227,7 @@ TGT_MAKEROM_FLAGS = $(strip $(MAKEROM_FLAGS_$(TGT_ROM_NAME)) \ COMMA := , DEBUG_OBJS = $(foreach D,$(subst $(COMMA), ,$(DEBUG)),$(BIN)/$(D).dbg.o) DEBUG_REPLACE_OBJS = $(foreach D,$(subst $(COMMA), ,$(DEBUG)),$(BIN)/$(D).o) -BLIB_OBJS = $(DEBUG_OBJS) $(filter-out $(DEBUG_ORIG_OBJS),$(BOBJS)) +BLIB_OBJS = $(DEBUG_OBJS) $(filter-out $(DEBUG_REPLACE_OBJS),$(BOBJS)) # Print out all derived information for a given target. # @@ -268,6 +268,7 @@ $(BLIB_LIST) : # BLIB = $(BIN)/blib.a $(BLIB) : $(BLIB_OBJS) $(BLIB_LIST) $(MAKEDEPS) + $(RM) $(BLIB) $(AR) r $@ $(BLIB_OBJS) $(RANLIB) $@ blib : $(BLIB)