-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
56 lines (47 loc) · 1.88 KB
/
makefile
File metadata and controls
56 lines (47 loc) · 1.88 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
build:
cc ptopk.c -o test.o -l pthread
cc single_threaded_read.c -o sr.o -l pthread
cc multi_threaded_read.c -o mr.o -l pthread
cc single_threaded_read_and_parse.c -o srp.o -l pthread
cc multi_threaded_read_and_parse.c -o mrp.o -l pthread
cc multi_threaded_segment_read_and_parse.c -o msrp.o -l pthread
test:
echo "here are your program's output"
./test.o case1/ 1645491600 5
./test.o case2/ 1645491600 5
./test.o case3/ 1645491600 5
./test.o case4/ 1645491600 5
./test.o case5/ 1645491600 5
echo "here are the reference output"
./test.example case1/ 1645491600 5
./test.example case2/ 1645491600 5
./test.example case3/ 1645491600 5
./test.example case4/ 1645491600 5
./test.example case5/ 1645491600 5
run:
./test.o case1/ 1645491600 5
./test.o case2/ 1645491600 5
./test.o case3/ 1645491600 5
./test.o case4/ 1645491600 5
./test.o case5/ 1645491600 5
clean :
-rm -f *.out *.o
-rm myoutput referenceoutput
getdata:
unzip -j /public/cs3103/project/project.zip "project_log_analyze/case1/*" -d "case1/"
unzip -j /public/cs3103/project/project.zip "project_log_analyze/case2/*" -d "case2/"
unzip -j /public/cs3103/project/project.zip "project_log_analyze/case3/*" -d "case3/"
unzip -j /public/cs3103/project/project.zip "project_log_analyze/case4/*" -d "case4/"
unzip -j /public/cs3103/project/project.zip "project_log_analyze/case5/*" -d "case5/"
testdiff:
@./test.o case1/ 1645491600 5 >> myoutput
@./test.o case2/ 1645491600 5 >> myoutput
@./test.o case3/ 1645491600 5 >> myoutput
@./test.o case4/ 1645491600 5 >> myoutput
@./test.o case5/ 1645491600 5 >> myoutput
@./test.example case1/ 1645491600 5 >> referenceoutput
@./test.example case2/ 1645491600 5 >> referenceoutput
@./test.example case3/ 1645491600 5 >> referenceoutput
@./test.example case4/ 1645491600 5 >> referenceoutput
@./test.example case5/ 1645491600 5 >> referenceoutput
diff myoutput referenceoutput