1CFLAGS=-I. -Wall -fno-builtin -ffloat-store -D_GNU_SOURCE 2U=mpfr 3MPFR=$(U)/lib/libmpfr.a 4GMP=$(U)/lib/libgmp.a 5#MPFR=-lmpfr 6#GMP=-lgmp 7T=$(wildcard t*.c) 8CC=musl-gcc 9#CC=gcc 10 11all: gen check mgen tof toa toe tog tox next prev rnd 12 13%:%.o 14%:%.c 15 $(CC) -o $@ $(CFLAGS) $^ 16 17gen: gen.c util.c mp.c $(MPFR) $(GMP) 18 $(CC) -o $@ $(CFLAGS) -lm -I$(U)/include $^ 19 20check: gen.c util.c mplibm.c 21 $(CC) -o $@ $(CFLAGS) -lm $^ 22 23mgen: gen.c util.c mplibm.c 24 $(CC) -o $@ $(CFLAGS) -lm $^ 25 26clean: 27 rm -f gen check mgen tof toa toe tog tox next prev rnd 28 29