1 CFLAGS=-mno-thumb-interwork -march=armv4
3 all: costas.hex testbench.hex
6 arm-elf-gcc $(CFLAGS) -c -o $@ $<
9 arm-elf-gcc $(CFLAGS) -c -o $@ $<
11 %.elf: %.o anulib.o script.lds
12 arm-elf-ld -o $@ -T script.lds anulib.o $<
15 arm-elf-objcopy $< -O binary $@
18 dd if=$< of=$@ bs=16384 conv=sync
21 xxd -ps -c 4 $< | sed -e 's/\(..\)\(..\)\(..\)\(..\)/\4\3\2\1/' > $@