-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile.aarch64
157 lines (115 loc) · 5.34 KB
/
Makefile.aarch64
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# @file Makefile.apple
# @brief Makefile.apple
#
# @author Masaki Ota
#
# The new BSD License is applied to this software.
# see LICENSE.txt
#
# @note
# I could compile test-asimd-Mxxx using clang 12
#
WARN = -Wmissing-prototypes -Wall -Winline
OPTI = -O3 -finline-functions -fomit-frame-pointer -DNDEBUG \
-fno-strict-aliasing --param max-inline-insns-single=1800
STD = -std=c99
CC = clang
CCFLAGS = $(OPTI) $(WARN) $(STD)
NEONFLAGS = -DHAVE_NEON
SHA3FLAGS = -DHAVE_NEON -DHAVE_SHA3 -march=armv8.3-a+sha3
STD_TARGET = test-std-M19937
ASIMD_TARGET = test-asimd-M19937
SHA3_TARGET = test-sha3-M19937
ALL_STD_TARGET = test-std-M607 test-std-M1279 test-std-M2281 test-std-M4253 \
test-std-M11213 test-std-M19937 test-std-M44497 test-std-M86243 \
test-std-M132049 test-std-M216091
ALL_ASIMD_TARGET = test-asimd-M607 test-asimd-M1279 test-asimd-M2281 \
test-asimd-M4253 test-asimd-M11213 test-asimd-M19937 test-asimd-M44497 \
test-asimd-M86243 test-asimd-M132049 test-asimd-M216091
ALL_SHA3_TARGET = test-sha3-M607 test-sha3-M1279 test-sha3-M2281 \
test-sha3-M4253 test-sha3-M11213 test-sha3-M19937 test-sha3-M44497 \
test-sha3-M86243 test-sha3-M132049 test-sha3-M216091
.PHONY: std-check asimd-check sha3-check
std: $(STD_TARGET)
asimd:$(ASIMD_TARGET)
sha3:$(SHA3_TARGET)
std-check: $(ALL_std_TARGET)
./check.sh 32 test-std
asimd-check: $(ALL_ASIMD_TARGET)
./check.sh 32 test-asimd
sha3-check: $(ALL_SHA3_TARGET)
./check.sh 32 test-sha3
test-std-M607: test.c SFMT.c SFMT.h SFMT-params607.h
$(CC) $(CCFLAGS) -DSFMT_MEXP=607 -o $@ test.c SFMT.c
test-asimd-M607: test.c SFMT.c SFMT.h SFMT-neon.h SFMT-params607.h
$(CC) $(CCFLAGS) $(NEONFLAGS) -DSFMT_MEXP=607 -o $@ test.c SFMT.c
test-sha3-M607: test.c SFMT.c SFMT.h SFMT-neon.h SFMT-params607.h
$(CC) $(CCFLAGS) $(SHA3FLAGS) -DSFMT_MEXP=607 -o $@ test.c SFMT.c
test-std-M1279: test.c SFMT.c SFMT.h SFMT-params1279.h
$(CC) $(CCFLAGS) -DSFMT_MEXP=1279 -o $@ test.c SFMT.c
test-asimd-M1279: test.c SFMT.c SFMT.h SFMT-neon.h SFMT-params1279.h
$(CC) $(CCFLAGS) $(NEONFLAGS) -DSFMT_MEXP=1279 -o $@ test.c SFMT.c
test-sha3-M1279: test.c SFMT.c SFMT.h SFMT-neon.h SFMT-params1279.h
$(CC) $(CCFLAGS) $(SHA3FLAGS) -DSFMT_MEXP=1279 -o $@ test.c SFMT.c
test-std-M2281: test.c SFMT.c SFMT.h SFMT-params2281.h
$(CC) $(CCFLAGS) -DSFMT_MEXP=2281 -o $@ test.c SFMT.c
test-asimd-M2281: test.c SFMT.c SFMT.h SFMT-neon.h SFMT-params2281.h
$(CC) $(CCFLAGS) $(NEONFLAGS) -DSFMT_MEXP=2281 -o $@ test.c SFMT.c
test-sha3-M2281: test.c SFMT.c SFMT.h SFMT-neon.h SFMT-params2281.h
$(CC) $(CCFLAGS) $(SHA3FLAGS) -DSFMT_MEXP=2281 -o $@ test.c SFMT.c
test-std-M4253: test.c SFMT.c SFMT.h SFMT-params4253.h
$(CC) $(CCFLAGS) -DSFMT_MEXP=4253 -o $@ test.c SFMT.c
test-asimd-M4253: test.c SFMT.c SFMT.h SFMT-neon.h SFMT-params4253.h
$(CC) $(CCFLAGS) $(NEONFLAGS) -DSFMT_MEXP=4253 -o $@ test.c SFMT.c
test-sha3-M4253: test.c SFMT.c SFMT.h SFMT-neon.h SFMT-params4253.h
$(CC) $(CCFLAGS) $(SHA3FLAGS) -DSFMT_MEXP=4253 -o $@ test.c SFMT.c
test-std-M11213: test.c SFMT.c SFMT.h SFMT-params11213.h
$(CC) $(CCFLAGS) -DSFMT_MEXP=11213 -o $@ test.c SFMT.c
test-asimd-M11213: test.c SFMT.c SFMT.h SFMT-neon.h \
SFMT-params11213.h
$(CC) $(CCFLAGS) $(NEONFLAGS) -DSFMT_MEXP=11213 -o $@ test.c SFMT.c
test-sha3-M11213: test.c SFMT.c SFMT.h SFMT-neon.h \
SFMT-params11213.h
$(CC) $(CCFLAGS) $(SHA3FLAGS) -DSFMT_MEXP=11213 -o $@ test.c SFMT.c
test-std-M19937: test.c SFMT.c SFMT.h SFMT-params19937.h
$(CC) $(CCFLAGS) -DSFMT_MEXP=19937 -o $@ test.c SFMT.c
test-asimd-M19937: test.c SFMT.c SFMT.h SFMT-neon.h \
SFMT-params19937.h
$(CC) $(CCFLAGS) $(NEONFLAGS) -DSFMT_MEXP=19937 -o $@ test.c SFMT.c
test-sha3-M19937: test.c SFMT.c SFMT.h SFMT-neon.h \
SFMT-params19937.h
$(CC) $(CCFLAGS) $(SHA3FLAGS) -DSFMT_MEXP=19937 -o $@ test.c SFMT.c
test-std-M44497: test.c SFMT.c SFMT.h SFMT-params44497.h
$(CC) $(CCFLAGS) -DSFMT_MEXP=44497 -o $@ test.c SFMT.c
test-asimd-M44497: test.c SFMT.c SFMT.h SFMT-neon.h \
SFMT-params44497.h
$(CC) $(CCFLAGS) $(NEONFLAGS) -DSFMT_MEXP=44497 -o $@ test.c SFMT.c
test-sha3-M44497: test.c SFMT.c SFMT.h SFMT-neon.h \
SFMT-params44497.h
$(CC) $(CCFLAGS) $(SHA3FLAGS) -DSFMT_MEXP=44497 -o $@ test.c SFMT.c
test-std-M86243: test.c SFMT.c SFMT.h SFMT-params86243.h
$(CC) $(CCFLAGS) -DSFMT_MEXP=86243 -o $@ test.c SFMT.c
test-asimd-M86243: test.c SFMT.c SFMT.h SFMT-neon.h \
SFMT-params86243.h
$(CC) $(CCFLAGS) $(NEONFLAGS) -DSFMT_MEXP=86243 -o $@ test.c SFMT.c
test-sha3-M86243: test.c SFMT.c SFMT.h SFMT-neon.h \
SFMT-params86243.h
$(CC) $(CCFLAGS) $(SHA3FLAGS) -DSFMT_MEXP=86243 -o $@ test.c SFMT.c
test-std-M132049: test.c SFMT.c SFMT.h SFMT-params132049.h
$(CC) $(CCFLAGS) -DSFMT_MEXP=132049 -o $@ test.c SFMT.c
test-asimd-M132049: test.c SFMT.c SFMT.h SFMT-neon.h \
SFMT-params132049.h
$(CC) $(CCFLAGS) $(NEONFLAGS) -DSFMT_MEXP=132049 -o $@ test.c SFMT.c
test-sha3-M132049: test.c SFMT.c SFMT.h SFMT-neon.h \
SFMT-params132049.h
$(CC) $(CCFLAGS) $(SHA3FLAGS) -DSFMT_MEXP=132049 -o $@ test.c SFMT.c
test-std-M216091: test.c SFMT.c SFMT.h SFMT-params216091.h
$(CC) $(CCFLAGS) -DSFMT_MEXP=216091 -o $@ test.c SFMT.c
test-asimd-M216091: test.c SFMT.c SFMT.h SFMT-neon.h \
SFMT-params216091.h
$(CC) $(CCFLAGS) $(NEONFLAGS) -DSFMT_MEXP=216091 -o $@ test.c SFMT.c
test-sha3-M216091: test.c SFMT.c SFMT.h SFMT-neon.h \
SFMT-params216091.h
$(CC) $(CCFLAGS) $(SHA3FLAGS) -DSFMT_MEXP=216091 -o $@ test.c SFMT.c
clean:
rm -f *.o *~ test-std-M* test-asimd-M* test-sha3-M*