From c8535f27d140a2030cedf695a66595aae5b95c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Wed, 12 Jan 2011 22:28:43 +0000 Subject: Switch coldfire builds over to new toolchain using gcc 4.5.2 and binutils 2.20.1 Retune codec compiler optimizations with new compiler. Overall speedup with aac and flac getting big speedups. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29042 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libatrac/libatrac.make | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'apps/codecs/libatrac') diff --git a/apps/codecs/libatrac/libatrac.make b/apps/codecs/libatrac/libatrac.make index 01606e1..980f587 100644 --- a/apps/codecs/libatrac/libatrac.make +++ b/apps/codecs/libatrac/libatrac.make @@ -16,3 +16,16 @@ OTHER_SRC += $(ATRACLIB_SRC) $(ATRACLIB): $(ATRACLIB_OBJ) $(SILENT)$(shell rm -f $@) $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null + +ATRACFLAGS = -I$(APPSDIR)/codecs/libatrac $(filter-out -O%,$(CODECFLAGS)) +# not tuned for arm +ifeq ($(CPU),coldfire) + ATRACFLAGS += -O2 +else + ATRACFLAGS += -O1 +endif + +$(CODECDIR)/libatrac/%.o: $(ROOTDIR)/apps/codecs/libatrac/%.c + $(SILENT)mkdir -p $(dir $@) + $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(ATRACFLAGS) -c $< -o $@ + -- cgit v1.1