cvw/examples/fp/fpcalc/Makefile

22 lines
620 B
Makefile
Raw Normal View History

2022-02-28 20:34:33 +00:00
# Makefile
CC = gcc
CFLAGS = -O3 -Wno-format-overflow
2022-02-28 20:34:33 +00:00
# Link against the riscv-isa-sim version of SoftFloat rather than
# the regular version to get RISC-V NaN behavior
IFLAGS = -I$(RISCV)/riscv-isa-sim/softfloat
2024-05-14 17:28:31 +00:00
LIBS = $(RISCV)/riscv-isa-sim/build/libsoftfloat.a -lm -lquadmath
2022-02-28 20:34:33 +00:00
#IFLAGS = -I../../../addins/SoftFloat-3e/source/include/
2024-05-14 17:28:31 +00:00
#LIBS = ../../../addins/SoftFloat-3e/build/Linux-x86_64-GCC/softfloat.a -lm -lquadmath
2022-02-28 20:34:33 +00:00
SRCS = $(wildcard *.c)
PROGS = $(patsubst %.c,%,$(SRCS))
all: $(PROGS)
%: %.c
2024-05-14 17:28:31 +00:00
$(CC) $(CFLAGS) -DSOFTFLOAT_FAST_INT64 $(IFLAGS) $(LFLAGS) -o $@ $< $(LIBS)
2022-02-28 20:34:33 +00:00
clean:
rm -f $(PROGS)