Added NRO building to buildscripts/. Added elf2nro install to tools/Makefile.

This commit is contained in:
yellows8 2017-11-21 15:58:58 -05:00
parent 9c5afe8302
commit 94083114ba
2 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,10 @@ LIBNX ?= $(DEVKITPRO)/libnx
@echo built ... $(notdir $@)
#---------------------------------------------------------------------------------
%.nro: %.elf
@elf2nro $< $@
@echo built ... $(notdir $@)
#---------------------------------------------------------------------------------
%.elf:
@echo linking $(notdir $@)
@$(LD) $(LDFLAGS) $(OFILES) $(LIBPATHS) $(LIBS) -o $@

View File

@ -12,6 +12,7 @@ elf2nro: elf2nro.c
install: all
cp build_pfs0 $(DEVKITA64)/bin/
cp elf2nso $(DEVKITA64)/bin/
cp elf2nro $(DEVKITA64)/bin/
clean:
rm -f elf2nso elf2nro build_pfs0