abstract-machine/scripts/riscv32-nemu.mk
xinyangli 54ee5d6c31
Makefile: start moving to macro based Makefile target generation
- libam-riscv32-nemu is working.
- libam on platforms other than riscv32-nemu has not been worked on yet.
- klib has not been worked on yet.
2024-12-10 17:46:47 +08:00

9 lines
377 B
Makefile

include $(AM_HOME)/scripts/isa/riscv.mk
include $(AM_HOME)/scripts/platform/nemu.mk
AM_CFLAGS += -DISA_H=\"riscv/riscv.h\" -march=rv32im_zicsr -mabi=ilp32 # overwrite
AM_LDFLAGS += -melf32lriscv # overwrite
AM_SRCS += am/src/riscv/nemu/start.S \
am/src/riscv/nemu/cte.c \
am/src/riscv/nemu/trap.S \
am/src/riscv/nemu/vme.c