mirror of
https://github.com/Noratrieb/rustv32i.git
synced 2026-01-14 13:25:01 +01:00
12 lines
286 B
Makefile
12 lines
286 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 riscv32im-unknown-none-elf
|
|
|
|
all: init init1
|
|
|
|
init: init.c
|
|
$(CC_STATIC) init.c -o init
|
|
|
|
init1: init1.rs
|
|
$(RUSTC) init1.rs
|