diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2008-11-20 14:17:09 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2008-11-20 14:17:09 +0000 |
| commit | 20fb305b0b8a1b14e14b7fd1e9b185e2a52e3fe9 (patch) | |
| tree | 16163cb6815da0dbaddc89cf78f6b0c5fa6672fb /apps/plugins | |
| parent | d273f663a1203717cd0ce65970efc5c40fbcff0d (diff) | |
| download | rockbox-20fb305b0b8a1b14e14b7fd1e9b185e2a52e3fe9.zip rockbox-20fb305b0b8a1b14e14b7fd1e9b185e2a52e3fe9.tar.gz rockbox-20fb305b0b8a1b14e14b7fd1e9b185e2a52e3fe9.tar.bz2 rockbox-20fb305b0b8a1b14e14b7fd1e9b185e2a52e3fe9.tar.xz | |
Don't objcopy simulator plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19152 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/doom/doom.make | 9 | ||||
| -rw-r--r-- | apps/plugins/midi/midi.make | 7 | ||||
| -rw-r--r-- | apps/plugins/reversi/reversi.make | 7 |
3 files changed, 19 insertions, 4 deletions
diff --git a/apps/plugins/doom/doom.make b/apps/plugins/doom/doom.make index d566f53..3e95026 100644 --- a/apps/plugins/doom/doom.make +++ b/apps/plugins/doom/doom.make @@ -42,13 +42,18 @@ $(DOOMBUILDDIR)/sscanf.o: $(DOOMBUILDDIR)/sscanf.c $(DOOMBUILDDIR)/doom.rock: $(DOOM_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) - $(call PRINTS,LD $(@F))$(OC) -O binary $*.elf $@ +ifdef SIMVER + $(SILENT)cp $*.elf $@ +else + $(SILENT)$(OC) -O binary $*.elf $@ +endif # new rule needed to use extra compile flags -$(DOOMBUILDDIR)/%.o: $(DOOMSRCDIR)/%.c $(DOOMSRCDIR)/doom.make +$(DOOMBUILDDIR)/%.o: $(DOOMSRCDIR)/%.c $(SILENT)mkdir -p $(dir $@) $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(DOOMCFLAGS) -c $< -o $@ diff --git a/apps/plugins/midi/midi.make b/apps/plugins/midi/midi.make index 9100764..93b6ead 100644 --- a/apps/plugins/midi/midi.make +++ b/apps/plugins/midi/midi.make @@ -21,8 +21,13 @@ OTHER_SRC += $(MIDI_SRC) $(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) - $(call PRINTS,LD $(@F))$(OC) -O binary $*.elf $@ +ifdef SIMVER + $(SILENT)cp $*.elf $@ +else + $(SILENT)$(OC) -O binary $*.elf $@ +endif diff --git a/apps/plugins/reversi/reversi.make b/apps/plugins/reversi/reversi.make index be73694..4eaa82d 100644 --- a/apps/plugins/reversi/reversi.make +++ b/apps/plugins/reversi/reversi.make @@ -21,8 +21,13 @@ OTHER_SRC += $(REVERSI_SRC) $(REVERSIBUILDDIR)/reversi.rock: $(REVERSI_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) - $(call PRINTS,LD $(@F))$(OC) -O binary $*.elf $@ +ifdef SIMVER + $(SILENT)cp $*.elf $@ +else + $(SILENT)$(OC) -O binary $*.elf $@ +endif |