summaryrefslogtreecommitdiff
path: root/apps/codecs/demac/libdemac.make
diff options
context:
space:
mode:
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 $@