]>
Commit | Line | Data |
---|---|---|
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/' > $@ |