From 7fea22e48a8cac58fc80df17986d30dc3e7ca621 Mon Sep 17 00:00:00 2001 From: Jordan Carlin Date: Sun, 29 Sep 2024 01:39:04 -0700 Subject: [PATCH] Update fpcalc Makefile --- examples/fp/fpcalc/Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/examples/fp/fpcalc/Makefile b/examples/fp/fpcalc/Makefile index 2f5751ffa..f3fc4bdcf 100644 --- a/examples/fp/fpcalc/Makefile +++ b/examples/fp/fpcalc/Makefile @@ -1,15 +1,10 @@ -# Makefile +# fpcalc Makefile CC = gcc CFLAGS = -O3 -Wno-format-overflow -# 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 -LIBS = $(RISCV)/riscv-isa-sim/build/libsoftfloat.a -lm -lquadmath -#IFLAGS = -I../../../addins/berkeley-softfloat-3/source/include/ -#LIBS = ../../../addins/berkeley-softfloat-3/build/Linux-x86_64-GCC/softfloat.a -lm -lquadmath +IFLAGS = -I$(WALLY)/addins/berkeley-softfloat-3/source/include/ +LIBS = $(WALLY)/addins/berkeley-softfloat-3/build/Linux-x86_64-GCC/softfloat.a -lm -lquadmath SRCS = $(wildcard *.c) - PROGS = $(patsubst %.c,%,$(SRCS)) all: $(PROGS) @@ -17,5 +12,5 @@ all: $(PROGS) %: %.c $(CC) $(CFLAGS) -DSOFTFLOAT_FAST_INT64 $(IFLAGS) $(LFLAGS) -o $@ $< $(LIBS) -clean: +clean: rm -f $(PROGS)