From 20fb305b0b8a1b14e14b7fd1e9b185e2a52e3fe9 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Thu, 20 Nov 2008 14:17:09 +0000 Subject: Don't objcopy simulator plugins. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19152 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/doom/doom.make | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'apps/plugins/doom/doom.make') diff --git a/apps/plugins/doom/doom.make b/apps/plugins/doom/doom.make index d566f5307b..3e95026c3c 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 $@ -- cgit v1.2.3