Files
riscy-rust/test/Makefile
2023-05-22 13:59:56 +01:00

19 lines
311 B
Makefile

GCC_COMPILER=riscv32-unknown-elf-gcc
GCC_OBJCOPY=riscv32-unknown-elf-objcopy
all:
assemble
build
@echo "Done"
assemble:
$(GCC_COMPILER) -S test.c
build:
$(GCC_COMPILER) -Wl,-Ttext=0x0 -nostdlib -march=rv64i -mabi=lp64 -o test test.S
$(GCC_OBJCOPY) -O binary test test.bin
clean:
rm -f test test.bin