-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (47 loc) · 1.75 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
test:clean all
@echo ""
@echo "Start test"
@echo ""
./test32gcc_O0.test >> result.log
@echo $$?
@echo "This is return value,0 for correct,others for error"
./test64gcc_O0.test >> result.log
@echo $$?
@echo "This is return value,0 for correct,others for error"
./test32gcc_Ofast.test >> result.log
@echo $$?
@echo "This is return value,0 for correct,others for error"
./test64gcc_Ofast.test >> result.log
@echo $$?
@echo "This is return value,0 for correct,others for error"
./test32clang_O0.test >> result.log
@echo $$?
@echo "This is return value,0 for correct,others for error"
./test64clang_O0.test >> result.log
@echo $$?
@echo "This is return value,0 for correct,others for error"
./test32clang_Ofast.test >> result.log
@echo $$?
@echo "This is return value,0 for correct,others for error"
./test64clang_Ofast.test >> result.log
@echo $$?
@echo "This is return value,0 for correct,others for error"
all:gcc_test32_O0 gcc_test64_O0 gcc_test32_Ofast gcc_test64_Ofast clang_test32_O0 clang_test64_O0 clang_test32_Ofast clang_test64_Ofast
clean:
rm -f ./test*.test ./result.log
gcc_test32_O0:
gcc -m32 -Wall -g -O0 -fPIC test.c co.c -o test32gcc_O0.test
gcc_test64_O0:
gcc -m64 -Wall -g -O0 -fPIC test.c co.c -o test64gcc_O0.test
gcc_test32_Ofast:
gcc -m32 -Wall -g -Ofast -fPIC test.c co.c -o test32gcc_Ofast.test
gcc_test64_Ofast:
gcc -m64 -Wall -g -Ofast -fPIC test.c co.c -o test64gcc_Ofast.test
clang_test32_O0:
clang -m32 -Wall -g -O0 -fPIC test.c co.c -o test32clang_O0.test
clang_test64_O0:
clang -m64 -Wall -g -O0 -fPIC test.c co.c -o test64clang_O0.test
clang_test32_Ofast:
clang -m32 -Wall -g -Ofast -fPIC test.c co.c -o test32clang_Ofast.test
clang_test64_Ofast:
clang -m64 -Wall -g -Ofast -fPIC test.c co.c -o test64clang_Ofast.test