aboutsummaryrefslogtreecommitdiff
path: root/src/GeneralizedPolynomial-Uniform/makefile
blob: 213ad00d51c797bf69f9db305b7965eba0cc6050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
.PHONY	: no-default-target
no-default-target:
	@echo 'there is (deliberately) no default target in this makefile!'
	@echo 'see the makefile to find out about targets you can specify explicitly'

#
# main targets: rebuild machine-generated coefficient files
#

.PHONY	: 1d
1d	:
	-rm 1d.coeffs/*/*.c
	cat util.maple interpolate.maple 1d.maple \
           | maple 2>&1 >1d.log

.PHONY	: 2d
2d	:
	-rm 2d.coeffs/*/*.c
	cat util.maple interpolate.maple 2d.maple \
           | maple 2>&1 >2d.log

.PHONY	: 3d
3d	:
	-rm 3d.coeffs/*/*.c
	cat util.maple interpolate.maple 3d.maple \
           | maple 2>&1 >3d.log

################################################################################

#
# standalone test programs
#

test_molecule_posn	: test_molecule_posn.c molecule_posn.c \
                          InterpLocalUniform.h
	gcc -g \
            -Wall -W -Wno-unused -Wshadow -Winline -Wpointer-arith \
            -Wbad-function-cast -Wcast-align -Wcast-qual \
            -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
            -DLOCALINTERP_STANDALONE_BUILD -o test_molecule_posn \
            test_molecule_posn.c molecule_posn.c -lm

################################################################################

#
# targets to initially create directories for machine-generated coefficients
# these only need to be run if you're setting up a new interpolator,
# i.e. if you don't already have the directories in cvs
# (you still have to add them to cvs by hand)
#

.PHONY	: 1d.coeffs
1d.coeffs:
	-rm -rf 1d.coeffs
	mkdir 1d.coeffs
	cd 1d.coeffs && mkdir 1d.cube.size2
	cd 1d.coeffs && mkdir 1d.cube.size3
	cd 1d.coeffs && mkdir 1d.cube.size4
	cd 1d.coeffs && mkdir 1d.cube.size5
	cd 1d.coeffs && mkdir 1d.cube.size6
	cd 1d.coeffs && mkdir 1d.cube.size7
	cd 1d.coeffs && mkdir 1d.cube.order1.smooth0
	cd 1d.coeffs && mkdir 1d.cube.order2.smooth0
	cd 1d.coeffs && mkdir 1d.cube.order3.smooth0
	cd 1d.coeffs && mkdir 1d.cube.order4.smooth0
	cd 1d.coeffs && mkdir 1d.cube.order5.smooth0
	cd 1d.coeffs && mkdir 1d.cube.order6.smooth0

.PHONY	: 2d.coeffs
2d.coeffs:
	-rm -rf 2d.coeffs
	mkdir 2d.coeffs
	cd 2d.coeffs && mkdir 2d.cube.size2
	cd 2d.coeffs && mkdir 2d.cube.size3
	cd 2d.coeffs && mkdir 2d.cube.size4
	cd 2d.coeffs && mkdir 2d.cube.size5
	cd 2d.coeffs && mkdir 2d.cube.order1.smooth0
	cd 2d.coeffs && mkdir 2d.cube.order2.smooth0
	cd 2d.coeffs && mkdir 2d.cube.order3.smooth0
	cd 2d.coeffs && mkdir 2d.cube.order4.smooth0

.PHONY	: 3d.coeffs
3d.coeffs:
	-rm -rf 3d.coeffs
	mkdir 3d.coeffs
	cd 3d.coeffs && mkdir 3d.cube.size2
	cd 3d.coeffs && mkdir 3d.cube.size3
	cd 3d.coeffs && mkdir 3d.cube.size4
	cd 3d.coeffs && mkdir 3d.cube.size5
	cd 3d.coeffs && mkdir 3d.cube.order1.smooth0
	cd 3d.coeffs && mkdir 3d.cube.order2.smooth0
	cd 3d.coeffs && mkdir 3d.cube.order3.smooth0
	cd 3d.coeffs && mkdir 3d.cube.order4.smooth0