summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2012-10-07 13:53:04 +0200
committerMarcin Bukat <marcin.bukat@gmail.com>2012-10-07 13:55:52 +0200
commitef4bf8a9f0a0f7ea1b9a0d481e391deda7e60f20 (patch)
tree1d3b9dbb60eb59bf1852c849850a83e8229afba3 /apps/plugins/pdbox
parent0ae8d16643fac1ba935a4e5303cc423655fb3ff7 (diff)
downloadrockbox-ef4bf8a9f0a0f7ea1b9a0d481e391deda7e60f20.tar.gz
rockbox-ef4bf8a9f0a0f7ea1b9a0d481e391deda7e60f20.tar.bz2
rockbox-ef4bf8a9f0a0f7ea1b9a0d481e391deda7e60f20.zip
pdbox: fix makefile
Change-Id: I52260e4b17348c039f958ff9fa661367d3a31eac
Diffstat (limited to 'apps/plugins/pdbox')
-rw-r--r--apps/plugins/pdbox/pdbox.make11
1 files changed, 2 insertions, 9 deletions
diff --git a/apps/plugins/pdbox/pdbox.make b/apps/plugins/pdbox/pdbox.make
index 3edc97efe5..e0cbaef9ab 100644
--- a/apps/plugins/pdbox/pdbox.make
+++ b/apps/plugins/pdbox/pdbox.make
@@ -26,16 +26,9 @@ ifdef APP_TYPE
PDBOXLDFLAGS += -lm
endif
+$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ)
+
# Compile PDBox with extra flags (adapted from ZXBox)
$(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make
$(SILENT)mkdir -p $(dir $@)
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PDBOXFLAGS) -c $< -o $@
-
-$(PDBOXBUILDDIR)/pdbox.rock:
- $(call PRINTS,LD $(@F))$(CC) $(PLUGINFLAGS) -o $*.elf \
- $(filter %.o, $^) \
- $(filter %.a, $+) \
- -lgcc $(PDBOXLDFLAGS)
- $(SILENT)$(call objcopy,$*.elf,$@)
-
-