forked from len0rd/rockbox
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:
parent
fc2a59b6d5
commit
985b53e500
3 changed files with 2 additions and 14 deletions
|
@ -60,4 +60,3 @@ i_video.c
|
|||
w_wad.c
|
||||
rockdoom.c
|
||||
d_deh.c
|
||||
sscanf.c
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -11,8 +11,8 @@ ROCKBOY_SRCDIR = $(APPSDIR)/plugins/rockboy
|
|||
ROCKBOY_OBJDIR = $(BUILDDIR)/apps/plugins/rockboy
|
||||
|
||||
ROCKBOY_SRC := $(call preprocess, $(ROCKBOY_SRCDIR)/SOURCES)
|
||||
ROCKBOY_SRC += $(ROOTDIR)/firmware/common/sscanf.c
|
||||
ROCKBOY_OBJ := $(call c2obj, $(ROCKBOY_SRC))
|
||||
ROCKBOY_OBJ += $(ROCKBOY_OBJDIR)/sscanf.o
|
||||
|
||||
OTHER_SRC += $(ROCKBOY_SRC)
|
||||
|
||||
|
@ -34,12 +34,6 @@ else
|
|||
ROCKBOY_OVLFLAGS = $(SHARED_FLAG) # <-- from Makefile
|
||||
endif
|
||||
|
||||
$(ROCKBOY_OBJDIR)/sscanf.c: $(FIRMDIR)/common/sscanf.c
|
||||
$(SILENT)mkdir -p $(dir $@)
|
||||
$(call PRINTS,CP $<)cp $< $@
|
||||
|
||||
$(ROCKBOY_OBJDIR)/sscanf.o: $(ROCKBOY_OBJDIR)/sscanf.c
|
||||
|
||||
$(ROCKBOY_OUTLDS): $(ROCKBOY_INLDS) $(ROCKBOY_OBJ)
|
||||
$(call PRINTS,PP $(<F))$(call preprocess2file,$<,$@)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue