forked from len0rd/rockbox
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
This commit is contained in:
parent
46d7fb9b4a
commit
b086458e4e
27 changed files with 58 additions and 275 deletions
|
|
@ -16,10 +16,3 @@ OTHER_SRC += $(M4ALIB_SRC)
|
|||
$(M4ALIB): $(M4ALIB_OBJ)
|
||||
$(SILENT)$(shell rm -f $@)
|
||||
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
|
||||
|
||||
M4AFLAGS = $(filter-out -O%,$(CODECFLAGS))
|
||||
M4AFLAGS += -O3
|
||||
|
||||
$(CODECDIR)/libm4a/%.o: $(ROOTDIR)/apps/codecs/libm4a/%.c
|
||||
$(SILENT)mkdir -p $(dir $@)
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(M4AFLAGS) -c $< -o $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue