diff options
author | Nils Wallménius <nils@rockbox.org> | 2010-07-27 06:48:15 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2010-07-27 06:48:15 +0000 |
commit | 24bde73d1ed1c4a07d0071e7fdf7fd316e719f09 (patch) | |
tree | ba3e4df59f4f8a3cd1e8e0cfdad9fcaa0a0cb0b0 /apps/codecs/libwmapro | |
parent | ac16071399bcf8cef7c438416163b59374b78b6f (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.make | 12 |
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 $@ |