@@ -1,8 +1,13 @@ include ../extra.mk SUBDIRS = ${TESTPLUGIN} + +CLEAN = EBOOT.PBP \ + boot.dol \ + ${PROG_NOINST}.arm9 \ + ${PROG_NOINST}.nds PROG_NOINST = tests${PROG_SUFFIX} SRCS = ForwardingTests.m \ OFArrayTests.m \ ${OFBLOCKTESTS_M} \ @@ -104,14 +109,24 @@ psp-strip ${PROG_NOINST} pack-pbp $@ PARAM.SFO NULL NULL NULL NULL NULL ${PROG_NOINST} NULL boot.dol: ${PROG_NOINST} elf2dol ${PROG_NOINST} $@ + +${PROG_NOINST}.arm9: ${PROG_NOINST} + arm-none-eabi-objcopy -O binary $< $@ + +${PROG_NOINST}.nds: ${PROG_NOINST}.arm9 + rm -fr nds-data + mkdir -p nds-data + cp testfile.bin testfile.txt testfile.ini serialization.xml nds-data + ndstool -c $@ -9 $< -d nds-data + rm -fr nds-data include ../buildsys.mk ${PROG_NOINST}: ${LIBOBJFW_DEP} CPPFLAGS += -I../src -I../src/exceptions -I../src/runtime -I.. -DSTDOUT LIBS := -L../src -lobjfw ${TESTS_LIBS} ${LIBS} LDFLAGS += ${MAP_LDFLAGS} LD = ${OBJC}