]>
Commit | Line | Data |
---|---|---|
e3183a08 JW |
1 | CFLAGS=-mno-thumb-interwork -march=armv4 |
2 | ||
58f12604 | 3 | all: costas.hex testbench.hex |
4aa2768b JW |
4 | |
5 | %.o: %.c | |
f05621b7 | 6 | arm-elf-gcc $(CFLAGS) -c -o $@ $< |
4aa2768b JW |
7 | |
8 | %.o: %.S | |
f05621b7 | 9 | arm-elf-gcc $(CFLAGS) -c -o $@ $< |
4aa2768b JW |
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 | ||
69e8e27f JW |
17 | %.pad.bin: %.bin |
18 | dd if=$< of=$@ bs=16384 conv=sync | |
19 | ||
4aa2768b JW |
20 | %.hex: %.bin |
21 | xxd -ps -c 4 $< | sed -e 's/\(..\)\(..\)\(..\)\(..\)/\4\3\2\1/' > $@ |