ulps: Fix long lines
[mathlib.git] / etc / Makefile
CommitLineData
93f0b80b 1PROGS=proffenv profmath realgen testrand testrand2
7eb9c17b 2ALL: $(PROGS)
0b5e8dcd 3
4eda6c9f 4# -Wstrict-prototypes
0b5e8dcd 5CC99=gcc -std=c99
6CCFLAGS=-Wall -W -Wformat-nonliteral -Wcast-align -Wpointer-arith \
4eda6c9f 7 -Wbad-function-cast -Wmissing-prototypes \
0b5e8dcd 8 -Wmissing-declarations -Winline -Wundef -Wnested-externs -Wcast-qual \
9 -Wshadow -Wwrite-strings -Wno-unused-parameter \
10 -Wswitch -Wbad-function-cast -g
b0341cf8 11INCLUDE=-I../include -I../ulps -I/usr/include/gmp -I/usr/include/mpfr \
384f2517 12 -I/usr/opt/include -I/usr/local/include
1f311eb0 13LIB=-lm -lmpfr -lmpc -L/usr/opt/lib -L/usr/local/lib -R/usr/opt/lib
0b5e8dcd 14
e4b6fe8f
SK
15proffenv: proffenv.c
16 $(CC99) $(CCFLAGS) $(INCLUDE) proffenv.c -o proffenv $(LIB)
17
06604add 18profmath: profmath.c ../ulps/basic-complex.c ../ulps/gen.c ../subr_random.c
11518169 19 $(CC99) $(CCFLAGS) $(INCLUDE) \
06604add 20 profmath.c ../ulps/basic-complex.c ../ulps/gen.c ../subr_random.c \
11518169
SK
21 -o profmath $(LIB)
22
384f2517 23realgen: 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" \
26 && exit 1)
27 $(CC99) $(CCFLAGS) $(INCLUDE) \
28 realgen.c ../ulps/basic-complex.c ../ulps/gen.c \
29 ../subr_random.c \
30 -o realgen \
31 $(LIB)
32
0b5e8dcd 33testrand: testrand.c ../subr_random.c
34 $(CC99) $(CCFLAGS) $(INCLUDE) \
35 testrand.c ../subr_random.c \
93f0b80b 36 -o testrand -lm
37
38testrand2: testrand2.c ../subr_random.c
39 $(CC99) $(CCFLAGS) $(INCLUDE) \
40 testrand2.c ../subr_random.c \
41 -o testrand2 -lm
0b5e8dcd 42
8e1a3161 43gen-csv: profmath
6ce25b98 44
45gen-graphs: gen-csv
858a6faf 46 @type gnuplot > /dev/null || \
47 (echo "Sorry, you need to have gnuplot installed" && exit 111)
48 @echo "*** Generating .csv data files ***"
49 @./profmath
50 @echo "*** Generating .png plot graphs ***"
6ce25b98 51 @mkdir -p graphs
52 @rm -f graphs/*
b00fd33f 53 @./csv2plot.sh graphs
a5102a35
SK
54 @mkdir -p csv
55 @rm -f csv/*
56 @mv *.csv csv/
6ce25b98 57
e7f7d056 58clean:
7eb9c17b 59 rm -f $(PROGS) *.o *~ core
e7f7d056 60
11518169 61git-clean:
858a6faf 62 git clean -fd > /dev/null