summaryrefslogtreecommitdiff
path: root/apps/codecs/libwmapro
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2010-07-27 06:48:15 +0000
committerNils Wallménius <nils@rockbox.org>2010-07-27 06:48:15 +0000
commit24bde73d1ed1c4a07d0071e7fdf7fd316e719f09 (patch)
treeba3e4df59f4f8a3cd1e8e0cfdad9fcaa0a0cb0b0 /apps/codecs/libwmapro
parentac16071399bcf8cef7c438416163b59374b78b6f (diff)
libwmapro: build with -O2 for coldfire, 5% speedup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27586 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwmapro')
-rw-r--r--apps/codecs/libwmapro/libwmapro.make12
1 files changed, 12 insertions, 0 deletions
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 $@