-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
85 lines (59 loc) · 1.38 KB
/
Makefile
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
.PHONY: 2data
2data: 2dchar 2ddouble 2dint 2dull
./2dchar > plots/data/2d/char.dat
./2ddouble > plots/data/2d/double.dat
./2dint > plots/data/2d/int.dat
./2dull > plots/data/2d/ull.dat
.PHONY: 3data
3data: 3dchar 3ddouble 3dint 3dull
./3dchar > plots/data/3d/char.dat
./3ddouble > plots/data/3d/double.dat
./3dint > plots/data/3d/int.dat
./3dull > plots/data/3d/ull.dat
2dchar: 2dchar.o bm.o
cc -o 2dchar -Ofast -g 2dchar.o bm.o
3dchar: 3dchar.o bm.o
cc -o 3dchar -Ofast -g 3dchar.o bm.o
2ddouble: 2ddouble.o bm.o
cc -o 2ddouble -Ofast -g 2ddouble.o bm.o
3ddouble: 3ddouble.o bm.o
cc -o 3ddouble -Ofast -g 3ddouble.o bm.o
2dint: 2dint.o bm.o
cc -o 2dint -Ofast -g 2dint.o bm.o
3dint: 3dint.o bm.o
cc -o 3dint -Ofast -g 3dint.o bm.o
2dull: 2dull.o bm.o
cc -o 2dull -Ofast -g 2dull.o bm.o
3dull: 3dull.o bm.o
cc -o 3dull -Ofast -g 3dull.o bm.o
main.o:
cc -c main.c
bm.o:
cc -c bm.c
.PHONY: clean
clean:
rm *.o 2dchar 3dchar 2ddouble 3ddouble 2dint 3dint 2dull 3dull
.PHONY: charts
charts:
cd plots && gnuplot -e "set term svg" 2d.p #3d.p
.PHONY: 3dcharts
3dcharts:
cd plots && gnuplot -e "set term svg" 2d.p #3d.p
.PHONY: debug
debug: run clean
2dchar.o:
cc -c 2dchar.c
3dchar.o:
cc -c 3dchar.c
2ddouble.o:
cc -c 2ddouble.c
3ddouble.o:
cc -c 3ddouble.c
2dint.o:
cc -c 2dint.c
3dint.o:
cc -c 3dint.c
2dull.o:
cc -c 2dull.c
3dull.o:
cc -c 3dull.c