mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-20 03:47:20 -04:00
Update softfloat_demo Makefile
This commit is contained in:
parent
4cacc6b80c
commit
d4788c2f6a
1 changed files with 5 additions and 10 deletions
|
@ -1,22 +1,17 @@
|
|||
# Makefile
|
||||
# softfloat_demo Makefile
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -O3
|
||||
LFLAGS = -L.
|
||||
# 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))
|
||||
PROGS = $(patsubst %.c,%,$(SRCS))
|
||||
|
||||
all: $(PROGS)
|
||||
|
||||
%: %.c
|
||||
$(CC) $(CFLAGS) -DSOFTFLOAT_FAST_INT64 $(IFLAGS) $(LFLAGS) -o $@ $< $(LIBS)
|
||||
|
||||
clean:
|
||||
clean:
|
||||
rm -f $(PROGS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue