mirror of
https://github.com/olofk/serv.git
synced 2025-04-21 12:27:08 -04:00
9 lines
238 B
Makefile
9 lines
238 B
Makefile
%.elf: %.S link.ld
|
|
riscv64-unknown-elf-gcc -nostartfiles -march=rv32i -mabi=ilp32 -Tlink.ld -o$@ $<
|
|
%.bin: %.elf
|
|
riscv64-unknown-elf-objcopy -O binary $< $@
|
|
%.hex: %.bin
|
|
python3 makehex.py $< 2048 > $@
|
|
|
|
clean:
|
|
rm -f *.elf *.bin *.hex
|