mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-04 10:45:23 +00:00
17 lines
565 B
Makefile
17 lines
565 B
Makefile
TARGET = simple
|
|
|
|
$(TARGET).objdump: $(TARGET)
|
|
riscv64-unknown-elf-objdump -S -D $(TARGET) > $(TARGET).objdump
|
|
|
|
$(TARGET): $(TARGET).c Makefile
|
|
riscv64-unknown-elf-gcc -g -o $(TARGET) -march=rv64gc -mabi=lp64d -mcmodel=medany \
|
|
-DPREALLOCATE=1 -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common \
|
|
-fno-builtin-printf -fno-tree-loop-distribute-patterns \
|
|
-static -nostdlib -nostartfiles -lm -lgcc -T../common/test.ld \
|
|
-I../common \
|
|
-O0 $(TARGET).c \
|
|
../common/crt.S ../common/syscalls.c
|
|
|
|
clean:
|
|
rm -f $(TARGET) $(TARGET).objdump
|