summaryrefslogtreecommitdiff
path: root/apps/codecs/demac/libdemac.make
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2011-08-18 16:33:41 +0000
committerNils Wallménius <nils@rockbox.org>2011-08-18 16:33:41 +0000
commitb086458e4e1908878161ab5b84f287d5d726497b (patch)
treee4ff33e7ef1f6c5cd1b956ec69881c554f74307f /apps/codecs/demac/libdemac.make
parent46d7fb9b4a59dcebf9b68c38bc77b2c0f0761d33 (diff)
downloadrockbox-b086458e4e1908878161ab5b84f287d5d726497b.tar.gz
rockbox-b086458e4e1908878161ab5b84f287d5d726497b.zip
FS#12231
Centralize the selection of codec compilation flags to codec.make to avoid having to duplicate the per cpu selection logic and the build rule in the individual codec lib make files and make tweaking easier. The two special cases, libmad and libspeex were left alone. I plan to introduce a var for arm generation so that appropriate flags can be selected per generation as benchmarking results have shown that different arm arches might have different optimal flags. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30330 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/demac/libdemac.make')
-rw-r--r--apps/codecs/demac/libdemac.make12
1 files changed, 0 insertions, 12 deletions
diff --git a/apps/codecs/demac/libdemac.make b/apps/codecs/demac/libdemac.make
index bf0f821de3..4614344849 100644
--- a/apps/codecs/demac/libdemac.make
+++ b/apps/codecs/demac/libdemac.make
@@ -26,14 +26,6 @@ $(DEMACLIB): $(DEMACLIB_OBJ)
26 $(SILENT)$(shell rm -f $@) 26 $(SILENT)$(shell rm -f $@)
27 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null 27 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
28 28
29DEMACFLAGS = $(filter-out -O%,$(CODECFLAGS))
30
31ifeq ($(CPU),coldfire)
32 DEMACFLAGS += -O2
33else
34 DEMACFLAGS += -O3
35endif
36
37$(CODECDIR)/ape_free_iram.h: $(CODECDIR)/ape-pre.map 29$(CODECDIR)/ape_free_iram.h: $(CODECDIR)/ape-pre.map
38 $(call PRINTS,GEN $(@F))perl -an \ 30 $(call PRINTS,GEN $(@F))perl -an \
39 -e 'if(/^PLUGIN_IRAM/){$$istart=hex($$F[1]);$$ilen=hex($$F[2])}' \ 31 -e 'if(/^PLUGIN_IRAM/){$$istart=hex($$F[1]);$$ilen=hex($$F[2])}' \
@@ -41,7 +33,3 @@ $(CODECDIR)/ape_free_iram.h: $(CODECDIR)/ape-pre.map
41 -e '}{if($$ilen){print"#define FREE_IRAM ".($$ilen+$$istart-$$iend)."\n";}' \ 33 -e '}{if($$ilen){print"#define FREE_IRAM ".($$ilen+$$istart-$$iend)."\n";}' \
42 $(CODECDIR)/ape-pre.map \ 34 $(CODECDIR)/ape-pre.map \
43 > $@ 35 > $@
44
45$(CODECDIR)/demac/%.o: $(ROOTDIR)/apps/codecs/demac/%.c
46 $(SILENT)mkdir -p $(dir $@)
47 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(DEMACFLAGS) -c $< -o $@