]> Joshua Wise's Git repositories - firearm.git/blob - tests/Makefile
471a83ee0f9bc4f1c5f79e221a375ce17b4815c8
[firearm.git] / tests / Makefile
1 CFLAGS=-mno-thumb-interwork -march=armv4
2
3 all: costas.hex testbench.hex
4
5 %.o: %.c
6         arm-elf-gcc $(CFLAGS) -c -o $@ $<
7
8 %.o: %.S
9         arm-elf-gcc $(CFLAGS) -c -o $@ $<
10
11 %.elf: %.o anulib.o script.lds
12         arm-elf-ld -o $@ -T script.lds anulib.o $<
13
14 %.bin: %.elf
15         arm-elf-objcopy $< -O binary $@
16
17 %.pad.bin: %.bin
18         dd if=$< of=$@ bs=16384 conv=sync
19
20 %.hex: %.bin
21         xxd -ps -c 4 $< | sed -e 's/\(..\)\(..\)\(..\)\(..\)/\4\3\2\1/' > $@
This page took 0.017262 seconds and 2 git commands to generate.