cvw/examples/fp/fpcalc/Makefile

17 lines
409 B
Makefile
Raw Normal View History

2024-09-29 08:39:04 +00:00
# fpcalc Makefile
2022-02-28 20:34:33 +00:00
CC = gcc
CFLAGS = -O3 -Wno-format-overflow
2024-09-29 08:39:04 +00:00
IFLAGS = -I$(WALLY)/addins/berkeley-softfloat-3/source/include/
LIBS = $(WALLY)/addins/berkeley-softfloat-3/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
2024-09-29 08:39:04 +00:00
clean:
2022-02-28 20:34:33 +00:00
rm -f $(PROGS)