mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
15 lines
381 B
Makefile
15 lines
381 B
Makefile
TARGET = simple
|
|
|
|
$(TARGET).objdump: $(TARGET)
|
|
riscv64-unknown-elf-objdump -S -D $(TARGET).elf > $(TARGET).objdump
|
|
|
|
|
|
$(TARGET): $(TARGET).c Makefile
|
|
riscv64-unknown-elf-gcc -o $(TARGET).elf -g\
|
|
-march=rv64gc -mabi=lp64d -mcmodel=medany \
|
|
-nostdlib -static -lm -fno-tree-loop-distribute-patterns \
|
|
-Ttest.ld $(TARGET).c
|
|
|
|
clean:
|
|
rm -f $(TARGET).elf $(TARGET).objdump
|