1
0
Fork 0
forked from len0rd/rockbox

Remove .a files before running ar, to avoid problems with renamed files remaining in the library.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19160 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2008-11-20 16:49:55 +00:00
parent 7677916aa0
commit 303b455ceb
18 changed files with 18 additions and 0 deletions

View file

@ -14,6 +14,7 @@ DEMACLIB_OBJ := $(call c2obj, $(DEMACLIB_SRC))
OTHER_SRC += $(DEMACLIB_SRC)
$(DEMACLIB): $(DEMACLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
DEMACFLAGS = $(filter-out -O%,$(CODECFLAGS))

View file

@ -13,6 +13,7 @@ CODECLIB_OBJ := $(call c2obj, $(CODECLIB_SRC))
OTHER_SRC += $(CODECLIB_SRC)
$(CODECLIB): $(CODECLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
CODECLIBFLAGS = $(CODECFLAGS) -ffunction-sections

View file

@ -14,4 +14,5 @@ A52LIB_OBJ := $(call c2obj, $(A52LIB_SRC))
OTHER_SRC += $(A52LIB_SRC)
$(A52LIB): $(A52LIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1

View file

@ -14,6 +14,7 @@ ALACLIB_OBJ := $(call c2obj, $(ALACLIB_SRC))
OTHER_SRC += $(ALACLIB_SRC)
$(ALACLIB): $(ALACLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
ALACFLAGS = $(filter-out -O%,$(CODECFLAGS))

View file

@ -14,6 +14,7 @@ ASAPLIB_OBJ := $(call c2obj, $(ASAPLIB_SRC))
OTHER_SRC += $(ASAPLIB_SRC)
$(ASAPLIB): $(ASAPLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
ASAPFLAGS = $(filter-out -O%,$(CODECFLAGS))

View file

@ -15,4 +15,5 @@ OTHER_SRC += $(FAADLIB_SRC)
OTHER_INC += -I$(APPSDIR)/codecs/libfaad
$(FAADLIB): $(FAADLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1

View file

@ -14,4 +14,5 @@ FFMPEGFLACLIB_OBJ := $(call c2obj, $(FFMPEGFLACLIB_SRC))
OTHER_SRC += $(FFMPEGFLACLIB_SRC)
$(FFMPEGFLACLIB): $(FFMPEGFLACLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1

View file

@ -14,6 +14,7 @@ M4ALIB_OBJ := $(call c2obj, $(M4ALIB_SRC))
OTHER_SRC += $(M4ALIB_SRC)
$(M4ALIB): $(M4ALIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
M4AFLAGS = $(filter-out -O%,$(CODECFLAGS))

View file

@ -21,6 +21,7 @@ MADLIB_OBJ := $(call c2obj, $(MADLIB_SRC))
OTHER_SRC += $(MADLIB_SRC)
$(MADLIB): $(MADLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
# libmad-mpeg

View file

@ -14,6 +14,7 @@ MUSEPACKLIB_OBJ := $(call c2obj, $(MUSEPACKLIB_SRC))
OTHER_SRC += $(MUSEPACKLIB_SRC)
$(MUSEPACKLIB): $(MUSEPACKLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
# libmusepack is faster on ARM-targets with -O1 than -O2

View file

@ -14,6 +14,7 @@ SPCLIB_OBJ := $(call c2obj, $(SPCLIB_SRC))
OTHER_SRC += $(SPCLIB_SRC)
$(SPCLIB): $(SPCLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
SPCFLAGS = $(filter-out -O%,$(CODECFLAGS))

View file

@ -31,6 +31,7 @@ SPEEXLIB_OBJ := $(call c2obj, $(SPEEXLIB_SRC))
OTHER_SRC += $(SPEEXLIB_SRC)
$(SPEEXLIB): $(SPEEXLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
# libspeex-voice

View file

@ -14,6 +14,7 @@ TREMORLIB_OBJ := $(call c2obj, $(TREMORLIB_SRC))
OTHER_SRC += $(TREMORLIB_SRC)
$(TREMORLIB): $(TREMORLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
$(CODECDIR)/libtremor/%.o: $(ROOTDIR)/apps/codecs/libtremor/%.c

View file

@ -14,4 +14,5 @@ WAVPACKLIB_OBJ := $(call c2obj, $(WAVPACKLIB_SRC))
OTHER_SRC += $(WAVPACKLIB_SRC)
$(WAVPACKLIB): $(WAVPACKLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1

View file

@ -14,4 +14,5 @@ WMALIB_OBJ := $(call c2obj, $(WMALIB_SRC))
OTHER_SRC += $(WMALIB_SRC)
$(WMALIB): $(WMALIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1

View file

@ -37,6 +37,7 @@ PBMPHFILES := $(shell echo $(PBMPHFILES) | sed -e 's/\.[0-9x]\+\.bmp/.h/g' -e '
$(PBMPHFILES): $(PLUGIN_BITMAPS)
$(PLUGINBITMAPLIB): $(PLUGIN_BITMAPS)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $+ >/dev/null 2>&1
# pattern rules to create .c files from .bmp, one for each subdir:

View file

@ -40,6 +40,7 @@ PLUGINFLAGS = -I$(APPSDIR)/plugins -DPLUGIN $(CFLAGS)
$(ROCKS): $(PLUGINLIB) $(APPSDIR)/plugin.h $(PLUGINLINK_LDS) $(PLUGINBITMAPLIB)
$(PLUGINLIB): $(PLUGINLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
$(PLUGINLINK_LDS): $(PLUGIN_LDS)

View file

@ -28,6 +28,7 @@ else
endif
$(FIRMLIB): $(FIRMLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rs $@ $^ >/dev/null 2>&1
$(BUILDDIR)/sysfont.h: $(SYSFONT) $(TOOLS)