Debian Codegraph @

Makefile

raw
1 FILES = README.md COPYING.md pcubature.c hcubature.c cubature.h clencurt.h vwrapper.h converged.h test.c clencurt_gen.c NEWS.md
2
3 # CFLAGS = -pg -O3 -fno-inline-small-functions -Wall -ansi -pedantic
4 # CFLAGS = -g -Wall -ansi -pedantic
5 CFLAGS = -O3 -Wall -ansi -pedantic
6
7 all: htest ptest
8
9 htest: test.c hcubature.c cubature.h converged.h vwrapper.h
10 cc $(CFLAGS) -o $@ test.c hcubature.c -lm
11
12 ptest: test.c pcubature.c cubature.h clencurt.h converged.h vwrapper.h
13 cc $(CFLAGS) -DPCUBATURE -o $@ test.c pcubature.c -lm
14
15 clencurt.h: clencurt_gen.c # only depend on .c file so end-users don't re-gen
16 make clencurt_gen
17 ./clencurt_gen 19 > $@
18
19 clencurt_gen: clencurt_gen.c
20 cc $(CFLAGS) -o $@ clencurt_gen.c -lfftw3l -lm
21
22 clean:
23 rm -f htest ptest clencurt_gen *.o
24
25 dll32:
26 make clean
27 i586-mingw32msvc-gcc -c -O3 hcubature.c
28 i586-mingw32msvc-gcc -c -O3 pcubature.c
29 i586-mingw32msvc-gcc -shared -o libcubature32-`grep '##' NEWS.md |head -n 1 |cut -d' ' -f3`.dll hcubature.o pcubature.o
30 make clean
31
32 dll64:
33 make clean
34 x86_64-w64-mingw32-gcc -c -O3 hcubature.c
35 x86_64-w64-mingw32-gcc -c -O3 pcubature.c
36 x86_64-w64-mingw32-gcc -shared -o libcubature64-`grep '##' NEWS.md |head -n 1 |cut -d' ' -f3`.dll hcubature.o pcubature.o
37 make clean
38
39 dylib64:
40 make clean
41 gcc -fPIC -c -O3 hcubature.c
42 gcc -fPIC -c -O3 pcubature.c
43 gcc -dynamiclib hcubature.o pcubature.o -o libcubature64-`grep '##' NEWS.md |head -n 1 |cut -d' ' -f3`.dylib
44 make clean
45
46 dylib32:
47 make clean
48 gcc -m32 -fPIC -c -O3 hcubature.c
49 gcc -m32 -fPIC -c -O3 pcubature.c
50 gcc -m32 -dynamiclib hcubature.o pcubature.o -o libcubature32-`grep '##' NEWS.md |head -n 1 |cut -d' ' -f3`.dylib
51 make clean
52
53 maintainer-clean:
54 make clean
55 rm -f clencurt.h