Blame src/math/gen/Makefile
|
nsz |
f9d179 |
CFLAGS=-I. -Wall -fno-builtin -ffloat-store -D_GNU_SOURCE
|
|
nsz |
f9d179 |
U=mpfr
|
|
Szabolcs Nagy |
667ade |
MPFR=$(U)/lib/libmpfr.a
|
|
Szabolcs Nagy |
667ade |
GMP=$(U)/lib/libgmp.a
|
|
Szabolcs Nagy |
667ade |
#MPFR=-lmpfr
|
|
Szabolcs Nagy |
667ade |
#GMP=-lgmp
|
|
nsz |
f9d179 |
T=$(wildcard t*.c)
|
|
Szabolcs Nagy |
667ade |
CC=musl-gcc
|
|
Szabolcs Nagy |
667ade |
#CC=gcc
|
|
nsz |
f9d179 |
|
|
Szabolcs Nagy |
029ecc |
all: gen check mgen tof toa toe tox next prev rnd
|
|
Szabolcs Nagy |
c58b8e |
|
|
Szabolcs Nagy |
c58b8e |
%:%.o
|
|
Szabolcs Nagy |
c58b8e |
%:%.c
|
|
Szabolcs Nagy |
667ade |
$(CC) -o $@ $(CFLAGS) $^
|
|
nsz |
f9d179 |
|
|
Szabolcs Nagy |
667ade |
gen: gen.c util.c mp.c $(MPFR) $(GMP)
|
|
Szabolcs Nagy |
667ade |
$(CC) -o $@ $(CFLAGS) -lm -I$(U)/include $^
|
|
nsz |
f9d179 |
|
|
nsz |
f9d179 |
check: gen.c util.c mplibm.c
|
|
Szabolcs Nagy |
667ade |
$(CC) -o $@ $(CFLAGS) -lm $^
|
|
nsz |
f9d179 |
|
|
Szabolcs Nagy |
ae0f0f |
mgen: gen.c util.c mplibm.c
|
|
Szabolcs Nagy |
667ade |
$(CC) -o $@ $(CFLAGS) -lm $^
|
|
nsz |
f9d179 |
|
|
nsz |
f9d179 |
clean:
|
|
Szabolcs Nagy |
667ade |
rm -f gen check mgen tof toa toe tox next prev rnd
|
|
nsz |
f9d179 |
|