forked from len0rd/rockbox
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
|
||||
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,$@)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue