-all: costas.hex
+CFLAGS=-mno-thumb-interwork -march=armv4
+
+all: costas.hex testbench.hex
%.o: %.c
arm-elf-gcc $(CFLAGS) -c -o $@ $<
%.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/' > $@