uvm32/apps/rust-hello/Makefile
Toby Jaffey da7f70c456 Initial test framework
Clean up makefiles
Everything buildable under docker (or natively)
2025-12-10 16:36:33 +00:00

13 lines
312 B
Makefile

PROJECT=rust-hello
TOPDIR=../../
all:
cargo build -r --target riscv32im-unknown-none-elf && ${PREFIX}objcopy target/riscv32im-unknown-none-elf/release/${PROJECT} -O binary ${PROJECT}.bin
clean: clean_common
rm -rf target
test: all
${TOPDIR}/host/host ${PROJECT}.bin
include ${TOPDIR}/apps/makefile.common