-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
91 lines (61 loc) · 2.84 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
85
86
87
88
89
90
91
CFLAGS=-Wall -ggdb
# Just going to do this Makefile by hand
problems=montecarlo problem1 problem2 problem3 problem4 problem5 problem6 problem7 problem8 problem10 problem11 problem12 problem13 problem14 problem16 problem17 problem18 problem20 problem23 problem23lua problem24 problem25 problem25nim
all: tags sources
tags:
ctags -R ./ /usr/include/*.h
sources: $(addprefix bin/, $(problems))
bin/problem25nim: project_euler_prob25.nim
nim --out:bin/problem25nim c -d:release --parallelBuild=0 project_euler_prob25.nim
bin/problem25: project_euler_prob25.c
gcc -lm -lgmp project_euler_prob25.c -o bin/problem25
bin/problem24: project_euler_prob24.nim
nim --out:bin/problem24 c -d:release --parallelBuild=0 project_euler_prob24.nim
#bin/problem24: project_euler_prob24.lua
# luajit -b project_euler_prob24.lua bin/problem24
bin/problem23: project_euler_prob23.c
gcc -lm -O3 project_euler_prob23.c -o bin/problem23
bin/problem23lua: project_euler_prob23.lua
luajit -b project_euler_prob23.lua bin/problem23lua
bin/problem20: project_euler_prob20.c
gcc -lm -lgmp project_euler_prob20.c -o bin/problem20
bin/problem18: project_euler_prob18.lua bin/problem18helper
luajit -b project_euler_prob18.lua bin/problem18
bin/problem18helper: project_euler_prob18_helper.lua
luajit -b project_euler_prob18_helper.lua bin/problem18helper
bin/problem17: project_euler_prob17.h project_euler_prob17_helper_functions.c project_euler_prob17.c
gcc -std=c99 project_euler_prob17_helper_functions.c project_euler_prob17.c -o bin/problem17
bin/montecarlo: montecarlo.c
gcc -lm montecarlo.c -o bin/montecarlo
bin/problem13: project_euler_prob13.c
gcc project_euler_prob13.c -o bin/problem13
bin/problem14: project_euler_prob14.c
gcc project_euler_prob14.c -o bin/problem14
bin/problem12: prob12_functs.c myfuncts.h project_euler_prob12.c
gcc -lm prob12_functs.c project_euler_prob12.c -o bin/problem12
bin/problem1: project_euler_prob1.c
gcc -lm project_euler_prob1.c -o bin/problem1
bin/problem10: project_euler_prob10.c
gcc -lm project_euler_prob10.c -o bin/problem10
bin/problem11: project_euler_prob11.c
gcc -lm project_euler_prob11.c -o bin/problem11
bin/problem16: project_euler_prob16.c
gcc -lm -lgmp project_euler_prob16.c -o bin/problem16
bin/problem2: project_euler_prob2.c
gcc -lm project_euler_prob2.c -o bin/problem2
bin/problem3: project_euler_prob3.c
gcc -lm -lgmp project_euler_prob3.c -o bin/problem3
bin/problem4: project_euler_prob4.c
gcc -lm project_euler_prob4.c -o bin/problem4
bin/problem5: project_euler_prob5.c
gcc -lm project_euler_prob5.c -o bin/problem5
bin/problem6: project_euler_prob6.c
gcc -lm project_euler_prob6.c -o bin/problem6
bin/problem7: project_euler_prob7.c
gcc -lm project_euler_prob7.c -o bin/problem7
bin/problem8: project_euler_prob8.c
gcc -lm project_euler_prob8.c -o bin/problem8
clean:
rm bin/problem*
rm bin/montecarlo
rm tags