4 lines
307 B
Makefile
4 lines
307 B
Makefile
example: example.c Makefile boot.s linker.ld
|
|
riscv32-none-elf-as -march=rv32i -mabi=ilp32 boot.s -o boot.o
|
|
riscv32-none-elf-gcc -fno-builtin -fvisibility=hidden -nostdlib -nostartfiles -march=rv32im -mabi=ilp32 -c example.c -o example.o -g
|
|
riscv32-none-elf-ld boot.o example.o -T linker.ld -o example -g
|