-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (53 loc) · 1.93 KB
/
Makefile
File metadata and controls
68 lines (53 loc) · 1.93 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
TESTSRC := test_btree.cpp
CFLAGS := -g -std=c++11
all: test1 test2 test3 test4 test5 test6 test7 test8 test9 test10
clean:
rm -f test1 test2 test3 test4 test5 test6 test7 test8 test9 test10
check: test2 test9
@/bin/echo -e "\e[1;31m--- TEST 2 ---\e[0m"
@-./test2 || true
@/bin/echo -e "\e[1;31m--- TEST 9 ---\e[0m"
@-./test9 || true
# @/bin/echo -e "\e[1;31m--- TEST 10 ---\e[0m"
# @-./test10 || true
# check: test1 test2 test3 test4 test5 test6 test7 test8 test9 test10
# @/bin/echo -e "\e[1;31m--- TEST 1 ---\e[0m"
# @-./test1 || true # || true because we return non-zero for failing tests, which would halt make
# @/bin/echo -e "\e[1;31m--- TEST 2 ---\e[0m"
# @-./test2 || true
# @/bin/echo -e "\e[1;31m--- TEST 3 ---\e[0m"
# @-./test3 || true
# @/bin/echo -e "\e[1;31m--- TEST 4 ---\e[0m"
# @-./test4 || true
# @/bin/echo -e "\e[1;31m--- TEST 5 ---\e[0m"
# @-./test5 || true
# @/bin/echo -e "\e[1;31m--- TEST 6 ---\e[0m"
# @-./test6 || true
# @/bin/echo -e "\e[1;31m--- TEST 7 ---\e[0m"
# @-./test7 || true
# @/bin/echo -e "\e[1;31m--- TEST 8 ---\e[0m"
# @-./test8 || true
# @/bin/echo -e "\e[1;31m--- TEST 9 ---\e[0m"
# @-./test9 || true
# @/bin/echo -e "\e[1;31m--- TEST 10 ---\e[0m"
# @-./test10 || true
test1: btree1.o $(TESTSRC)
g++ $(CFLAGS) $(TESTSRC) btree1.o -o test1
test2: btree2.o $(TESTSRC)
g++ $(CFLAGS) $(TESTSRC) btree2.o -o test2
test3: btree3.o $(TESTSRC)
g++ $(CFLAGS) $(TESTSRC) btree3.o -o test3
test4: btree4.o $(TESTSRC)
g++ $(CFLAGS) $(TESTSRC) btree4.o -o test4
test5: btree5.o $(TESTSRC)
g++ $(CFLAGS) $(TESTSRC) btree5.o -o test5
test6: btree6.o $(TESTSRC)
g++ $(CFLAGS) $(TESTSRC) btree6.o -o test6
test7: btree7.o $(TESTSRC)
g++ $(CFLAGS) $(TESTSRC) btree7.o -o test7
test8: btree8.o $(TESTSRC)
g++ $(CFLAGS) $(TESTSRC) btree8.o -o test8
test9: btree9.o $(TESTSRC)
g++ $(CFLAGS) $(TESTSRC) btree9.o -o test9
test10: btree10.o $(TESTSRC)
g++ $(CFLAGS) $(TESTSRC) btree10.o -o test10