diff options
author | Nils Wallménius <nils@rockbox.org> | 2010-07-18 19:05:53 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2010-07-18 19:05:53 +0000 |
commit | c45e1254c6852ba36fa3af1b9a096f5c3be0d8d1 (patch) | |
tree | 2ec08a6ae91d7032e5a563adc7bb5338f69b08fc /apps/codecs/libcook | |
parent | 45fc5e3aade9a47727b8caacf75958f9ee527167 (diff) |
FS#11454 Tuning of codec compiler options
Tested with h300 and sansa c200v1
h300 speedups:
a52: 2%
cook: 9-17%
aac: 0.5%
vorbis: 0.5%
wma: 6-12%
c200v1 speedups:
alac: 1.5%
wma 3-4%
wavpack 2%
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27486 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libcook')
-rw-r--r-- | apps/codecs/libcook/libcook.make | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/codecs/libcook/libcook.make b/apps/codecs/libcook/libcook.make index 07836913d7..6a2817e07c 100644 --- a/apps/codecs/libcook/libcook.make +++ b/apps/codecs/libcook/libcook.make @@ -15,4 +15,17 @@ OTHER_SRC += $(COOKLIB_SRC) $(COOKLIB): $(COOKLIB_OBJ) $(SILENT)$(shell rm -f $@) - $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
\ No newline at end of file + $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null + +COOKFLAGS = -I$(APPSDIR)/codecs/libcook $(filter-out -O%,$(CODECFLAGS)) + +ifeq ($(CPU),coldfire) + COOKFLAGS += -O2 +else + COOKFLAGS += -O1 +endif + +$(CODECDIR)/libcook/%.o: $(ROOTDIR)/apps/codecs/libcook/%.c + $(SILENT)mkdir -p $(dir $@) + $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(COOKFLAGS) -c $< -o $@ + |