diff options
Diffstat (limited to 'apps/plugins/doom')
-rw-r--r-- | apps/plugins/doom/doom.make | 9 |
1 files changed, 7 insertions, 2 deletions
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 | |||
42 | $(DOOMBUILDDIR)/doom.rock: $(DOOM_OBJ) | 42 | $(DOOMBUILDDIR)/doom.rock: $(DOOM_OBJ) |
43 | # for some reason, this doesn't match the implicit rule in plugins.make, | 43 | # for some reason, this doesn't match the implicit rule in plugins.make, |
44 | # so we have to duplicate the link command here | 44 | # so we have to duplicate the link command here |
45 | $(call PRINTS,LD $(@F)) | ||
45 | $(SILENT)$(CC) $(PLUGINFLAGS) -o $*.elf \ | 46 | $(SILENT)$(CC) $(PLUGINFLAGS) -o $*.elf \ |
46 | $(filter %.o, $^) \ | 47 | $(filter %.o, $^) \ |
47 | $(filter %.a, $^) \ | 48 | $(filter %.a, $^) \ |
48 | -lgcc $(PLUGINLDFLAGS) | 49 | -lgcc $(PLUGINLDFLAGS) |
49 | $(call PRINTS,LD $(@F))$(OC) -O binary $*.elf $@ | 50 | ifdef SIMVER |
51 | $(SILENT)cp $*.elf $@ | ||
52 | else | ||
53 | $(SILENT)$(OC) -O binary $*.elf $@ | ||
54 | endif | ||
50 | 55 | ||
51 | # new rule needed to use extra compile flags | 56 | # new rule needed to use extra compile flags |
52 | $(DOOMBUILDDIR)/%.o: $(DOOMSRCDIR)/%.c $(DOOMSRCDIR)/doom.make | 57 | $(DOOMBUILDDIR)/%.o: $(DOOMSRCDIR)/%.c |
53 | $(SILENT)mkdir -p $(dir $@) | 58 | $(SILENT)mkdir -p $(dir $@) |
54 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(DOOMCFLAGS) -c $< -o $@ | 59 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(DOOMCFLAGS) -c $< -o $@ |