summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-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 3edc97e..e0cbaef 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,$@)
-
-