-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
88 lines (76 loc) · 2.38 KB
/
Makefile
File metadata and controls
88 lines (76 loc) · 2.38 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
#
# Makefile
#
# Created on: Dec 26, 2019
# Author: jb
#
clean:
cd build && rm -rf *
cmake_dbg:
cd build && cmake -DCMAKE_BUILD_TYPE=debug ..
cmake_rel:
cd build && cmake -DCMAKE_BUILD_TYPE=release ..
test_array:
cd build && make test_array
test_processor:
cd build && make test_processor
test_grammar:
cd build && make test_grammar
test_parser:
cd build && make test_parser
test_speed:
cd build && make test_speed
#test_design:
# rm -f build/test_design 2>/dev/null
# #$(COMPILER) $(BASE_OPTIONS) $(DBG_OPT) -std=c++11 -I include -o build/test_design test/test_design.cc
# $(COMPILER) $(OPTIONS) -o build/test_design test/test_design.cc
# build/test_design
# #build/test_design
# #build/test_design
#
##test_design:
## $(COMPILER) $(BASE_OPTIONS) -S -fverbose-asm -O2 -mavx2 -std=c++11 -I include -o build/test_design.S test/test_design.cc
## as -alhnd build/test_design.S > build/test_design.info.S
#
#test_simd:
# rm -f build/test_simd 2>/dev/null
# #$(COMPILER) $(BASE_OPTIONS) $(DBG_OPT) -std=c++11 -I include -o build/test_design test/test_design.cc
# $(COMPILER) $(OPTIONS) -o build/test_simd test/test_simd.cc
# build/test_simd
# #build/test_design
# #build/test_design
#
#
#
### Unit tests.
#
#test_array:
# rm -f build/test_array 2>/dev/null
# $(COMPILER) $(OPTIONS) -o build/test_array test/test_array.cc
# build/test_array
#
#test_processor:
# rm -f build/test_processor 2>/dev/null
# $(COMPILER) $(OPTIONS) -o build/test_processor test/test_processor.cc
# #$(COMPILER) $(BASE_OPTIONS) -O3 -mavx2 -std=c++11 -I include -o build/test_simd test/test_simd.cc
# build/test_processor
#
#test_grammar: grammar
# rm -f build/test_grammar 2>/dev/null
# $(COMPILER) $(OPTIONS) -o build/test_grammar build/grammar.o test/test_grammar.cc
# build/test_grammar
#
#test_parser: grammar
# rm -f build/test_parser 2>/dev/null
# $(COMPILER) $(OPTIONS) -o build/test_parser build/grammar.o test/test_parser.cc
# #$(COMPILER) $(BASE_OPTIONS) -O3 -mavx2 -std=c++11 -I include -o build/test_simd test/test_simd.cc
# build/test_parser
#
#
#test_speed: grammar
# rm -f build/test_speed 2>/dev/null
# #$(COMPILER) $(BASE_OPTIONS) $(DBG_OPT) -std=c++11 -I include -o build/test_speed build/grammar.o test/test_parser_speed.cc
# $(COMPILER) $(OPTIONS) -o build/test_speed build/grammar.o test/test_parser_speed.cc
# build/test_speed
#
#tests: test_grammar test_array test_processor test_parser test_speed