Makefile (784B)
1 TEST_OUTPUT = test/Makefile test/*.S test/test.elf test/test.velf test/*.o test/*.a 2 .PHONY: all 3 all: test.elf 4 vita-elf-create test.elf test.velf sample-db.json 5 arm-none-eabi-readelf -a test.velf 6 arm-none-eabi-objdump -D -j .text.fstubs test.velf 7 arm-none-eabi-objdump -s -j .data.vstubs -j .sceModuleInfo.rodata -j .sceLib.ent -j .sceExport.rodata -j .sceLib.stubs -j .sceImport.rodata -j .sceFNID.rodata -j .sceFStub.rodata -j .sceVNID.rodata -j .sceVStub.rodata -j .sce.rel test.velf 8 9 test.elf: test.o libs/libSceLibKernel.a 10 arm-none-eabi-gcc -Wl,-q -nostartfiles -nostdlib $^ -o $@ 11 12 test.o: test.c 13 arm-none-eabi-gcc -march=armv7-a -c $< -o $@ 14 15 libs/%.a: sample-db.json 16 vita-libs-gen sample-db.json libs/ 17 $(MAKE) -C libs $*.a 18 19 clean: 20 rm -f test.o libs/* test.elf test.velf