tests/Makefile: Build the testbench by default with the tests.
[firearm.git] / tests / Makefile
CommitLineData
58f12604 1all: costas.hex testbench.hex
4aa2768b
JW
2
3%.o: %.c
f05621b7 4 arm-elf-gcc $(CFLAGS) -c -o $@ $<
4aa2768b
JW
5
6%.o: %.S
f05621b7 7 arm-elf-gcc $(CFLAGS) -c -o $@ $<
4aa2768b
JW
8
9%.elf: %.o anulib.o script.lds
10 arm-elf-ld -o $@ -T script.lds anulib.o $<
11
12%.bin: %.elf
13 arm-elf-objcopy $< -O binary $@
14
69e8e27f
JW
15%.pad.bin: %.bin
16 dd if=$< of=$@ bs=16384 conv=sync
17
4aa2768b
JW
18%.hex: %.bin
19 xxd -ps -c 4 $< | sed -e 's/\(..\)\(..\)\(..\)\(..\)/\4\3\2\1/' > $@
This page took 0.022804 seconds and 4 git commands to generate.