From 7677916aa0a58fc9411d80927002b68bd4cfeeae Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Thu, 20 Nov 2008 16:30:58 +0000 Subject: Restore specific compiler flags for the midi plugin lost in r19146 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19159 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/midi/midi.make | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/plugins/midi') diff --git a/apps/plugins/midi/midi.make b/apps/plugins/midi/midi.make index 93b6ead3b1..db29ad81e3 100644 --- a/apps/plugins/midi/midi.make +++ b/apps/plugins/midi/midi.make @@ -18,6 +18,8 @@ MIDI_OBJ := $(call c2obj, $(MIDI_SRC)) # add source files to OTHER_SRC to get automatic dependencies OTHER_SRC += $(MIDI_SRC) +MIDICFLAGS = $(PLUGINFLAGS) -O2 + $(MIDIBUILDDIR)/midi.rock: $(MIDI_OBJ) # for some reason, this doesn't match the implicit rule in plugins.make, # so we have to duplicate the link command here @@ -31,3 +33,9 @@ ifdef SIMVER else $(SILENT)$(OC) -O binary $*.elf $@ endif + +# new rule needed to use extra compile flags +$(MIDIBUILDDIR)/%.o: $(MIDISRCDIR)/%.c + $(SILENT)mkdir -p $(dir $@) + $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(MIDICFLAGS) -c $< -o $@ + -- cgit v1.2.3