cvw/examples/C/simple/Makefile

17 lines
565 B
Makefile
Raw Normal View History

TARGET = simple
$(TARGET).objdump: $(TARGET)
riscv64-unknown-elf-objdump -S -D $(TARGET) > $(TARGET).objdump
2022-01-11 21:01:48 +00:00
$(TARGET): $(TARGET).c Makefile
riscv64-unknown-elf-gcc -g -o $(TARGET) -march=rv64gc -mabi=lp64d -mcmodel=medany \
2022-01-11 21:01:48 +00:00
-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 \
2022-01-11 21:32:30 +00:00
-O0 $(TARGET).c \
2022-01-11 21:01:48 +00:00
../common/crt.S ../common/syscalls.c
clean:
rm -f $(TARGET) $(TARGET).objdump