From b086458e4e1908878161ab5b84f287d5d726497b Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Thu, 18 Aug 2011 16:33:41 +0000 Subject: 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 --- apps/codecs/libgme/libnsf.make | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'apps/codecs/libgme/libnsf.make') diff --git a/apps/codecs/libgme/libnsf.make b/apps/codecs/libgme/libnsf.make index 8b9df7526f..9ab171711a 100644 --- a/apps/codecs/libgme/libnsf.make +++ b/apps/codecs/libgme/libnsf.make @@ -8,14 +8,3 @@ OTHER_SRC += $(NSFLIB_SRC) $(NSFLIB): $(NSFLIB_OBJ) $(SILENT)$(shell rm -f $@) $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null - -NSFFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_NSF_TYPE -ifeq ($(CPU),arm) - NSFFLAGS += -O3 -else - NSFFLAGS += -O2 -endif - -$(CODECDIR)/libgme/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c - $(SILENT)mkdir -p $(dir $@) - $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(NSFFLAGS) -c $< -o $@ -- cgit v1.2.3