mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-24 21:44:29 +00:00
15 lines
435 B
Makefile
15 lines
435 B
Makefile
TARGET = simple
|
|
|
|
$(TARGET).objdump: $(TARGET)
|
|
riscv64-unknown-elf-objdump -S -D $(TARGET) > $(TARGET).objdump
|
|
|
|
$(TARGET): $(TARGET).c
|
|
riscv64-unknown-elf-gcc -g -o $(TARGET) -march=rv64gc -mabi=lp64d -mcmodel=medany \
|
|
-O $(TARGET).c
|
|
# -O -T../../link/linkc.ld $(TARGET).c
|
|
# -nostartfiles -nostdlib $(TARGET).c
|
|
# -nostartfiles -nostdlib -T../../link/link.ld $(TARGET).c
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(TARGET).objdump
|