-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
95 lines (79 loc) · 2.72 KB
/
Makefile
File metadata and controls
95 lines (79 loc) · 2.72 KB
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
94
95
OBJECT_FILES := gifts/gift.o \
couples/couple.o \
utils/logger/logger.o
BOY_OBJECT_FILES := boys/boy.o \
boys/generousboy.o \
boys/geekboy.o \
boys/miserboy.o
GIRL_OBJECT_FILES := girls/girl.o \
girls/choosygirl.o \
girls/desperategirl.o \
girls/normalgirl.o
SEARCH_OBJECT_FILES := search/binary_search.o \
search/array_search.o \
search/hash_search.o
makelibs:
cd boys; make all
cd girls; make all
cd gifts; make
cd couples; make
cd utils/logger; make
q10: makelibs
cd tinder; make q10
g++ -Wall -std=c++11 $(OBJECT_FILES) $(BOY_OBJECT_FILES) $(GIRL_OBJECT_FILES) tinder/q10.o -o result
@echo
@echo "Everything went fine. Run ./result to check the result"
q9: makelibs
cd tinder; make q9
g++ -Wall -std=c++11 $(OBJECT_FILES) $(BOY_OBJECT_FILES) $(GIRL_OBJECT_FILES) tinder/q9.o -o result
@echo
@echo "Everything went fine. Run ./result to check the result"
q8: makelib
cd tinder; make q8
g++ -Wall -std=c++11 $(OBJECT_FILES) $(BOY_OBJECT_FILES) $(GIRL_OBJECT_FILES) tinder/q8.o -o result
@echo
@echo "Everything went fine. Run ./result to check the result"
q7: makelibs
cd tinder; make q7
cd search; make all
g++ -Wall -std=c++11 $(OBJECT_FILES) $(BOY_OBJECT_FILES) $(GIRL_OBJECT_FILES) $(SEARCH_OBJECT_FILES) tinder/q7.o -o result
@echo
@echo "Everything went fine. Run ./result to check the result"
q6: makelibs
cd tinder; make q6
g++ -Wall -std=c++11 $(OBJECT_FILES) $(BOY_OBJECT_FILES) $(GIRL_OBJECT_FILES) tinder/q6.o -o result
@echo
@echo "Everything went fine. Run ./result to check the result"
q5: makelibs
cd tinder; make q5
g++ -Wall -std=c++11 $(OBJECT_FILES) $(BOY_OBJECT_FILES) $(GIRL_OBJECT_FILES) tinder/q5.o -o result
@echo
@echo "Everything went fine. Run ./result to check the result"
q4: makelibs
cd tinder; make q4
g++ -Wall -std=c++11 $(OBJECT_FILES) $(BOY_OBJECT_FILES) $(GIRL_OBJECT_FILES) tinder/q4.o -o result
@echo
@echo "Everything went fine. Run ./result to check the result"
q3: makelibs
cd tinder; make q3
g++ -Wall -std=c++11 $(OBJECT_FILES) $(BOY_OBJECT_FILES) $(GIRL_OBJECT_FILES) tinder/q3.o -o result
@echo
@echo "Everything went fine. Run ./result to check the result"
q1:
@echo
@echo "Question 1 and 2 are not available due to new classes."
@echo "Please checkout 'first-submission' branch for them."
q2: q1
csv:
cd tests-generator; make
mv tests-generator/generate .
@echo "Run ./generate to make csv files"
clean:
cd tinder; make clean
cd boys; make clean
cd girls; make clean
cd couples; make clean
cd gifts; make clean
cd utils/logger; make clean
cd search; make clean
@echo "Cleanup done!"