From 24bde73d1ed1c4a07d0071e7fdf7fd316e719f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Tue, 27 Jul 2010 06:48:15 +0000 Subject: libwmapro: build with -O2 for coldfire, 5% speedup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27586 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libwmapro/libwmapro.make | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/codecs/libwmapro/libwmapro.make b/apps/codecs/libwmapro/libwmapro.make index 9177eafb20..e54f8db71c 100644 --- a/apps/codecs/libwmapro/libwmapro.make +++ b/apps/codecs/libwmapro/libwmapro.make @@ -16,3 +16,15 @@ OTHER_SRC += $(WMAPROLIB_SRC) $(WMAPROLIB): $(WMAPROLIB_OBJ) $(SILENT)$(shell rm -f $@) $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null + +WMAPROFLAGS = -I$(APPSDIR)/codecs/libwmapro $(filter-out -O%,$(CODECFLAGS)) + +ifeq ($(CPU),coldfire) + WMAPROFLAGS += -O2 +else + WMAPROFLAGS += -O1 +endif + +$(CODECDIR)/libwmapro/%.o: $(ROOTDIR)/apps/codecs/libwmapro/%.c + $(SILENT)mkdir -p $(dir $@) + $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(WMAPROFLAGS) -c $< -o $@ -- cgit v1.2.3