rustv32i/test/Makefile
2025-03-09 21:45:53 +01:00

12 lines
288 B
Makefile

CC = clang -Wall -Wpedantic -target riscv32-unknown-linux-gnu -fuse-ld=lld -march=rv32i
CC_STATIC = $(CC) -static -nostdlib -nodefaultlibs
RUSTC = rustc --target riscv32imac-unknown-none-elf
all: init init1
init: init.c
$(CC_STATIC) init.c -o init
init1: init1.rs
$(RUSTC) init1.rs