mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 08:02:34 -05:00
pdbox: fix makefile
Change-Id: I52260e4b17348c039f958ff9fa661367d3a31eac
This commit is contained in:
parent
0ae8d16643
commit
ef4bf8a9f0
1 changed files with 2 additions and 9 deletions
|
|
@ -26,16 +26,9 @@ ifdef APP_TYPE
|
||||||
PDBOXLDFLAGS += -lm
|
PDBOXLDFLAGS += -lm
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ)
|
||||||
|
|
||||||
# Compile PDBox with extra flags (adapted from ZXBox)
|
# Compile PDBox with extra flags (adapted from ZXBox)
|
||||||
$(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make
|
$(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make
|
||||||
$(SILENT)mkdir -p $(dir $@)
|
$(SILENT)mkdir -p $(dir $@)
|
||||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PDBOXFLAGS) -c $< -o $@
|
$(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,$@)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue