summaryrefslogtreecommitdiff
path: root/apps/plugins/doom
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/doom')
-rw-r--r--apps/plugins/doom/SOURCES1
-rw-r--r--apps/plugins/doom/doom.make7
2 files changed, 1 insertions, 7 deletions
diff --git a/apps/plugins/doom/SOURCES b/apps/plugins/doom/SOURCES
index 6ee2d95c96..6cd69faee6 100644
--- a/apps/plugins/doom/SOURCES
+++ b/apps/plugins/doom/SOURCES
@@ -60,4 +60,3 @@ i_video.c
60w_wad.c 60w_wad.c
61rockdoom.c 61rockdoom.c
62d_deh.c 62d_deh.c
63sscanf.c
diff --git a/apps/plugins/doom/doom.make b/apps/plugins/doom/doom.make
index 666128c432..fc73729c22 100644
--- a/apps/plugins/doom/doom.make
+++ b/apps/plugins/doom/doom.make
@@ -13,6 +13,7 @@ DOOMBUILDDIR := $(BUILDDIR)/apps/plugins/doom
13ROCKS += $(DOOMBUILDDIR)/doom.rock 13ROCKS += $(DOOMBUILDDIR)/doom.rock
14 14
15DOOM_SRC := $(call preprocess, $(DOOMSRCDIR)/SOURCES) 15DOOM_SRC := $(call preprocess, $(DOOMSRCDIR)/SOURCES)
16DOOM_SRC += $(ROOTDIR)/firmware/common/sscanf.c
16DOOM_OBJ := $(call c2obj, $(DOOM_SRC)) 17DOOM_OBJ := $(call c2obj, $(DOOM_SRC))
17 18
18# add source files to OTHER_SRC to get automatic dependencies 19# add source files to OTHER_SRC to get automatic dependencies
@@ -32,12 +33,6 @@ else
32 DOOMCFLAGS += -O2 33 DOOMCFLAGS += -O2
33endif 34endif
34 35
35$(DOOMBUILDDIR)/sscanf.c: $(FIRMDIR)/common/sscanf.c
36 $(SILENT)mkdir -p $(dir $@)
37 $(call PRINTS,CP $<)cp $< $@
38
39$(DOOMBUILDDIR)/sscanf.o: $(DOOMBUILDDIR)/sscanf.c
40
41$(DOOMBUILDDIR)/doom.rock: $(DOOM_OBJ) 36$(DOOMBUILDDIR)/doom.rock: $(DOOM_OBJ)
42# for some reason, this doesn't match the implicit rule in plugins.make, 37# for some reason, this doesn't match the implicit rule in plugins.make,
43# so we have to duplicate the link command here 38# so we have to duplicate the link command here