From f82c9449121617386884b3047fba3e18a1c7bc76 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 4 Mar 2009 23:41:58 +0000 Subject: 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 --- apps/plugins/midi/midi.make | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'apps/plugins/midi') 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) 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 - $(call PRINTS,LD $(@F)) - $(SILENT)$(CC) $(PLUGINFLAGS) -o $*.elf \ - $(filter %.o, $^) \ - $(filter %.a, $^) \ - -lgcc $(PLUGINLDFLAGS) -ifdef SIMVER - $(SILENT)cp $*.elf $@ -else - $(SILENT)$(OC) -O binary $*.elf $@ -endif # new rule needed to use extra compile flags $(MIDIBUILDDIR)/%.o: $(MIDISRCDIR)/%.c -- cgit v1.2.3