summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/midi.make
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2009-03-04 23:41:58 +0000
committerJens Arnold <amiconn@rockbox.org>2009-03-04 23:41:58 +0000
commitf82c9449121617386884b3047fba3e18a1c7bc76 (patch)
treed1f4280b040acaae6f311e1442e2f5a6a93e54a0 /apps/plugins/midi/midi.make
parent67c6f6048e3e7f81e337793f141c19a3d57c2c78 (diff)
downloadrockbox-f82c9449121617386884b3047fba3e18a1c7bc76.tar.gz
rockbox-f82c9449121617386884b3047fba3e18a1c7bc76.zip
Use a static pattern rule to restrict the dependency on [pluginname].o to single-file plugins. This allows the pattern rule for %.rock (with all dependencies defined elsewhere) to pick up multi-file plugins with no [pluginname].o file, and get rid of the duplication in (doom|midi|reversi).make.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20205 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midi/midi.make')
-rw-r--r--apps/plugins/midi/midi.make12
1 files changed, 0 insertions, 12 deletions
diff --git a/apps/plugins/midi/midi.make b/apps/plugins/midi/midi.make
index 9de8496d90..549d8e7c0a 100644
--- a/apps/plugins/midi/midi.make
+++ b/apps/plugins/midi/midi.make
@@ -21,18 +21,6 @@ OTHER_SRC += $(MIDI_SRC)
21MIDICFLAGS = $(PLUGINFLAGS) -O2 21MIDICFLAGS = $(PLUGINFLAGS) -O2
22 22
23$(MIDIBUILDDIR)/midi.rock: $(MIDI_OBJ) 23$(MIDIBUILDDIR)/midi.rock: $(MIDI_OBJ)
24# for some reason, this doesn't match the implicit rule in plugins.make,
25# so we have to duplicate the link command here
26 $(call PRINTS,LD $(@F))
27 $(SILENT)$(CC) $(PLUGINFLAGS) -o $*.elf \
28 $(filter %.o, $^) \
29 $(filter %.a, $^) \
30 -lgcc $(PLUGINLDFLAGS)
31ifdef SIMVER
32 $(SILENT)cp $*.elf $@
33else
34 $(SILENT)$(OC) -O binary $*.elf $@
35endif
36 24
37# new rule needed to use extra compile flags 25# new rule needed to use extra compile flags
38$(MIDIBUILDDIR)/%.o: $(MIDISRCDIR)/%.c 26$(MIDIBUILDDIR)/%.o: $(MIDISRCDIR)/%.c