diff options
author | Nils Wallménius <nils@rockbox.org> | 2008-11-20 16:30:58 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2008-11-20 16:30:58 +0000 |
commit | 7677916aa0a58fc9411d80927002b68bd4cfeeae (patch) | |
tree | 4ac2c2f6b32b0b1af6cb3a425bff7997f588f613 /apps/plugins/midi | |
parent | d834a0c7e675d6176c4c06f4e50dcfd89faba744 (diff) | |
download | rockbox-7677916aa0a58fc9411d80927002b68bd4cfeeae.tar.gz rockbox-7677916aa0a58fc9411d80927002b68bd4cfeeae.zip |
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
Diffstat (limited to 'apps/plugins/midi')
-rw-r--r-- | apps/plugins/midi/midi.make | 8 |
1 files changed, 8 insertions, 0 deletions
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)) | |||
18 | # add source files to OTHER_SRC to get automatic dependencies | 18 | # add source files to OTHER_SRC to get automatic dependencies |
19 | OTHER_SRC += $(MIDI_SRC) | 19 | OTHER_SRC += $(MIDI_SRC) |
20 | 20 | ||
21 | MIDICFLAGS = $(PLUGINFLAGS) -O2 | ||
22 | |||
21 | $(MIDIBUILDDIR)/midi.rock: $(MIDI_OBJ) | 23 | $(MIDIBUILDDIR)/midi.rock: $(MIDI_OBJ) |
22 | # for some reason, this doesn't match the implicit rule in plugins.make, | 24 | # for some reason, this doesn't match the implicit rule in plugins.make, |
23 | # so we have to duplicate the link command here | 25 | # so we have to duplicate the link command here |
@@ -31,3 +33,9 @@ ifdef SIMVER | |||
31 | else | 33 | else |
32 | $(SILENT)$(OC) -O binary $*.elf $@ | 34 | $(SILENT)$(OC) -O binary $*.elf $@ |
33 | endif | 35 | endif |
36 | |||
37 | # new rule needed to use extra compile flags | ||
38 | $(MIDIBUILDDIR)/%.o: $(MIDISRCDIR)/%.c | ||
39 | $(SILENT)mkdir -p $(dir $@) | ||
40 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(MIDICFLAGS) -c $< -o $@ | ||
41 | |||