X-Git-Url: http://git.joshuawise.com/firearm.git/blobdiff_plain/8b417b452a3b1f51f7cec4d2daed4c902607f000..4aa2768b7a9c6eff4e9c26daba0b46ded3fe3a71:/tests/Makefile diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..62be4ba --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,16 @@ +all: costas.hex + +%.o: %.c + arm-elf-gcc -c -o $@ $< + +%.o: %.S + arm-elf-gcc -c -o $@ $< + +%.elf: %.o anulib.o script.lds + arm-elf-ld -o $@ -T script.lds anulib.o $< + +%.bin: %.elf + arm-elf-objcopy $< -O binary $@ + +%.hex: %.bin + xxd -ps -c 4 $< | sed -e 's/\(..\)\(..\)\(..\)\(..\)/\4\3\2\1/' > $@