13 lines
228 B
Makefile
13 lines
228 B
Makefile
AS=riscv64-unknown-elf-as
|
|
LD=riscv64-unknown-elf-ld
|
|
|
|
all: main.x
|
|
|
|
hello.elf: hello.o
|
|
$(LD) -m elf32lriscv $^ -o $@
|
|
|
|
main.x: main.o exit.o
|
|
$(LD) -m elf32lriscv $^ -o main.x
|
|
|
|
%.o : %.s
|
|
$(AS) -mabi=ilp32e -march=rv32ec $< -o $@
|