Cleaner solution to plugin-included core files.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19664 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2009-01-03 22:40:29 +00:00
parent fc2a59b6d5
commit 985b53e500
3 changed files with 2 additions and 14 deletions

View file

@ -13,6 +13,7 @@ DOOMBUILDDIR := $(BUILDDIR)/apps/plugins/doom
ROCKS += $(DOOMBUILDDIR)/doom.rock
DOOM_SRC := $(call preprocess, $(DOOMSRCDIR)/SOURCES)
DOOM_SRC += $(ROOTDIR)/firmware/common/sscanf.c
DOOM_OBJ := $(call c2obj, $(DOOM_SRC))
# add source files to OTHER_SRC to get automatic dependencies
@ -32,12 +33,6 @@ else
DOOMCFLAGS += -O2
endif
$(DOOMBUILDDIR)/sscanf.c: $(FIRMDIR)/common/sscanf.c
$(SILENT)mkdir -p $(dir $@)
$(call PRINTS,CP $<)cp $< $@
$(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