X-Git-Url: http://git.joshuawise.com/firearm.git/blobdiff_plain/4aa2768b7a9c6eff4e9c26daba0b46ded3fe3a71..121556d62c2c40b07a709ef038fa1ce0a67127c9:/tests/Makefile diff --git a/tests/Makefile b/tests/Makefile index 62be4ba..36682af 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,10 +1,10 @@ all: costas.hex %.o: %.c - arm-elf-gcc -c -o $@ $< + arm-elf-gcc $(CFLAGS) -c -o $@ $< %.o: %.S - arm-elf-gcc -c -o $@ $< + arm-elf-gcc $(CFLAGS) -c -o $@ $< %.elf: %.o anulib.o script.lds arm-elf-ld -o $@ -T script.lds anulib.o $< @@ -12,5 +12,8 @@ all: costas.hex %.bin: %.elf arm-elf-objcopy $< -O binary $@ +%.pad.bin: %.bin + dd if=$< of=$@ bs=16384 conv=sync + %.hex: %.bin xxd -ps -c 4 $< | sed -e 's/\(..\)\(..\)\(..\)\(..\)/\4\3\2\1/' > $@