summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2009-11-08 07:04:14 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2009-11-08 07:04:14 +0000
commitb92e778fd71dfc86d41e6ddf68cf7b35477bc927 (patch)
treeda5ce3a035ccc327e4bde77f03afb91d7dd66b6e
parentb6f15f2c95172c1649f1d4a512ace3b8801d4904 (diff)
downloadrockbox-b92e778fd71dfc86d41e6ddf68cf7b35477bc927.tar.gz
rockbox-b92e778fd71dfc86d41e6ddf68cf7b35477bc927.zip
Reenable -O2 for Wavpack, which appears to have been lost during makefile clean up. Improves wavpack decoding performance by several MHz on ARM and Coldfire.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23566 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/libwavpack/libwavpack.make7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/codecs/libwavpack/libwavpack.make b/apps/codecs/libwavpack/libwavpack.make
index a2e5377418..f0912ee0eb 100644
--- a/apps/codecs/libwavpack/libwavpack.make
+++ b/apps/codecs/libwavpack/libwavpack.make
@@ -13,6 +13,13 @@ WAVPACKLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libwavpack/SOURCES)
WAVPACKLIB_OBJ := $(call c2obj, $(WAVPACKLIB_SRC))
OTHER_SRC += $(WAVPACKLIB_SRC)
+WAVPACKFLAGS = -I$(APPSDIR)/codecs/libwavpack $(filter-out -O%,$(CODECFLAGS))
+WAVPACKFLAGS += -O2
+
$(WAVPACKLIB): $(WAVPACKLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
+
+$(CODECDIR)/libwavpack/%.o: $(ROOTDIR)/apps/codecs/libwavpack/%.c
+ $(SILENT)mkdir -p $(dir $@)
+ $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(WAVPACKFLAGS) -c $< -o $@