summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/pdbox.make
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pdbox/pdbox.make')
-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
26PDBOXLDFLAGS += -lm 26PDBOXLDFLAGS += -lm
27endif 27endif
28 28
29$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ)
30
29# Compile PDBox with extra flags (adapted from ZXBox) 31# Compile PDBox with extra flags (adapted from ZXBox)
30$(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make 32$(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make
31 $(SILENT)mkdir -p $(dir $@) 33 $(SILENT)mkdir -p $(dir $@)
32 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PDBOXFLAGS) -c $< -o $@ 34 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PDBOXFLAGS) -c $< -o $@
33
34$(PDBOXBUILDDIR)/pdbox.rock:
35 $(call PRINTS,LD $(@F))$(CC) $(PLUGINFLAGS) -o $*.elf \
36 $(filter %.o, $^) \
37 $(filter %.a, $+) \
38 -lgcc $(PDBOXLDFLAGS)
39 $(SILENT)$(call objcopy,$*.elf,$@)
40
41