1 PROGS=proffenv profmath realgen testrand testrand2
6 CCFLAGS=-Wall -W -Wformat-nonliteral -Wcast-align -Wpointer-arith \
7 -Wbad-function-cast -Wmissing-prototypes \
8 -Wmissing-declarations -Winline -Wundef -Wnested-externs -Wcast-qual \
9 -Wshadow -Wwrite-strings -Wno-unused-parameter \
10 -Wswitch -Wbad-function-cast -g
11 INCLUDE=-I../include -I../ulps -I/usr/include/gmp -I/usr/include/mpfr \
12 -I/usr/opt/include -I/usr/local/include
13 LIB=-lm -lmpfr -lmpc -L/usr/opt/lib -L/usr/local/lib -R/usr/opt/lib
16 $(CC99) $(CCFLAGS) $(INCLUDE) proffenv.c -o proffenv $(LIB)
18 profmath: profmath.c ../ulps/basic-complex.c ../ulps/gen.c ../subr_random.c
19 $(CC99) $(CCFLAGS) $(INCLUDE) \
20 profmath.c ../ulps/basic-complex.c ../ulps/gen.c ../subr_random.c \
23 realgen: realgen.c ../ulps/basic-complex.c ../ulps/gen.c ../subr_random.c
24 @test -f ../ulps/config.h \
25 || (echo "You should first run autoreconf && ./configure in ../ulps" \
27 $(CC99) $(CCFLAGS) $(INCLUDE) \
28 realgen.c ../ulps/basic-complex.c ../ulps/gen.c \
33 testrand: testrand.c ../subr_random.c
34 $(CC99) $(CCFLAGS) $(INCLUDE) \
35 testrand.c ../subr_random.c \
38 testrand2: testrand2.c ../subr_random.c
39 $(CC99) $(CCFLAGS) $(INCLUDE) \
40 testrand2.c ../subr_random.c \
46 @type gnuplot > /dev/null || \
47 (echo "Sorry, you need to have gnuplot installed" && exit 111)
48 @echo "*** Generating .csv data files ***"
50 @echo "*** Generating .png plot graphs ***"
59 rm -f $(PROGS) *.o *~ core
62 git clean -fd > /dev/null