-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
630 lines (542 loc) · 23.2 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
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
# compilation of ref and vec implementations
MCELIECE348864_REF_SOURCES = ref/mceliece348864/benes.c \
ref/mceliece348864/bm.c \
ref/mceliece348864/controlbits.c \
ref/mceliece348864/decrypt.c \
ref/mceliece348864/encrypt.c \
ref/mceliece348864/gf.c \
ref/mceliece348864/keccak.c \
ref/mceliece348864/operations.c \
ref/mceliece348864/pk_gen.c \
ref/mceliece348864/randombytes.c \
ref/mceliece348864/root.c \
ref/mceliece348864/sk_gen.c \
ref/mceliece348864/synd.c \
ref/mceliece348864/transpose.c \
ref/mceliece348864/util.c
MCELIECE348864_REF_OBJECTS = $(MCELIECE348864_REF_SOURCES:.c=.o)
MCELIECE348864_REF_STATIC_LIB = target/libmceliece348864ref.a
MCELIECE348864f_REF_SOURCES = ref/mceliece348864f/benes.c \
ref/mceliece348864f/bm.c \
ref/mceliece348864f/controlbits.c \
ref/mceliece348864f/decrypt.c \
ref/mceliece348864f/encrypt.c \
ref/mceliece348864f/gf.c \
ref/mceliece348864f/keccak.c \
ref/mceliece348864f/operations.c \
ref/mceliece348864f/pk_gen.c \
ref/mceliece348864f/randombytes.c \
ref/mceliece348864f/root.c \
ref/mceliece348864f/sk_gen.c \
ref/mceliece348864f/synd.c \
ref/mceliece348864f/transpose.c \
ref/mceliece348864f/util.c
MCELIECE348864f_REF_OBJECTS = $(MCELIECE348864f_REF_SOURCES:.c=.o)
MCELIECE348864f_REF_STATIC_LIB = target/libmceliece348864fref.a
MCELIECE460896_REF_SOURCES = ref/mceliece460896/benes.c \
ref/mceliece460896/bm.c \
ref/mceliece460896/controlbits.c \
ref/mceliece460896/decrypt.c \
ref/mceliece460896/encrypt.c \
ref/mceliece460896/gf.c \
ref/mceliece460896/keccak.c \
ref/mceliece460896/operations.c \
ref/mceliece460896/pk_gen.c \
ref/mceliece460896/randombytes.c \
ref/mceliece460896/root.c \
ref/mceliece460896/sk_gen.c \
ref/mceliece460896/synd.c \
ref/mceliece460896/transpose.c \
ref/mceliece460896/util.c
MCELIECE460896_REF_OBJECTS = $(MCELIECE460896_REF_SOURCES:.c=.o)
MCELIECE460896_REF_STATIC_LIB = target/libmceliece460896ref.a
MCELIECE460896f_REF_SOURCES = ref/mceliece460896f/benes.c \
ref/mceliece460896f/bm.c \
ref/mceliece460896f/controlbits.c \
ref/mceliece460896f/decrypt.c \
ref/mceliece460896f/encrypt.c \
ref/mceliece460896f/gf.c \
ref/mceliece460896f/keccak.c \
ref/mceliece460896f/operations.c \
ref/mceliece460896f/pk_gen.c \
ref/mceliece460896f/randombytes.c \
ref/mceliece460896f/root.c \
ref/mceliece460896f/sk_gen.c \
ref/mceliece460896f/synd.c \
ref/mceliece460896f/transpose.c \
ref/mceliece460896f/util.c
MCELIECE460896f_REF_OBJECTS = $(MCELIECE460896f_REF_SOURCES:.c=.o)
MCELIECE460896f_REF_STATIC_LIB = target/libmceliece460896fref.a
MCELIECE6688128_REF_SOURCES = ref/mceliece6688128/benes.c \
ref/mceliece6688128/bm.c \
ref/mceliece6688128/controlbits.c \
ref/mceliece6688128/decrypt.c \
ref/mceliece6688128/encrypt.c \
ref/mceliece6688128/gf.c \
ref/mceliece6688128/keccak.c \
ref/mceliece6688128/operations.c \
ref/mceliece6688128/pk_gen.c \
ref/mceliece6688128/randombytes.c \
ref/mceliece6688128/root.c \
ref/mceliece6688128/sk_gen.c \
ref/mceliece6688128/synd.c \
ref/mceliece6688128/transpose.c \
ref/mceliece6688128/util.c
MCELIECE6688128_REF_OBJECTS = $(MCELIECE6688128_REF_SOURCES:.c=.o)
MCELIECE6688128_REF_STATIC_LIB = target/libmceliece6688128ref.a
MCELIECE6688128f_REF_SOURCES = ref/mceliece6688128f/benes.c \
ref/mceliece6688128f/bm.c \
ref/mceliece6688128f/controlbits.c \
ref/mceliece6688128f/decrypt.c \
ref/mceliece6688128f/encrypt.c \
ref/mceliece6688128f/gf.c \
ref/mceliece6688128f/keccak.c \
ref/mceliece6688128f/operations.c \
ref/mceliece6688128f/pk_gen.c \
ref/mceliece6688128f/randombytes.c \
ref/mceliece6688128f/root.c \
ref/mceliece6688128f/sk_gen.c \
ref/mceliece6688128f/synd.c \
ref/mceliece6688128f/transpose.c \
ref/mceliece6688128f/util.c
MCELIECE6688128f_REF_OBJECTS = $(MCELIECE6688128f_REF_SOURCES:.c=.o)
MCELIECE6688128f_REF_STATIC_LIB = target/libmceliece6688128fref.a
MCELIECE6960119_REF_SOURCES = ref/mceliece6960119/benes.c \
ref/mceliece6960119/bm.c \
ref/mceliece6960119/controlbits.c \
ref/mceliece6960119/decrypt.c \
ref/mceliece6960119/encrypt.c \
ref/mceliece6960119/gf.c \
ref/mceliece6960119/keccak.c \
ref/mceliece6960119/operations.c \
ref/mceliece6960119/pk_gen.c \
ref/mceliece6960119/randombytes.c \
ref/mceliece6960119/root.c \
ref/mceliece6960119/sk_gen.c \
ref/mceliece6960119/synd.c \
ref/mceliece6960119/transpose.c \
ref/mceliece6960119/util.c
MCELIECE6960119_REF_OBJECTS = $(MCELIECE6960119_REF_SOURCES:.c=.o)
MCELIECE6960119_REF_STATIC_LIB = target/libmceliece6960119ref.a
MCELIECE6960119f_REF_SOURCES = ref/mceliece6960119f/benes.c \
ref/mceliece6960119f/bm.c \
ref/mceliece6960119f/controlbits.c \
ref/mceliece6960119f/decrypt.c \
ref/mceliece6960119f/encrypt.c \
ref/mceliece6960119f/gf.c \
ref/mceliece6960119f/keccak.c \
ref/mceliece6960119f/operations.c \
ref/mceliece6960119f/pk_gen.c \
ref/mceliece6960119f/randombytes.c \
ref/mceliece6960119f/root.c \
ref/mceliece6960119f/sk_gen.c \
ref/mceliece6960119f/synd.c \
ref/mceliece6960119f/transpose.c \
ref/mceliece6960119f/util.c
MCELIECE6960119f_REF_OBJECTS = $(MCELIECE6960119f_REF_SOURCES:.c=.o)
MCELIECE6960119f_REF_STATIC_LIB = target/libmceliece6960119fref.a
MCELIECE8192128_REF_SOURCES = ref/mceliece8192128/benes.c \
ref/mceliece8192128/bm.c \
ref/mceliece8192128/controlbits.c \
ref/mceliece8192128/decrypt.c \
ref/mceliece8192128/encrypt.c \
ref/mceliece8192128/gf.c \
ref/mceliece8192128/keccak.c \
ref/mceliece8192128/operations.c \
ref/mceliece8192128/pk_gen.c \
ref/mceliece8192128/randombytes.c \
ref/mceliece8192128/root.c \
ref/mceliece8192128/sk_gen.c \
ref/mceliece8192128/synd.c \
ref/mceliece8192128/transpose.c \
ref/mceliece8192128/util.c
MCELIECE8192128_REF_OBJECTS = $(MCELIECE8192128_REF_SOURCES:.c=.o)
MCELIECE8192128_REF_STATIC_LIB = target/libmceliece8192128ref.a
MCELIECE8192128f_REF_SOURCES = ref/mceliece8192128f/benes.c \
ref/mceliece8192128f/bm.c \
ref/mceliece8192128f/controlbits.c \
ref/mceliece8192128f/decrypt.c \
ref/mceliece8192128f/encrypt.c \
ref/mceliece8192128f/gf.c \
ref/mceliece8192128f/keccak.c \
ref/mceliece8192128f/operations.c \
ref/mceliece8192128f/pk_gen.c \
ref/mceliece8192128f/randombytes.c \
ref/mceliece8192128f/root.c \
ref/mceliece8192128f/sk_gen.c \
ref/mceliece8192128f/synd.c \
ref/mceliece8192128f/transpose.c \
ref/mceliece8192128f/util.c
MCELIECE8192128f_REF_OBJECTS = $(MCELIECE8192128f_REF_SOURCES:.c=.o)
MCELIECE8192128f_REF_STATIC_LIB = target/libmceliece8192128fref.a
MCELIECE348864_VEC_SOURCES = vec/mceliece348864/benes.c \
vec/mceliece348864/bm.c \
vec/mceliece348864/controlbits.c \
vec/mceliece348864/decrypt.c \
vec/mceliece348864/encrypt.c \
vec/mceliece348864/fft.c \
vec/mceliece348864/fft_tr.c \
vec/mceliece348864/gf.c \
vec/mceliece348864/keccak.c \
vec/mceliece348864/operations.c \
vec/mceliece348864/pk_gen.c \
vec/mceliece348864/randombytes.c \
vec/mceliece348864/sk_gen.c \
vec/mceliece348864/vec.c
MCELIECE348864_VEC_OBJS = $(MCELIECE348864_VEC_SOURCES:.c=.o)
MCELIECE348864_VEC_STATIC_LIB = target/libmceliece348864vec.a
MCELIECE348864f_VEC_SOURCES = vec/mceliece348864f/benes.c \
vec/mceliece348864f/bm.c \
vec/mceliece348864f/controlbits.c \
vec/mceliece348864f/decrypt.c \
vec/mceliece348864f/encrypt.c \
vec/mceliece348864f/fft.c \
vec/mceliece348864f/fft_tr.c \
vec/mceliece348864f/gf.c \
vec/mceliece348864f/keccak.c \
vec/mceliece348864f/operations.c \
vec/mceliece348864f/pk_gen.c \
vec/mceliece348864f/randombytes.c \
vec/mceliece348864f/sk_gen.c \
vec/mceliece348864f/vec.c
MCELIECE348864f_VEC_OBJS = $(MCELIECE348864f_VEC_SOURCES:.c=.o)
MCELIECE348864f_VEC_STATIC_LIB = target/libmceliece348864fvec.a
MCELIECE460896_VEC_SOURCES = vec/mceliece460896/benes.c \
vec/mceliece460896/bm.c \
vec/mceliece460896/controlbits.c \
vec/mceliece460896/decrypt.c \
vec/mceliece460896/encrypt.c \
vec/mceliece460896/fft.c \
vec/mceliece460896/fft_tr.c \
vec/mceliece460896/gf.c \
vec/mceliece460896/keccak.c \
vec/mceliece460896/operations.c \
vec/mceliece460896/pk_gen.c \
vec/mceliece460896/randombytes.c \
vec/mceliece460896/sk_gen.c \
vec/mceliece460896/vec.c
MCELIECE460896_VEC_OBJS = $(MCELIECE460896_VEC_SOURCES:.c=.o)
MCELIECE460896_VEC_STATIC_LIB = target/libmceliece460896vec.a
MCELIECE460896f_VEC_SOURCES = vec/mceliece460896f/benes.c \
vec/mceliece460896f/bm.c \
vec/mceliece460896f/controlbits.c \
vec/mceliece460896f/decrypt.c \
vec/mceliece460896f/encrypt.c \
vec/mceliece460896f/fft.c \
vec/mceliece460896f/fft_tr.c \
vec/mceliece460896f/gf.c \
vec/mceliece460896f/keccak.c \
vec/mceliece460896f/operations.c \
vec/mceliece460896f/pk_gen.c \
vec/mceliece460896f/randombytes.c \
vec/mceliece460896f/sk_gen.c \
vec/mceliece460896f/vec.c
MCELIECE460896f_VEC_OBJS = $(MCELIECE460896f_VEC_SOURCES:.c=.o)
MCELIECE460896f_VEC_STATIC_LIB = target/libmceliece460896fvec.a
MCELIECE6688128_VEC_SOURCES = vec/mceliece6688128/benes.c \
vec/mceliece6688128/bm.c \
vec/mceliece6688128/controlbits.c \
vec/mceliece6688128/decrypt.c \
vec/mceliece6688128/encrypt.c \
vec/mceliece6688128/fft.c \
vec/mceliece6688128/fft_tr.c \
vec/mceliece6688128/gf.c \
vec/mceliece6688128/keccak.c \
vec/mceliece6688128/operations.c \
vec/mceliece6688128/pk_gen.c \
vec/mceliece6688128/randombytes.c \
vec/mceliece6688128/sk_gen.c \
vec/mceliece6688128/vec.c
MCELIECE6688128_VEC_OBJS = $(MCELIECE6688128_VEC_SOURCES:.c=.o)
MCELIECE6688128_VEC_STATIC_LIB = target/libmceliece6688128vec.a
MCELIECE6688128f_VEC_SOURCES = vec/mceliece6688128f/benes.c \
vec/mceliece6688128f/bm.c \
vec/mceliece6688128f/controlbits.c \
vec/mceliece6688128f/decrypt.c \
vec/mceliece6688128f/encrypt.c \
vec/mceliece6688128f/fft.c \
vec/mceliece6688128f/fft_tr.c \
vec/mceliece6688128f/gf.c \
vec/mceliece6688128f/keccak.c \
vec/mceliece6688128f/operations.c \
vec/mceliece6688128f/pk_gen.c \
vec/mceliece6688128f/randombytes.c \
vec/mceliece6688128f/sk_gen.c \
vec/mceliece6688128f/vec.c
MCELIECE6688128f_VEC_OBJS = $(MCELIECE6688128f_VEC_SOURCES:.c=.o)
MCELIECE6688128f_VEC_STATIC_LIB = target/libmceliece6688128fvec.a
MCELIECE6960119_VEC_SOURCES = vec/mceliece6960119/benes.c \
vec/mceliece6960119/bm.c \
vec/mceliece6960119/controlbits.c \
vec/mceliece6960119/decrypt.c \
vec/mceliece6960119/encrypt.c \
vec/mceliece6960119/fft.c \
vec/mceliece6960119/fft_tr.c \
vec/mceliece6960119/gf.c \
vec/mceliece6960119/keccak.c \
vec/mceliece6960119/operations.c \
vec/mceliece6960119/pk_gen.c \
vec/mceliece6960119/randombytes.c \
vec/mceliece6960119/sk_gen.c \
vec/mceliece6960119/vec.c
MCELIECE6960119_VEC_OBJS = $(MCELIECE6960119_VEC_SOURCES:.c=.o)
MCELIECE6960119_VEC_STATIC_LIB = target/libmceliece6960119vec.a
MCELIECE6960119f_VEC_SOURCES = vec/mceliece348864/benes.c \
vec/mceliece6960119f/bm.c \
vec/mceliece6960119f/controlbits.c \
vec/mceliece6960119f/decrypt.c \
vec/mceliece6960119f/encrypt.c \
vec/mceliece6960119f/fft.c \
vec/mceliece6960119f/fft_tr.c \
vec/mceliece6960119f/gf.c \
vec/mceliece6960119f/keccak.c \
vec/mceliece6960119f/operations.c \
vec/mceliece6960119f/pk_gen.c \
vec/mceliece6960119f/randombytes.c \
vec/mceliece6960119f/sk_gen.c \
vec/mceliece6960119f/vec.c
MCELIECE6960119f_VEC_OBJS = $(MCELIECE6960119f_VEC_SOURCES:.c=.o)
MCELIECE6960119f_VEC_STATIC_LIB = target/libmceliece6960119fvec.a
MCELIECE8192128_VEC_SOURCES = vec/mceliece8192128/benes.c \
vec/mceliece8192128/bm.c \
vec/mceliece8192128/controlbits.c \
vec/mceliece8192128/decrypt.c \
vec/mceliece8192128/encrypt.c \
vec/mceliece8192128/fft.c \
vec/mceliece8192128/fft_tr.c \
vec/mceliece8192128/gf.c \
vec/mceliece8192128/keccak.c \
vec/mceliece8192128/operations.c \
vec/mceliece8192128/pk_gen.c \
vec/mceliece8192128/randombytes.c \
vec/mceliece8192128/sk_gen.c \
vec/mceliece8192128/vec.c
MCELIECE8192128_VEC_OBJS = $(MCELIECE8192128_VEC_SOURCES:.c=.o)
MCELIECE8192128_VEC_STATIC_LIB = target/libmceliece8192128vec.a
MCELIECE8192128f_VEC_SOURCES = vec/mceliece8192128f/benes.c \
vec/mceliece8192128f/bm.c \
vec/mceliece8192128f/controlbits.c \
vec/mceliece8192128f/decrypt.c \
vec/mceliece8192128f/encrypt.c \
vec/mceliece8192128f/fft.c \
vec/mceliece8192128f/fft_tr.c \
vec/mceliece8192128f/gf.c \
vec/mceliece8192128f/keccak.c \
vec/mceliece8192128f/operations.c \
vec/mceliece8192128f/pk_gen.c \
vec/mceliece8192128f/randombytes.c \
vec/mceliece8192128f/sk_gen.c \
vec/mceliece8192128f/vec.c
MCELIECE8192128f_VEC_OBJS = $(MCELIECE8192128f_VEC_SOURCES:.c=.o)
MCELIECE8192128f_VEC_STATIC_LIB = target/libmceliece8192128fvec.a
CFLAGS = -O3
.PHONY: all tests test_correctness test_speed ref clean
ref: \
$(MCELIECE348864_REF_STATIC_LIB) \
$(MCELIECE348864f_REF_STATIC_LIB) \
$(MCELIECE460896_REF_STATIC_LIB) \
$(MCELIECE460896f_REF_STATIC_LIB) \
$(MCELIECE6688128_REF_STATIC_LIB) \
$(MCELIECE6688128f_REF_STATIC_LIB) \
$(MCELIECE6960119_REF_STATIC_LIB) \
$(MCELIECE6960119f_REF_STATIC_LIB) \
$(MCELIECE8192128_REF_STATIC_LIB) \
$(MCELIECE8192128f_REF_STATIC_LIB)
vec: \
$(MCELIECE348864_VEC_STATIC_LIB) \
$(MCELIECE348864f_VEC_STATIC_LIB) \
$(MCELIECE460896_VEC_STATIC_LIB) \
$(MCELIECE460896f_VEC_STATIC_LIB) \
$(MCELIECE6688128_VEC_STATIC_LIB) \
$(MCELIECE6688128f_VEC_STATIC_LIB) \
$(MCELIECE6960119_VEC_STATIC_LIB) \
$(MCELIECE6960119f_VEC_STATIC_LIB) \
$(MCELIECE8192128_VEC_STATIC_LIB) \
$(MCELIECE8192128f_VEC_STATIC_LIB)
$(MCELIECE348864_REF_STATIC_LIB): $(MCELIECE348864_REF_OBJECTS)
ar rcs $@ $^
$(MCELIECE348864f_REF_STATIC_LIB): $(MCELIECE348864f_REF_OBJECTS)
ar rcs $@ $^
$(MCELIECE460896_REF_STATIC_LIB): $(MCELIECE460896_REF_OBJECTS)
ar rcs $@ $^
$(MCELIECE460896f_REF_STATIC_LIB): $(MCELIECE460896f_REF_OBJECTS)
ar rcs $@ $^
$(MCELIECE6688128_REF_STATIC_LIB): $(MCELIECE6688128_REF_OBJECTS)
ar rcs $@ $^
$(MCELIECE6688128f_REF_STATIC_LIB): $(MCELIECE6688128f_REF_OBJECTS)
ar rcs $@ $^
$(MCELIECE6960119_REF_STATIC_LIB): $(MCELIECE6960119_REF_OBJECTS)
ar rcs $@ $^
$(MCELIECE6960119f_REF_STATIC_LIB): $(MCELIECE6960119f_REF_OBJECTS)
ar rcs $@ $^
$(MCELIECE8192128_REF_STATIC_LIB): $(MCELIECE8192128_REF_OBJECTS)
ar rcs $@ $^
$(MCELIECE8192128f_REF_STATIC_LIB): $(MCELIECE8192128f_REF_OBJECTS)
ar rcs $@ $^
$(MCELIECE348864_VEC_STATIC_LIB): $(MCELIECE348864_VEC_OBJS)
ar rcs $@ $^
$(MCELIECE348864f_VEC_STATIC_LIB): $(MCELIECE348864f_VEC_OBJS)
ar rcs $@ $^
$(MCELIECE460896_VEC_STATIC_LIB): $(MCELIECE460896_VEC_OBJS)
ar rcs $@ $^
$(MCELIECE460896f_VEC_STATIC_LIB): $(MCELIECE460896f_VEC_OBJS)
ar rcs $@ $^
$(MCELIECE6688128_VEC_STATIC_LIB): $(MCELIECE6688128_VEC_OBJS)
ar rcs $@ $^
$(MCELIECE6688128f_VEC_STATIC_LIB): $(MCELIECE6688128f_VEC_OBJS)
ar rcs $@ $^
$(MCELIECE6960119_VEC_STATIC_LIB): $(MCELIECE6960119_VEC_OBJS)
ar rcs $@ $^
$(MCELIECE6960119f_VEC_STATIC_LIB): $(MCELIECE6960119f_VEC_OBJS)
ar rcs $@ $^
$(MCELIECE8192128_VEC_STATIC_LIB): $(MCELIECE8192128_VEC_OBJS)
ar rcs $@ $^
$(MCELIECE8192128f_VEC_STATIC_LIB): $(MCELIECE8192128f_VEC_OBJS)
ar rcs $@ $^
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
tests: test_correctness test_speed
test_correctness: \
target/test_mceliece348864_ref_correctness \
target/test_mceliece348864f_ref_correctness \
target/test_mceliece460896_ref_correctness \
target/test_mceliece460896f_ref_correctness \
target/test_mceliece6688128_ref_correctness \
target/test_mceliece6688128f_ref_correctness \
target/test_mceliece6960119_ref_correctness \
target/test_mceliece6960119f_ref_correctness \
target/test_mceliece8192128_ref_correctness \
target/test_mceliece8192128f_ref_correctness \
target/test_mceliece348864_vec_correctness \
target/test_mceliece348864f_vec_correctness \
target/test_mceliece460896_vec_correctness \
target/test_mceliece460896f_vec_correctness \
target/test_mceliece6688128_vec_correctness \
target/test_mceliece6688128f_vec_correctness \
target/test_mceliece6960119_vec_correctness \
target/test_mceliece6960119f_vec_correctness \
target/test_mceliece8192128_vec_correctness \
target/test_mceliece8192128f_vec_correctness
test_speed: \
target/test_mceliece348864_ref_speed \
target/test_mceliece348864f_ref_speed \
target/test_mceliece460896_ref_speed \
target/test_mceliece460896f_ref_speed \
target/test_mceliece6688128_ref_speed \
target/test_mceliece6688128f_ref_speed \
target/test_mceliece6960119_ref_speed \
target/test_mceliece6960119f_ref_speed \
target/test_mceliece8192128_ref_speed \
target/test_mceliece8192128f_ref_speed \
target/test_mceliece348864_vec_speed \
target/test_mceliece348864f_vec_speed \
target/test_mceliece460896_vec_speed \
target/test_mceliece460896f_vec_speed \
target/test_mceliece6688128_vec_speed \
target/test_mceliece6688128f_vec_speed \
target/test_mceliece6960119_vec_speed \
target/test_mceliece6960119f_vec_speed \
target/test_mceliece8192128_vec_speed \
target/test_mceliece8192128f_vec_speed
target/test_mceliece348864_ref_correctness: test_correctness.c $(MCELIECE348864_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=3488 -o $@ $^
target/test_mceliece348864_ref_speed: test_speed.c $(MCELIECE348864_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=3488 -o $@ $^
target/test_mceliece348864f_ref_correctness: test_correctness.c $(MCELIECE348864f_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=3488 -DFASTKEYGEN -o $@ $^
target/test_mceliece348864f_ref_speed: test_speed.c $(MCELIECE348864f_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=3488 -DFASTKEYGEN -o $@ $^
target/test_mceliece460896_ref_correctness: test_correctness.c $(MCELIECE460896_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=4608 -o $@ $^
target/test_mceliece460896_ref_speed: test_speed.c $(MCELIECE460896_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=4608 -o $@ $^
target/test_mceliece460896f_ref_correctness: test_correctness.c $(MCELIECE460896f_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=4608 -DFASTKEYGEN -o $@ $^
target/test_mceliece460896f_ref_speed: test_speed.c $(MCELIECE460896f_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=4608 -DFASTKEYGEN -o $@ $^
target/test_mceliece6688128_ref_correctness: test_correctness.c $(MCELIECE6688128_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=6688 -o $@ $^
target/test_mceliece6688128_ref_speed: test_speed.c $(MCELIECE6688128_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=6688 -o $@ $^
target/test_mceliece6688128f_ref_correctness: test_correctness.c $(MCELIECE6688128f_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=6688 -DFASTKEYGEN -o $@ $^
target/test_mceliece6688128f_ref_speed: test_speed.c $(MCELIECE6688128f_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=6688 -DFASTKEYGEN -o $@ $^
target/test_mceliece6960119_ref_correctness: test_correctness.c $(MCELIECE6960119_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=6960 -o $@ $^
target/test_mceliece6960119_ref_speed: test_speed.c $(MCELIECE6960119_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=6960 -o $@ $^
target/test_mceliece6960119f_ref_correctness: test_correctness.c $(MCELIECE6960119f_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=6960 -DFASTKEYGEN -o $@ $^
target/test_mceliece6960119f_ref_speed: test_speed.c $(MCELIECE6960119f_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=6960 -DFASTKEYGEN -o $@ $^
target/test_mceliece8192128_ref_correctness: test_correctness.c $(MCELIECE8192128_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=8192 -o $@ $^
target/test_mceliece8192128_ref_speed: test_speed.c $(MCELIECE8192128_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=8192 -o $@ $^
target/test_mceliece8192128f_ref_correctness: test_correctness.c $(MCELIECE8192128f_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=8192 -DFASTKEYGEN -o $@ $^
target/test_mceliece8192128f_ref_speed: test_speed.c $(MCELIECE8192128f_REF_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_REF -DMCELIECE_N=8192 -DFASTKEYGEN -o $@ $^
target/test_mceliece348864_vec_correctness: test_correctness.c $(MCELIECE348864_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=3488 -o $@ $^
target/test_mceliece348864_vec_speed: test_speed.c $(MCELIECE348864_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=3488 -o $@ $^
target/test_mceliece348864f_vec_correctness: test_correctness.c $(MCELIECE348864f_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=3488 -DFASTKEYGEN -o $@ $^
target/test_mceliece348864f_vec_speed: test_speed.c $(MCELIECE348864f_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=3488 -DFASTKEYGEN -o $@ $^
target/test_mceliece460896_vec_correctness: test_correctness.c $(MCELIECE460896_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=4608 -o $@ $^
target/test_mceliece460896_vec_speed: test_speed.c $(MCELIECE460896_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=4608 -o $@ $^
target/test_mceliece460896f_vec_correctness: test_correctness.c $(MCELIECE460896f_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=4608 -DFASTKEYGEN -o $@ $^
target/test_mceliece460896f_vec_speed: test_speed.c $(MCELIECE460896f_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=4608 -DFASTKEYGEN -o $@ $^
target/test_mceliece6688128_vec_correctness: test_correctness.c $(MCELIECE6688128_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=6688 -o $@ $^
target/test_mceliece6688128_vec_speed: test_speed.c $(MCELIECE6688128_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=6688 -o $@ $^
target/test_mceliece6688128f_vec_correctness: test_correctness.c $(MCELIECE6688128f_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=6688 -DFASTKEYGEN -o $@ $^
target/test_mceliece6688128f_vec_speed: test_speed.c $(MCELIECE6688128f_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=6688 -DFASTKEYGEN -o $@ $^
target/test_mceliece6960119_vec_correctness: test_correctness.c $(MCELIECE6960119_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=6960 -o $@ $^
target/test_mceliece6960119_vec_speed: test_speed.c $(MCELIECE6960119_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=6960 -o $@ $^
target/test_mceliece6960119f_vec_correctness: test_correctness.c $(MCELIECE6960119f_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=6960 -DFASTKEYGEN -o $@ $^
target/test_mceliece6960119f_vec_speed: test_speed.c $(MCELIECE6960119f_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=6960 -DFASTKEYGEN -o $@ $^
target/test_mceliece8192128_vec_correctness: test_correctness.c $(MCELIECE8192128_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=8192 -o $@ $^
target/test_mceliece8192128_vec_speed: test_speed.c $(MCELIECE8192128_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=8192 -o $@ $^
target/test_mceliece8192128f_vec_correctness: test_correctness.c $(MCELIECE8192128f_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=8192 -DFASTKEYGEN -o $@ $^
target/test_mceliece8192128f_vec_speed: test_speed.c $(MCELIECE8192128f_VEC_STATIC_LIB)
$(CC) $(CFLAGS) -DARCH_VEC -DMCELIECE_N=8192 -DFASTKEYGEN -o $@ $^
clean:
$(RM) $(MCELIECE348864_REF_OBJECTS)
$(RM) $(MCELIECE348864f_REF_OBJECTS)
$(RM) $(MCELIECE460896_REF_OBJECTS)
$(RM) $(MCELIECE460896f_REF_OBJECTS)
$(RM) $(MCELIECE6688128_REF_OBJECTS)
$(RM) $(MCELIECE6688128f_REF_OBJECTS)
$(RM) $(MCELIECE6960119_REF_OBJECTS)
$(RM) $(MCELIECE6960119f_REF_OBJECTS)
$(RM) $(MCELIECE8192128_REF_OBJECTS)
$(RM) $(MCELIECE8192128f_REF_OBJECTS)
$(RM) $(MCELIECE348864_VEC_OBJS)
$(RM) $(MCELIECE348864f_VEC_OBJS)
$(RM) $(MCELIECE460896_VEC_OBJS)
$(RM) $(MCELIECE460896f_VEC_OBJS)
$(RM) $(MCELIECE6688128_VEC_OBJS)
$(RM) $(MCELIECE6688128f_VEC_OBJS)
$(RM) $(MCELIECE6960119_VEC_OBJS)
$(RM) $(MCELIECE6960119f_VEC_OBJS)
$(RM) $(MCELIECE8192128_VEC_OBJS)
$(RM) $(MCELIECE8192128f_VEC_OBJS)
$(RM) target/*