cvw/examples/fp/softfloat_demo/Makefile

18 lines
410 B
Makefile
Raw Normal View History

2024-09-29 08:30:37 +00:00
# softfloat_demo Makefile
CC = gcc
CFLAGS = -O3
LFLAGS = -L.
2024-09-29 08:30:37 +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
SRCS = $(wildcard *.c)
2024-09-29 08:30:37 +00:00
PROGS = $(patsubst %.c,%,$(SRCS))
all: $(PROGS)
%: %.c
$(CC) $(CFLAGS) -DSOFTFLOAT_FAST_INT64 $(IFLAGS) $(LFLAGS) -o $@ $< $(LIBS)
2024-09-29 08:30:37 +00:00
clean:
rm -f $(PROGS)