-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
1029 lines (676 loc) · 52.1 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
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
CC = g++
DEBUG = -g
COMPILE_WITH_CODING_TOOL_LIB = 1
# compile on the HP cluster
#CFLAGS = -O3 -std=c++0x -Wall -I/opt/apps/HPCBIOS.20130301/software/GSL/1.15-goalf-1.1.0-no-OFED/include/ -c
#LIBS = -L/opt/apps/HPCBIOS.20130301/software/GSL/1.15-goalf-1.1.0-no-OFED/lib -lgsl -lgslcblas -lgmpxx -lgmp
# compile on local machine
#CFLAGS = -O3 -flto -mpopcnt -std=c++11 -c
# -DNDEBUG disables all assert() -- see: http://www.cplusplus.com/reference/cassert/assert/
#CFLAGS = -O3 -std=gnu++11 -mpopcnt -mtune=native -m64 -flto -Wall -DNDEBUG -c # with NDEBUG
#override CFLAGS += -O3 -std=gnu++11 -mpopcnt -mtune=native -m64 -flto -Wall -c
#CFLAGS += -O3 -std=gnu++11 -mpopcnt -mtune=native -m64 -flto -Wall -c # <-
#CFLAGS = -O3 -Wall -std=c++11 -mpopcnt -flto -pg -c # profiling with gprof
#CFLAGS = -O3 -ffloat-store -std=c++0x -Wall -c
#CFLAGS = -O2 -std=c++0x -Wall -c
#CFLAGS = -O1 -std=c++0x -Wall -c
#CFLAGS = -O3 -std=c++11 -Wall -DNDEBUG -c
#CFLAGS = -O3 -std=c++11 -Wall -c
CFLAGS = -std=c++11 -Wall -c
#CFLAGS = -ggdb -std=c++11 -Wall -c
#CFLAGS = -O3 -Wall -std=c++11 -pg -c # profiling with gprof
#CFLAGS = -ggdb -Wall -Wextra -pedantic -std=c++11 -Wshadow -Wformat=2 -Wfloat-equal -Wconversion -Wlogical-op -Wcast-qual -Wcast-align -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_FORTIFY_SOURCE=2 -fstack-protector -c # codeforces tricks
#LIBS = -lgsl -lgslcblas -lgmpxx -lgmp -pg # profiling with gprof
LIBS = -lgsl -lgslcblas -lgmpxx -lgmp
#endif
# Compilation with special flags: http://codeforces.com/blog/entry/15547
#CFLAGS = -Wall -Wextra -pedantic -std=c++11 -O2 -Wshadow -Wformat=2 -Wfloat-equal -Wconversion -Wlogical-op -Wcast-qual -Wcast-align -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_FORTIFY_SOURCE=2 -fsanitize=address -fsanitize=undefined -fno-sanitize-recover -fstack-protector -c
#CFLAGS = -O3 -std=c++0x -Wall -I/usr/include/graphviz/ -c
#LIBS = -lgsl -lgslcblas -lgmpxx -lgmp -lgvc
INCLUDES= ./include/
SOURCE_PATH = ./src/
BIN_PATH = ./bin/
OBJ_PATH = ./obj/
TESTS_PATH = ./tests/
#CFLAGS = -pg -std=c++0x -Wall -I/opt/apps/HPCBIOS.20130301/software/GSL/1.15-goalf-1.1.0-no-OFED/include/ -c
#LFLAGS = -Wall -pg
#LFLAGS = -Wl,--no-undefined
#CFLAGS = -O3 -march=native -ftree-vectorize -ftree-vectorizer-verbose=3 -foptimize-sibling-calls -fmerge-all-constants -std=c++0x -Wall -c
all: programs tests
programs: adp-xor \
max-adp-xor \
adp-xor-fi \
max-adp-xor-fi \
xdp-add \
max-xdp-add \
adp-xor3 \
max-adp-xor3 \
adp-lsh \
adp-rsh \
eadp-tea-f \
max-eadp-tea-f \
xtea-xor-threshold-search \
tea-add-threshold-search \
xtea-add-threshold-search
tests: adp-xor-tests \
adp-xor-fi-tests \
adp-xor3-tests \
xdp-add-tests \
max-adp-xor-tests \
max-adp-xor-fi-tests \
max-adp-xor3-tests \
max-adp-xor3-set-tests \
max-xdp-add-tests \
adp-shift-tests \
adp-rsh-xor-tests \
eadp-tea-f-tests \
adp-tea-f-fk-tests \
adp-tea-f-fk-ddt-tests \
adp-tea-f-fk-noshift-tests \
xdp-tea-f-fk-tests \
xdp-xtea-f-fk-tests \
adp-xtea-f-fk-tests \
xdp-add-pddt-tests \
adp-xor-pddt-tests \
tea-f-add-pddt-tests \
adp-arx-tests \
simon-xor-threshold-search-tests \
speck-tests \
speck-xor-threshold-search-tests \
speck-best-diff-search-tests \
speck-best-linear-search-tests \
speckey-best-diff-search-tests \
speckey-best-linear-search-tests
# --- VA-TESTS ---
VA_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)bsdr.o $(OBJ_PATH)xdp-add-diff-set.o $(OBJ_PATH)va-tests.o
va-tests: common.o adp-xor.o xdp-add.o max-xdp-add.o bsdr.o xdp-add-diff-set.o va-tests.o
$(CC) $(LFLAGS) $(VA_TESTS_OBJ) -o $(BIN_PATH)va-tests $(LIBS)
va-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)va-tests.cc -o $(OBJ_PATH)va-tests.o
# --- ADP-ROT-TESTS ---
ADP_ROT_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-rot.o $(OBJ_PATH)adp-rot-tests.o
adp-rot-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-rot.o $(OBJ_PATH)adp-rot-tests.o
$(CC) $(LFLAGS) $(ADP_ROT_TESTS_OBJ) -o $(BIN_PATH)adp-rot-tests $(LIBS)
$(OBJ_PATH)adp-rot-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-rot-tests.cc -o $(OBJ_PATH)adp-rot-tests.o
$(OBJ_PATH)adp-rot.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-rot.cc -o $(OBJ_PATH)adp-rot.o
ADP_ROT_PROGRAM_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-rot.o $(OBJ_PATH)adp-rot-program.o
adp-rot-program: $(OBJ_PATH)common.o $(OBJ_PATH)adp-rot.o $(OBJ_PATH)adp-rot-program.o
$(CC) $(LFLAGS) $(ADP_ROT_PROGRAM_OBJ) -o $(BIN_PATH)adp-rot-program $(LIBS)
$(OBJ_PATH)adp-rot-program.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-rot-program.cc -o $(OBJ_PATH)adp-rot-program.o
# --- ADP-MUL ---
ADP_MUL_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-mul.o $(OBJ_PATH)adp-mul-tests.o
adp-mul-tests: common.o adp-mul.o adp-mul-tests.o
$(CC) $(LFLAGS) $(ADP_MUL_TESTS_OBJ) -o $(BIN_PATH)adp-mul-tests $(LIBS)
adp-mul-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-mul-tests.cc -o $(OBJ_PATH)adp-mul-tests.o
adp-mul.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-mul.cc -o $(OBJ_PATH)adp-mul.o
# -- IDEA --
IDEA_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)bsdr.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)adp-xor-count-odiff.o $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)adp-xor-fi-count-odiff.o $(OBJ_PATH)adp-mul.o $(OBJ_PATH)idea.o
idea: common.o bsdr.o adp-xor.o adp-xor-count-odiff.o adp-xor-fi.o adp-xor-fi-count-odiff.o adp-mul.o idea.o
$(CC) $(LFLAGS) $(IDEA_TESTS_OBJ) -o $(BIN_PATH)idea $(LIBS)
idea.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)idea.cc -o $(OBJ_PATH)idea.o
# -- SIMON --
SIMON_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)simon.o
.PHONY: simon
simon: $(OBJ_PATH)common.o $(OBJ_PATH)simon.o
$(CC) $(LFLAGS) $(SIMON_TESTS_OBJ) -o $(BIN_PATH)simon $(LIBS)
$(OBJ_PATH)simon.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)simon.cc -o $(OBJ_PATH)simon.o
# -- SPECK --
SPECK_MARKOV_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)speck.o $(OBJ_PATH)speck-tests.o
.PHONY: speck-tests
speck-tests: $(BIN_PATH)speck-tests
$(BIN_PATH)speck-tests: $(OBJ_PATH)common.o $(OBJ_PATH)speck.o $(OBJ_PATH)speck-tests.o
$(CC) $(LFLAGS) $(SPECK_MARKOV_TESTS_OBJ) -o $(BIN_PATH)speck-tests $(LIBS)
$(OBJ_PATH)speck-tests.o: $(TESTS_PATH)speck-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)speck-tests.cc -o $(OBJ_PATH)speck-tests.o
# -- SPECK --
SPECK_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)speck.o
speck: $(OBJ_PATH)common.o $(OBJ_PATH)speck.o
$(CC) $(LFLAGS) $(SPECK_TESTS_OBJ) -o $(BIN_PATH)speck $(LIBS)
$(OBJ_PATH)speck.o: $(SOURCE_PATH)speck.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)speck.cc -o $(OBJ_PATH)speck.o
# --- XDP-AND ---
XDP_AND_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-and.o $(OBJ_PATH)xdp-and-tests.o
.PHONY: xdp-and-tests
xdp-and-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-and.o $(OBJ_PATH)xdp-and-tests.o
$(CC) $(LFLAGS) $(XDP_AND_TESTS_OBJ) -o $(BIN_PATH)xdp-and-tests $(LIBS)
$(OBJ_PATH)xdp-and.o: $(SOURCE_PATH)xdp-and.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xdp-and.cc -o $(OBJ_PATH)xdp-and.o
$(OBJ_PATH)xdp-and-tests.o: $(TESTS_PATH)xdp-and-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)xdp-and-tests.cc -o $(OBJ_PATH)xdp-and-tests.o
# --- XDP-ROT-AND ---
XDP_ROT_AND_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-and.o $(OBJ_PATH)xdp-rot-and.o $(OBJ_PATH)xdp-rot-and-tests.o
.PHONY: xdp-rot-and-tests
xdp-rot-and-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-and.o $(OBJ_PATH)xdp-rot-and.o $(OBJ_PATH)xdp-rot-and-tests.o
$(CC) $(LFLAGS) $(XDP_ROT_AND_TESTS_OBJ) -o $(BIN_PATH)xdp-rot-and-tests $(LIBS)
$(OBJ_PATH)xdp-rot-and.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xdp-rot-and.cc -o $(OBJ_PATH)xdp-rot-and.o
$(OBJ_PATH)xdp-rot-and-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)xdp-rot-and-tests.cc -o $(OBJ_PATH)xdp-rot-and-tests.o
# --- SIMON-XOR-THRESHOLD_SEARCH ---
SIMON_XOR_THRESHOLD_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)simon.o $(OBJ_PATH)xdp-and.o $(OBJ_PATH)xdp-rot-and.o $(OBJ_PATH)simon-xor-ddt-search.o $(OBJ_PATH)simon-xor-threshold-search.o $(OBJ_PATH)simon-xor-threshold-search-tests.o
#.PHONY: simon-xor-threshold-search-tests
#simon-xor-threshold-search-tests: $(BIN_PATH)simon-xor-threshold-search-tests
simon-xor-threshold-search-tests: $(OBJ_PATH)common.o $(OBJ_PATH)simon.o $(OBJ_PATH)xdp-and.o $(OBJ_PATH)xdp-rot-and.o $(OBJ_PATH)simon-xor-ddt-search.o $(OBJ_PATH)simon-xor-threshold-search.o $(OBJ_PATH)simon-xor-threshold-search-tests.o
$(CC) $(LFLAGS) $(SIMON_XOR_THRESHOLD_SEARCH_TESTS_OBJ) -o $(BIN_PATH)simon-xor-threshold-search-tests $(LIBS)
$(OBJ_PATH)simon-xor-ddt-search.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)simon-xor-ddt-search.cc -o $(OBJ_PATH)simon-xor-ddt-search.o
$(OBJ_PATH)simon-xor-threshold-search.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)simon-xor-threshold-search.cc -o $(OBJ_PATH)simon-xor-threshold-search.o
$(OBJ_PATH)simon-xor-threshold-search-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)simon-xor-threshold-search-tests.cc -o $(OBJ_PATH)simon-xor-threshold-search-tests.o
# --- SPECK-XOR-THRESHOLD-SEARCH ---
SPECK_XOR_THRESHOLD_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)xdp-add-pddt.o $(OBJ_PATH)xdp-add-diff-set.o $(OBJ_PATH)speck.o $(OBJ_PATH)speck-xor-ddt-search.o $(OBJ_PATH)speck-xor-threshold-search.o $(OBJ_PATH)speck-xor-threshold-search-tests.o
speck-xor-threshold-search-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)xdp-add-pddt.o $(OBJ_PATH)xdp-add-diff-set.o $(OBJ_PATH)speck.o $(OBJ_PATH)speck-xor-ddt-search.o $(OBJ_PATH)speck-xor-threshold-search.o $(OBJ_PATH)speck-xor-threshold-search-tests.o
$(CC) $(LFLAGS) $(SPECK_XOR_THRESHOLD_SEARCH_TESTS_OBJ) -o $(BIN_PATH)speck-xor-threshold-search-tests $(LIBS)
$(OBJ_PATH)speck-xor-threshold-search-tests.o: $(TESTS_PATH)speck-xor-threshold-search-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)speck-xor-threshold-search-tests.cc -o $(OBJ_PATH)speck-xor-threshold-search-tests.o
$(OBJ_PATH)speck-xor-threshold-search.o: $(SOURCE_PATH)speck-xor-threshold-search.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)speck-xor-threshold-search.cc -o $(OBJ_PATH)speck-xor-threshold-search.o
$(OBJ_PATH)speck-xor-ddt-search.o: $(SOURCE_PATH)speck-xor-ddt-search.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)speck-xor-ddt-search.cc -o $(OBJ_PATH)speck-xor-ddt-search.o
# --- SPECK-BEST-DIFF-SEARCH ---
SPECK_BEST_DIFF_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)speck.o $(OBJ_PATH)speck-xor-threshold-search.o $(OBJ_PATH)speck-best-diff-search-tests.o
speck-best-diff-search-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)speck.o $(OBJ_PATH)speck-xor-threshold-search.o $(OBJ_PATH)speck-best-diff-search-tests.o
$(CC) $(LFLAGS) $(SPECK_BEST_DIFF_SEARCH_TESTS_OBJ) -o $(BIN_PATH)speck-best-diff-search-tests $(LIBS)
$(OBJ_PATH)speck-best-diff-search-tests.o: $(TESTS_PATH)speck-best-diff-search-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)speck-best-diff-search-tests.cc -o $(OBJ_PATH)speck-best-diff-search-tests.o
# --- SPECK-BEST-LINEAR-SEARCH ---
SPECK_BEST_LINEAR_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xlp-add.o $(OBJ_PATH)speck.o $(OBJ_PATH)speck-best-linear-search-tests.o
speck-best-linear-search-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xlp-add.o $(OBJ_PATH)speck.o $(OBJ_PATH)speck-best-linear-search-tests.o
$(CC) $(LFLAGS) $(SPECK_BEST_LINEAR_SEARCH_TESTS_OBJ) -o $(BIN_PATH)speck-best-linear-search-tests $(LIBS)
$(OBJ_PATH)speck-best-linear-search-tests.o: $(TESTS_PATH)speck-best-linear-search-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)speck-best-linear-search-tests.cc -o $(OBJ_PATH)speck-best-linear-search-tests.o
# --- SPECKEY-BEST-DIFF-SEARCH ---
SPECKEY_BEST_DIFF_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)speckey-best-diff-search-tests.o
.PHONY: speckey-best-diff-search-tests
speckey-best-diff-search-tests: $(BIN_PATH)speckey-best-diff-search-tests
$(BIN_PATH)speckey-best-diff-search-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)speckey-best-diff-search-tests.o
$(CC) $(LFLAGS) $(SPECKEY_BEST_DIFF_SEARCH_TESTS_OBJ) -o $(BIN_PATH)speckey-best-diff-search-tests $(LIBS)
$(OBJ_PATH)speckey-best-diff-search-tests.o: $(TESTS_PATH)speckey-best-diff-search-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)speckey-best-diff-search-tests.cc -o $(OBJ_PATH)speckey-best-diff-search-tests.o
# --- SPECKEY-BEST-LINEAR-SEARCH ---
SPECKEY_BEST_LINEAR_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xlp-add.o $(OBJ_PATH)speckey-best-linear-search-tests.o
.PHONY: speckey-best-linear-search-tests
speckey-best-linear-search-tests: $(BIN_PATH)speckey-best-linear-search-tests
$(BIN_PATH)speckey-best-linear-search-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xlp-add.o $(OBJ_PATH)speckey-best-linear-search-tests.o
$(CC) $(LFLAGS) $(SPECKEY_BEST_LINEAR_SEARCH_TESTS_OBJ) -o $(BIN_PATH)speckey-best-linear-search-tests $(LIBS)
$(OBJ_PATH)speckey-best-linear-search-tests.o: $(TESTS_PATH)speckey-best-linear-search-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)speckey-best-linear-search-tests.cc -o $(OBJ_PATH)speckey-best-linear-search-tests.o
# --- MARX-BEST-DIFF-SEARCH ---
MARX_BEST_DIFF_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)marx-best-diff-search-tests.o
.PHONY: marx-best-diff-search-tests
marx-best-diff-search-tests: $(BIN_PATH)marx-best-diff-search-tests
$(BIN_PATH)marx-best-diff-search-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)marx-best-diff-search-tests.o
$(CC) $(LFLAGS) $(MARX_BEST_DIFF_SEARCH_TESTS_OBJ) -o $(BIN_PATH)marx-best-diff-search-tests $(LIBS)
$(OBJ_PATH)marx-best-diff-search-tests.o: $(TESTS_PATH)marx-best-diff-search-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)marx-best-diff-search-tests.cc -o $(OBJ_PATH)marx-best-diff-search-tests.o
# --- MARX-BEST-LINEAR-SEARCH ---
MARX_BEST_LINEAR_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xlp-add.o $(OBJ_PATH)marx-best-linear-search-tests.o
.PHONY: marx-best-linear-search-tests
marx-best-linear-search-tests: $(BIN_PATH)marx-best-linear-search-tests
$(BIN_PATH)marx-best-linear-search-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xlp-add.o $(OBJ_PATH)marx-best-linear-search-tests.o
$(CC) $(LFLAGS) $(MARX_BEST_LINEAR_SEARCH_TESTS_OBJ) -o $(BIN_PATH)marx-best-linear-search-tests $(LIBS)
$(OBJ_PATH)marx-best-linear-search-tests.o: $(TESTS_PATH)marx-best-linear-search-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)marx-best-linear-search-tests.cc -o $(OBJ_PATH)marx-best-linear-search-tests.o
# --- SPARX-WIDETRAIL-SEARCH ---
SPARX_WIDETRAIL_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)sparx-widetrail-search-tests.o
.PHONY: sparx-widetrail-search-tests
sparx-widetrail-search-tests: $(BIN_PATH)sparx-widetrail-search-tests
$(BIN_PATH)sparx-widetrail-search-tests: $(OBJ_PATH)common.o $(OBJ_PATH)sparx-widetrail-search-tests.o
$(CC) $(LFLAGS) $(SPARX_WIDETRAIL_SEARCH_TESTS_OBJ) -o $(BIN_PATH)sparx-widetrail-search-tests $(LIBS)
$(OBJ_PATH)sparx-widetrail-search-tests.o: $(TESTS_PATH)sparx-widetrail-search-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)sparx-widetrail-search-tests.cc -o $(OBJ_PATH)sparx-widetrail-search-tests.o
# --- SPARX-WIDETRAIL-SINGLEPART-SEARCH ---
SPARX_WIDETRAIL_SINGLEPART_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)sparx-widetrail-singlepart-tests.o
.PHONY: sparx-widetrail-singlepart-tests
sparx-widetrail-singlepart-tests: $(BIN_PATH)sparx-widetrail-singlepart-tests
$(BIN_PATH)sparx-widetrail-singlepart-tests: $(OBJ_PATH)common.o $(OBJ_PATH)sparx-widetrail-singlepart-tests.o
$(CC) $(LFLAGS) $(SPARX_WIDETRAIL_SINGLEPART_TESTS_OBJ) -o $(BIN_PATH)sparx-widetrail-singlepart-tests $(LIBS)
$(OBJ_PATH)sparx-widetrail-singlepart-tests.o: $(TESTS_PATH)sparx-widetrail-singlepart-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)sparx-widetrail-singlepart-tests.cc -o $(OBJ_PATH)sparx-widetrail-singlepart-tests.o
# -- LAX-CIPHER --
$(OBJ_PATH)lax-cipher.o: $(SOURCE_PATH)lax-cipher.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)lax-cipher.cc -o $(OBJ_PATH)lax-cipher.o
# --- LAX-BEST-DIFF-SEARCH ---
LAX_BEST_DIFF_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)lax-cipher.o $(OBJ_PATH)lax-best-diff-search-tests.o
.PHONY: lax-best-diff-search-tests
lax-best-diff-search-tests: $(BIN_PATH)lax-best-diff-search-tests
$(BIN_PATH)lax-best-diff-search-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)lax-cipher.o $(OBJ_PATH)lax-best-diff-search-tests.o
$(CC) $(LFLAGS) $(LAX_BEST_DIFF_SEARCH_TESTS_OBJ) -o $(BIN_PATH)lax-best-diff-search-tests $(LIBS)
$(OBJ_PATH)lax-best-diff-search-tests.o: $(TESTS_PATH)lax-best-diff-search-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)lax-best-diff-search-tests.cc -o $(OBJ_PATH)lax-best-diff-search-tests.o
# --- LAX-BEST-LINEAR-SEARCH ---
LAX_BEST_LINEAR_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xlp-add.o $(OBJ_PATH)lax-cipher.o $(OBJ_PATH)lax-best-linear-search-tests.o
.PHONY: lax-best-linear-search-tests
lax-best-linear-search-tests: $(BIN_PATH)lax-best-linear-search-tests
$(BIN_PATH)lax-best-linear-search-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xlp-add.o $(OBJ_PATH)lax-cipher.o $(OBJ_PATH)lax-best-linear-search-tests.o
$(CC) $(LFLAGS) $(LAX_BEST_LINEAR_SEARCH_TESTS_OBJ) -o $(BIN_PATH)lax-best-linear-search-tests $(LIBS)
$(OBJ_PATH)lax-best-linear-search-tests.o: $(TESTS_PATH)lax-best-linear-search-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)lax-best-linear-search-tests.cc -o $(OBJ_PATH)lax-best-linear-search-tests.o
# -- BSDR --
$(OBJ_PATH)bsdr.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)bsdr.cc -o $(OBJ_PATH)bsdr.o
# --- XDP-ADD-DIFF-SET ---
XDP-ADD-DIFF-SET_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)xdp-add-diff-set.o $(OBJ_PATH)xdp-add-diff-set-tests.o
xdp-add-diff-set-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)xdp-add-diff-set.o $(OBJ_PATH)xdp-add-diff-set-tests.o
$(CC) $(LFLAGS) $(XDP-ADD-DIFF-SET_TESTS_OBJ) -o $(BIN_PATH)xdp-add-diff-set-tests $(LIBS)
$(OBJ_PATH)xdp-add-diff-set.o: $(SOURCE_PATH)xdp-add-diff-set.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xdp-add-diff-set.cc -o $(OBJ_PATH)xdp-add-diff-set.o
$(OBJ_PATH)xdp-add-diff-set-tests.o: $(TESTS_PATH)xdp-add-diff-set-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)xdp-add-diff-set-tests.cc -o $(OBJ_PATH)xdp-add-diff-set-tests.o
# --- TWEETCIPHER ---
TWEETCIPHER_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)tweetcipher-tests.o
tweetcipher-tests: common.o tweetcipher-tests.o
$(CC) $(LFLAGS) $(TWEETCIPHER_TESTS_OBJ) -o $(BIN_PATH)tweetcipher-tests $(LIBS)
tweetcipher-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)tweetcipher-tests.cc -o $(OBJ_PATH)tweetcipher-tests.o
# --- THREEFISH ---
THREEFISH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)xdp-add-diff-set.o $(OBJ_PATH)threefish.o $(OBJ_PATH)threefish-xor.o $(OBJ_PATH)threefish-add.o $(OBJ_PATH)threefish-tests.o
threefish-tests: common.o xdp-add.o max-xdp-add.o xdp-add-diff-set.o threefish.o threefish-xor.o threefish-add.o threefish-tests.o
$(CC) $(LFLAGS) $(THREEFISH_TESTS_OBJ) -o $(BIN_PATH)threefish-tests $(LIBS)
threefish-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)threefish-tests.cc -o $(OBJ_PATH)threefish-tests.o
threefish.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)threefish.cc -o $(OBJ_PATH)threefish.o
threefish-xor.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)threefish-xor.cc -o $(OBJ_PATH)threefish-xor.o
threefish-add.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)threefish-add.cc -o $(OBJ_PATH)threefish-add.o
# --- SALSA ---
SALSA_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)xdp-add-diff-set.o $(OBJ_PATH)salsa.o $(OBJ_PATH)salsa-tests.o
salsa-tests: common.o xdp-add.o xdp-add-diff-set.o salsa.o salsa-tests.o
$(CC) $(LFLAGS) $(SALSA_TESTS_OBJ) -o $(BIN_PATH)salsa-tests $(LIBS)
salsa-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)salsa-tests.cc -o $(OBJ_PATH)salsa-tests.o
salsa.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)salsa.cc -o $(OBJ_PATH)salsa.o
# --- RC5 ---
# Note: some files need the CodingTool library
ifdef COMPILE_WITH_CODING_TOOL_LIB
RC5_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)adp-rot.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)xdp-add-diff-set.o $(OBJ_PATH)rc5-ref.o $(OBJ_PATH)rc5-lwcs.o $(OBJ_PATH)rc5-dc.o $(OBJ_PATH)rc5-eq.o $(OBJ_PATH)rc5-alex.o $(OBJ_PATH)add-approx.o $(OBJ_PATH)rc5-blind-oracle.o $(OBJ_PATH)rc5-tests.o -L../codingtool/lib/
else
RC5_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)adp-rot.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)xdp-add-diff-set.o $(OBJ_PATH)rc5-ref.o $(OBJ_PATH)rc5-eq.o $(OBJ_PATH)rc5-dc.o $(OBJ_PATH)rc5-alex.o $(OBJ_PATH)add-approx.o $(OBJ_PATH)rc5-blind-oracle.o $(OBJ_PATH)rc5-tests.o
endif
ifdef COMPILE_WITH_CODING_TOOL_LIB
rc5-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)adp-rot.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)xdp-add-diff-set.o $(OBJ_PATH)rc5-ref.o $(OBJ_PATH)rc5-lwcs.o $(OBJ_PATH)rc5-dc.o $(OBJ_PATH)rc5-eq.o $(OBJ_PATH)rc5-alex.o $(OBJ_PATH)add-approx.o $(OBJ_PATH)rc5-blind-oracle.o $(OBJ_PATH)rc5-tests.o
$(CC) $(LFLAGS) $(RC5_TESTS_OBJ) -o $(BIN_PATH)rc5-tests $(LIBS) -lCodingTool
$(OBJ_PATH)rc5-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) -I../codingtool/includes/ $(TESTS_PATH)rc5-tests.cc -o $(OBJ_PATH)rc5-tests.o
$(OBJ_PATH)rc5-lwcs.o:
$(CC) $(CFLAGS) -I$(INCLUDES) -I../codingtool/includes/ $(SOURCE_PATH)rc5-lwcs.cc -o $(OBJ_PATH)rc5-lwcs.o
else
rc5-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)adp-rot.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)xdp-add-diff-set.o $(OBJ_PATH)rc5-ref.o $(OBJ_PATH)rc5-eq.o $(OBJ_PATH)rc5-dc.o $(OBJ_PATH)rc5-alex.o $(OBJ_PATH)add-approx.o $(OBJ_PATH)rc5-blind-oracle.o $(OBJ_PATH)rc5-tests.o
$(CC) $(LFLAGS) $(RC5_TESTS_OBJ) -o $(BIN_PATH)rc5-tests $(LIBS)
$(OBJ_PATH)rc5-tests.o: $(TESTS_PATH)rc5-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)rc5-tests.cc -o $(OBJ_PATH)rc5-tests.o
endif
$(OBJ_PATH)rc5-ref.o: $(SOURCE_PATH)rc5-ref.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)rc5-ref.cc -o $(OBJ_PATH)rc5-ref.o
$(OBJ_PATH)rc5-eq.o: $(SOURCE_PATH)rc5-eq.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)rc5-eq.cc -o $(OBJ_PATH)rc5-eq.o
$(OBJ_PATH)rc5-dc.o: $(SOURCE_PATH)rc5-dc.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)rc5-dc.cc -o $(OBJ_PATH)rc5-dc.o
$(OBJ_PATH)rc5-alex.o: $(SOURCE_PATH)rc5-alex.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)rc5-alex.cc -o $(OBJ_PATH)rc5-alex.o
$(OBJ_PATH)add-approx.o: $(SOURCE_PATH)add-approx.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)add-approx.cc -o $(OBJ_PATH)add-approx.o
$(OBJ_PATH)rc5-blind-oracle.o: $(SOURCE_PATH)rc5-blind-oracle.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)rc5-blind-oracle.cc -o $(OBJ_PATH)rc5-blind-oracle.o
# --- XTEA-XOR-THRESHOLD-SEARCH
XTEA_XOR_THRESHOLD_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)xtea.o $(OBJ_PATH)xdp-xtea-f-fk.o $(OBJ_PATH)xtea-f-xor-pddt.o $(OBJ_PATH)xtea-xor-threshold-search.o $(OBJ_PATH)xtea-xor-threshold-search-tests.o
xtea-xor-threshold-search: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)xtea.o $(OBJ_PATH)xdp-xtea-f-fk.o $(OBJ_PATH)xtea-f-xor-pddt.o $(OBJ_PATH)xtea-xor-threshold-search.o $(OBJ_PATH)xtea-xor-threshold-search-tests.o
$(CC) $(LFLAGS) $(XTEA_XOR_THRESHOLD_SEARCH_TESTS_OBJ) -o $(BIN_PATH)xtea-xor-threshold-search $(LIBS)
$(OBJ_PATH)xtea-f-xor-pddt.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xtea-f-xor-pddt.cc -o $(OBJ_PATH)xtea-f-xor-pddt.o
$(OBJ_PATH)xtea-xor-threshold-search.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xtea-xor-threshold-search.cc -o $(OBJ_PATH)xtea-xor-threshold-search.o
$(OBJ_PATH)xtea-xor-threshold-search-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)xtea-xor-threshold-search-tests.cc -o $(OBJ_PATH)xtea-xor-threshold-search-tests.o
# --- XTEA-ADD-THRESHOLD-SEARCH
XTEA_ADD_THRESHOLD_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)max-adp-xor-fi.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)xtea.o $(OBJ_PATH)adp-xtea-f-fk.o $(OBJ_PATH)tea.o $(OBJ_PATH)eadp-tea-f.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)adp-tea-f-fk.o $(OBJ_PATH)tea-f-add-pddt.o $(OBJ_PATH)xtea-f-add-pddt.o $(OBJ_PATH)xtea-add-threshold-search.o $(OBJ_PATH)xtea-add-threshold-search-tests.o
xtea-add-threshold-search: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)max-adp-xor-fi.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)xtea.o $(OBJ_PATH)adp-xtea-f-fk.o $(OBJ_PATH)tea.o $(OBJ_PATH)eadp-tea-f.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)adp-tea-f-fk.o $(OBJ_PATH)tea-f-add-pddt.o $(OBJ_PATH)xtea-f-add-pddt.o $(OBJ_PATH)xtea-add-threshold-search.o $(OBJ_PATH)xtea-add-threshold-search-tests.o
$(CC) $(LFLAGS) $(XTEA_ADD_THRESHOLD_SEARCH_TESTS_OBJ) -o $(BIN_PATH)xtea-add-threshold-search $(LIBS)
$(OBJ_PATH)xtea-f-add-pddt.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xtea-f-add-pddt.cc -o $(OBJ_PATH)xtea-f-add-pddt.o
$(OBJ_PATH)xtea-add-threshold-search.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xtea-add-threshold-search.cc -o $(OBJ_PATH)xtea-add-threshold-search.o
$(OBJ_PATH)xtea-add-threshold-search-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)xtea-add-threshold-search-tests.cc -o $(OBJ_PATH)xtea-add-threshold-search-tests.o
# --- ADP-XTEA-F-FK ---
ADP_XTEA_F_FK_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)max-adp-xor-fi.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)xtea.o $(OBJ_PATH)adp-xtea-f-fk.o $(OBJ_PATH)adp-xtea-f-fk-tests.o
adp-xtea-f-fk-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)max-adp-xor-fi.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)xtea.o $(OBJ_PATH)adp-xtea-f-fk.o $(OBJ_PATH)adp-xtea-f-fk-tests.o
$(CC) $(LFLAGS) $(ADP_XTEA_F_FK_TESTS_OBJ) -o $(BIN_PATH)adp-xtea-f-fk-tests $(LIBS)
$(OBJ_PATH)adp-xtea-f-fk.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-xtea-f-fk.cc -o $(OBJ_PATH)adp-xtea-f-fk.o
$(OBJ_PATH)adp-xtea-f-fk-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-xtea-f-fk-tests.cc -o $(OBJ_PATH)adp-xtea-f-fk-tests.o
# --- XDP-XTEA-F-FK ---
XDP_XTEA_F_FK_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)xtea.o $(OBJ_PATH)xdp-xtea-f-fk.o $(OBJ_PATH)xdp-xtea-f-fk-tests.o
xdp-xtea-f-fk-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)xtea.o $(OBJ_PATH)xdp-xtea-f-fk.o $(OBJ_PATH)xdp-xtea-f-fk-tests.o
$(CC) $(LFLAGS) $(XDP_XTEA_F_FK_TESTS_OBJ) -o $(BIN_PATH)xdp-xtea-f-fk-tests $(LIBS)
$(OBJ_PATH)xdp-xtea-f-fk.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xdp-xtea-f-fk.cc -o $(OBJ_PATH)xdp-xtea-f-fk.o
$(OBJ_PATH)xdp-xtea-f-fk-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)xdp-xtea-f-fk-tests.cc -o $(OBJ_PATH)xdp-xtea-f-fk-tests.o
$(OBJ_PATH)xtea.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xtea.cc -o $(OBJ_PATH)xtea.o
# --- XDP-TEA-F-FK ---
XDP_TEA_F_FK_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)tea.o $(OBJ_PATH)xdp-tea-f-fk.o $(OBJ_PATH)xdp-tea-f-fk-tests.o
xdp-tea-f-fk-tests: $(OBJ_PATH)common.o $(OBJ_PATH)tea.o $(OBJ_PATH)xdp-tea-f-fk.o $(OBJ_PATH)xdp-tea-f-fk-tests.o
$(CC) $(LFLAGS) $(XDP_TEA_F_FK_TESTS_OBJ) -o $(BIN_PATH)xdp-tea-f-fk-tests $(LIBS)
$(OBJ_PATH)xdp-tea-f-fk.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xdp-tea-f-fk.cc -o $(OBJ_PATH)xdp-tea-f-fk.o
$(OBJ_PATH)xdp-tea-f-fk-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)xdp-tea-f-fk-tests.cc -o $(OBJ_PATH)xdp-tea-f-fk-tests.o
# --- TEA-ADD-THRESHOLD-SEARCH
TEA_ADD_THRESHOLD_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)tea.o $(OBJ_PATH)eadp-tea-f.o $(OBJ_PATH)adp-tea-f-fk.o $(OBJ_PATH)tea-f-add-pddt.o $(OBJ_PATH)tea-add-threshold-search.o $(OBJ_PATH)tea-add-threshold-search-tests.o
tea-add-threshold-search: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)tea.o $(OBJ_PATH)eadp-tea-f.o $(OBJ_PATH)adp-tea-f-fk.o $(OBJ_PATH)tea-f-add-pddt.o $(OBJ_PATH)tea-add-threshold-search.o $(OBJ_PATH)tea-add-threshold-search-tests.o
$(CC) $(LFLAGS) $(TEA_ADD_THRESHOLD_SEARCH_TESTS_OBJ) -o $(BIN_PATH)tea-add-threshold-search $(LIBS)
$(OBJ_PATH)tea-add-threshold-search.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)tea-add-threshold-search.cc -o $(OBJ_PATH)tea-add-threshold-search.o
$(OBJ_PATH)tea-add-threshold-search-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)tea-add-threshold-search-tests.cc -o $(OBJ_PATH)tea-add-threshold-search-tests.o
# --- TEA-F-ADD-PDDT ---
TEA_F_ADD_PDDT_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)tea.o $(OBJ_PATH)eadp-tea-f.o $(OBJ_PATH)adp-tea-f-fk.o $(OBJ_PATH)tea-f-add-pddt.o $(OBJ_PATH)tea-f-add-pddt-tests.o
tea-f-add-pddt-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)tea.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)eadp-tea-f.o $(OBJ_PATH)adp-tea-f-fk.o $(OBJ_PATH)tea-f-add-pddt.o $(OBJ_PATH)tea-f-add-pddt-tests.o
$(CC) $(LFLAGS) $(TEA_F_ADD_PDDT_TESTS_OBJ) -o $(BIN_PATH)tea-f-add-pddt-tests $(LIBS)
$(OBJ_PATH)tea-f-add-pddt-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)tea-f-add-pddt-tests.cc -o $(OBJ_PATH)tea-f-add-pddt-tests.o
$(OBJ_PATH)tea-f-add-pddt.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)tea-f-add-pddt.cc -o $(OBJ_PATH)tea-f-add-pddt.o
# --- TEA-ADD-DDT-SEARCH ---
TEA_ADD_DDT_SEARCH_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)tea.o $(OBJ_PATH)adp-tea-f-fk-ddt.o $(OBJ_PATH)tea-add-ddt-search.o $(OBJ_PATH)tea-add-ddt-search-tests.o
tea-add-ddt-search-tests: common.o tea.o adp-tea-f-fk-ddt.o tea-add-ddt-search.o tea-add-ddt-search-tests.o
$(CC) $(LFLAGS) $(TEA_ADD_DDT_SEARCH_TESTS_OBJ) -o $(BIN_PATH)tea-add-ddt-search-tests $(LIBS)
tea-add-ddt-search.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)tea-add-ddt-search.cc -o $(OBJ_PATH)tea-add-ddt-search.o
tea-add-ddt-search-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)tea-add-ddt-search-tests.cc -o $(OBJ_PATH)tea-add-ddt-search-tests.o
# --- ADP-TEA-F-FK-DDT ---
ADP_TEA_F_FK_DDT_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)tea.o $(OBJ_PATH)adp-tea-f-fk-ddt.o $(OBJ_PATH)adp-tea-f-fk-ddt-tests.o
adp-tea-f-fk-ddt-tests: $(OBJ_PATH)common.o $(OBJ_PATH)tea.o $(OBJ_PATH)adp-tea-f-fk-ddt.o $(OBJ_PATH)adp-tea-f-fk-ddt-tests.o
$(CC) $(LFLAGS) $(ADP_TEA_F_FK_DDT_TESTS_OBJ) -o $(BIN_PATH)adp-tea-f-fk-ddt-tests $(LIBS)
$(OBJ_PATH)adp-tea-f-fk-ddt.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-tea-f-fk-ddt.cc -o $(OBJ_PATH)adp-tea-f-fk-ddt.o
$(OBJ_PATH)adp-tea-f-fk-ddt-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-tea-f-fk-ddt-tests.cc -o $(OBJ_PATH)adp-tea-f-fk-ddt-tests.o
# --- ADP-TEA-F-FK-NOSHIFT ---
ADP_TEA_F_FK_NOSHIFT_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)tea.o $(OBJ_PATH)adp-tea-f-fk-noshift.o $(OBJ_PATH)adp-tea-f-fk-noshift-tests.o
adp-tea-f-fk-noshift-tests: $(OBJ_PATH)common.o $(OBJ_PATH)tea.o $(OBJ_PATH)adp-tea-f-fk-noshift.o $(OBJ_PATH)adp-tea-f-fk-noshift-tests.o
$(CC) $(LFLAGS) $(ADP_TEA_F_FK_NOSHIFT_TESTS_OBJ) -o $(BIN_PATH)adp-tea-f-fk-noshift-tests $(LIBS)
$(OBJ_PATH)adp-tea-f-fk-noshift.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-tea-f-fk-noshift.cc -o $(OBJ_PATH)adp-tea-f-fk-noshift.o
$(OBJ_PATH)adp-tea-f-fk-noshift-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-tea-f-fk-noshift-tests.cc -o $(OBJ_PATH)adp-tea-f-fk-noshift-tests.o
# --- ADP-TEA-F-FK ---
ADP_TEA_F_FK_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)tea.o $(OBJ_PATH)adp-tea-f-fk.o $(OBJ_PATH)adp-tea-f-fk-tests.o
adp-tea-f-fk-tests: $(OBJ_PATH)common.o $(OBJ_PATH)tea.o $(OBJ_PATH)adp-tea-f-fk.o $(OBJ_PATH)adp-tea-f-fk-tests.o
$(CC) $(LFLAGS) $(ADP_TEA_F_FK_TESTS_OBJ) -o $(BIN_PATH)adp-tea-f-fk-tests $(LIBS)
$(OBJ_PATH)adp-tea-f-fk.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-tea-f-fk.cc -o $(OBJ_PATH)adp-tea-f-fk.o
$(OBJ_PATH)adp-tea-f-fk-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-tea-f-fk-tests.cc -o $(OBJ_PATH)adp-tea-f-fk-tests.o
# --- EADP-TEA-F ---
EADP_TEA_F_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)tea.o $(OBJ_PATH)eadp-tea-f.o $(OBJ_PATH)eadp-tea-f-program.o
MAX_EADP_TEA_F_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)tea.o $(OBJ_PATH)eadp-tea-f.o $(OBJ_PATH)max-eadp-tea-f-program.o
EADP_TEA_F_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)tea.o $(OBJ_PATH)eadp-tea-f.o $(OBJ_PATH)eadp-tea-f-tests.o
eadp-tea-f: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)tea.o $(OBJ_PATH)eadp-tea-f.o $(OBJ_PATH)eadp-tea-f-program.o
$(CC) $(LFLAGS) $(EADP_TEA_F_OBJ) -o $(BIN_PATH)eadp-tea-f $(LIBS)
max-eadp-tea-f: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)tea.o $(OBJ_PATH)eadp-tea-f.o $(OBJ_PATH)max-eadp-tea-f-program.o
$(CC) $(LFLAGS) $(MAX_EADP_TEA_F_OBJ) -o $(BIN_PATH)max-eadp-tea-f $(LIBS)
eadp-tea-f-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)tea.o $(OBJ_PATH)eadp-tea-f.o $(OBJ_PATH)eadp-tea-f-tests.o
$(CC) $(LFLAGS) $(EADP_TEA_F_TESTS_OBJ) -o $(BIN_PATH)eadp-tea-f-tests $(LIBS)
$(OBJ_PATH)tea.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)tea.cc -o $(OBJ_PATH)tea.o
$(OBJ_PATH)eadp-tea-f.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)eadp-tea-f.cc -o $(OBJ_PATH)eadp-tea-f.o
$(OBJ_PATH)eadp-tea-f-program.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)eadp-tea-f-program.cc -o $(OBJ_PATH)eadp-tea-f-program.o
$(OBJ_PATH)max-eadp-tea-f-program.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)max-eadp-tea-f-program.cc -o $(OBJ_PATH)max-eadp-tea-f-program.o
$(OBJ_PATH)eadp-tea-f-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)eadp-tea-f-tests.cc -o $(OBJ_PATH)eadp-tea-f-tests.o
# --- MAX-XDP-ADD ---
MAX_XDP_ADD_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)max-xdp-add-program.o
MAX_XDP_ADD_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)max-xdp-add-tests.o
max-xdp-add: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)max-xdp-add-program.o
$(CC) $(LFLAGS) $(MAX_XDP_ADD_OBJ) -o $(BIN_PATH)max-xdp-add $(LIBS)
max-xdp-add-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)max-xdp-add-tests.o
$(CC) $(LFLAGS) $(MAX_XDP_ADD_TESTS_OBJ) -o $(BIN_PATH)max-xdp-add-tests $(LIBS)
$(OBJ_PATH)max-xdp-add.o: $(SOURCE_PATH)max-xdp-add.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)max-xdp-add.cc -o $(OBJ_PATH)max-xdp-add.o
$(OBJ_PATH)max-xdp-add-program.o: $(SOURCE_PATH)max-xdp-add-program.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)max-xdp-add-program.cc -o $(OBJ_PATH)max-xdp-add-program.o
$(OBJ_PATH)max-xdp-add-tests.o: $(TESTS_PATH)max-xdp-add-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)max-xdp-add-tests.cc -o $(OBJ_PATH)max-xdp-add-tests.o
# --- XDP-ADD ---
XDP_ADD_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)xdp-add-program.o
XDP_ADD_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)xdp-add-tests.o
xdp-add: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)xdp-add-program.o
$(CC) $(LFLAGS) $(XDP_ADD_OBJ) -o $(BIN_PATH)xdp-add $(LIBS)
xdp-add-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)xdp-add-tests.o
$(CC) $(LFLAGS) $(XDP_ADD_TESTS_OBJ) -o $(BIN_PATH)xdp-add-tests $(LIBS)
$(OBJ_PATH)xdp-add.o: $(SOURCE_PATH)xdp-add.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xdp-add.cc -o $(OBJ_PATH)xdp-add.o
$(OBJ_PATH)xdp-add-program.o: $(SOURCE_PATH)xdp-add-program.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xdp-add-program.cc -o $(OBJ_PATH)xdp-add-program.o
$(OBJ_PATH)xdp-add-tests.o: $(TESTS_PATH)xdp-add-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)xdp-add-tests.cc -o $(OBJ_PATH)xdp-add-tests.o
# --- XLP-ADD ---
XLP_ADD_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)xlp-add.o $(OBJ_PATH)xlp-add-tests.o
xlp-add: $(OBJ_PATH)common.o $(OBJ_PATH)xlp-add.o $(OBJ_PATH)xlp-add-program.o
$(CC) $(LFLAGS) $(XLP_ADD_OBJ) -o $(BIN_PATH)xlp-add $(LIBS)
xlp-add-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)xlp-add.o $(OBJ_PATH)xlp-add-tests.o
$(CC) $(LFLAGS) $(XLP_ADD_TESTS_OBJ) -o $(BIN_PATH)xlp-add-tests $(LIBS)
$(OBJ_PATH)xlp-add.o: $(SOURCE_PATH)xlp-add.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xlp-add.cc -o $(OBJ_PATH)xlp-add.o
$(OBJ_PATH)xlp-add-tests.o: $(TESTS_PATH)xlp-add-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)xlp-add-tests.cc -o $(OBJ_PATH)xlp-add-tests.o
# --- MAX-ADP-XOR-FI ---
MAX_ADP_XOR_FI_OBJ = $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)max-adp-xor-fi.o $(OBJ_PATH)max-adp-xor-fi-program.o
MAX_ADP_XOR_FI_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)max-adp-xor-fi.o $(OBJ_PATH)max-adp-xor-fi-tests.o
max-adp-xor-fi: $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)max-adp-xor-fi.o $(OBJ_PATH)max-adp-xor-fi-program.o
$(CC) $(LFLAGS) $(MAX_ADP_XOR_FI_OBJ) -o $(BIN_PATH)max-adp-xor-fi $(LIBS)
max-adp-xor-fi-tests: $(OBJ_PATH)common.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)max-adp-xor-fi.o $(OBJ_PATH)max-adp-xor-fi-tests.o
$(CC) $(LFLAGS) $(MAX_ADP_XOR_FI_TESTS_OBJ) -o $(BIN_PATH)max-adp-xor-fi-tests $(LIBS)
$(OBJ_PATH)max-adp-xor-fi.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)max-adp-xor-fi.cc -o $(OBJ_PATH)max-adp-xor-fi.o
$(OBJ_PATH)max-adp-xor-fi-program.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)max-adp-xor-fi-program.cc -o $(OBJ_PATH)max-adp-xor-fi-program.o
$(OBJ_PATH)max-adp-xor-fi-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)max-adp-xor-fi-tests.cc -o $(OBJ_PATH)max-adp-xor-fi-tests.o
# --- ADP-XOR-FI ---
ADP_XOR_FI_OBJ = $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)adp-xor-fi-program.o
ADP_XOR_FI_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)adp-xor-fi-tests.o
adp-xor-fi: $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)adp-xor-fi-program.o
$(CC) $(LFLAGS) $(ADP_XOR_FI_OBJ) -o $(BIN_PATH)adp-xor-fi $(LIBS)
adp-xor-fi-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)adp-xor-fi-tests.o
$(CC) $(LFLAGS) $(ADP_XOR_FI_TESTS_OBJ) -o $(BIN_PATH)adp-xor-fi-tests $(LIBS)
$(OBJ_PATH)adp-xor-fi.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-xor-fi.cc -o $(OBJ_PATH)adp-xor-fi.o
$(OBJ_PATH)adp-xor-fi-program.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-xor-fi-program.cc -o $(OBJ_PATH)adp-xor-fi-program.o
$(OBJ_PATH)adp-xor-fi-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-xor-fi-tests.cc -o $(OBJ_PATH)adp-xor-fi-tests.o
# --- ADP-XOR-FI-COUNT-ODIFF ---
ADP_XOR_FI_COUNT_ODIFF_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor-fi.o $(OBJ_PATH)adp-xor-fi-count-odiff.o $(OBJ_PATH)adp-xor-fi-count-odiff-tests.o
adp-xor-fi-count-odiff-tests: common.o adp-xor-fi.o adp-xor-fi-count-odiff.o adp-xor-fi-count-odiff-tests.o
$(CC) $(LFLAGS) $(ADP_XOR_FI_COUNT_ODIFF_TESTS_OBJ) -o $(BIN_PATH)adp-xor-fi-count-odiff-tests $(LIBS)
adp-xor-fi-count-odiff-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-xor-fi-count-odiff-tests.cc -o $(OBJ_PATH)adp-xor-fi-count-odiff-tests.o
adp-xor-fi-count-odiff.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-xor-fi-count-odiff.cc -o $(OBJ_PATH)adp-xor-fi-count-odiff.o
# --- MAX-ADP-XOR3-SET ---
MAX_ADP_XOR3_SET_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)max-adp-xor3-set-tests.o
max-adp-xor3-set-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-set.o $(OBJ_PATH)max-adp-xor3-set-tests.o
$(CC) $(LFLAGS) $(MAX_ADP_XOR3_SET_TESTS_OBJ) -o $(BIN_PATH)max-adp-xor3-set-tests $(LIBS)
$(OBJ_PATH)max-adp-xor3-set-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)max-adp-xor3-set-tests.cc -o $(OBJ_PATH)max-adp-xor3-set-tests.o
$(OBJ_PATH)max-adp-xor3-set.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)max-adp-xor3-set.cc -o $(OBJ_PATH)max-adp-xor3-set.o
# --- MAX-ADP-XOR3 ---
MAX_ADP_XOR3_OBJ = $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-program.o
MAX_ADP_XOR3_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-tests.o
max-adp-xor3: $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-program.o
$(CC) $(LFLAGS) $(MAX_ADP_XOR3_OBJ) -o $(BIN_PATH)max-adp-xor3 $(LIBS)
$(OBJ_PATH)max-adp-xor3-program.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)max-adp-xor3-program.cc -o $(OBJ_PATH)max-adp-xor3-program.o
max-adp-xor3-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)max-adp-xor3.o $(OBJ_PATH)max-adp-xor3-tests.o
$(CC) $(LFLAGS) $(MAX_ADP_XOR3_TESTS_OBJ) -o $(BIN_PATH)max-adp-xor3-tests $(LIBS)
$(OBJ_PATH)max-adp-xor3-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)max-adp-xor3-tests.cc -o $(OBJ_PATH)max-adp-xor3-tests.o
$(OBJ_PATH)max-adp-xor3.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)max-adp-xor3.cc -o $(OBJ_PATH)max-adp-xor3.o
# --- ADP-XOR3 ---
ADP_XOR3_OBJ = $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)adp-xor3-program.o
ADP_XOR3_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)adp-xor3-tests.o
adp-xor3: $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)adp-xor3-program.o
$(CC) $(LFLAGS) $(ADP_XOR3_OBJ) -o $(BIN_PATH)adp-xor3 $(LIBS)
adp-xor3-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor3.o $(OBJ_PATH)adp-xor3-tests.o
$(CC) $(LFLAGS) $(ADP_XOR3_TESTS_OBJ) -o $(BIN_PATH)adp-xor3-tests $(LIBS)
$(OBJ_PATH)adp-xor3.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-xor3.cc -o $(OBJ_PATH)adp-xor3.o
$(OBJ_PATH)adp-xor3-program.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-xor3-program.cc -o $(OBJ_PATH)adp-xor3-program.o
$(OBJ_PATH)adp-xor3-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-xor3-tests.cc -o $(OBJ_PATH)adp-xor3-tests.o
# --- MAX-ADP-XOR ---
MAX_ADP_XOR_OBJ = $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)max-adp-xor-program.o
MAX_ADP_XOR_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)max-adp-xor-tests.o
max-adp-xor: $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)max-adp-xor-program.o
$(CC) $(LFLAGS) $(MAX_ADP_XOR_OBJ) -o $(BIN_PATH)max-adp-xor $(LIBS)
max-adp-xor-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)max-adp-xor.o $(OBJ_PATH)max-adp-xor-tests.o
$(CC) $(LFLAGS) $(MAX_ADP_XOR_TESTS_OBJ) -o $(BIN_PATH)max-adp-xor-tests $(LIBS)
$(OBJ_PATH)max-adp-xor.o: $(SOURCE_PATH)max-adp-xor.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)max-adp-xor.cc -o $(OBJ_PATH)max-adp-xor.o
$(OBJ_PATH)max-adp-xor-program.o: $(SOURCE_PATH)max-adp-xor-program.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)max-adp-xor-program.cc -o $(OBJ_PATH)max-adp-xor-program.o
$(OBJ_PATH)max-adp-xor-tests.o: $(TESTS_PATH)max-adp-xor-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)max-adp-xor-tests.cc -o $(OBJ_PATH)max-adp-xor-tests.o
# --- ADP-RSH-XOR ---
ADP_RSH_XOR_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)adp-rsh-xor.o $(OBJ_PATH)adp-rsh-xor-tests.o
adp-rsh-xor-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)adp-rsh-xor.o $(OBJ_PATH)adp-rsh-xor-tests.o
$(CC) $(LFLAGS) $(ADP_RSH_XOR_TESTS_OBJ) -o $(BIN_PATH)adp-rsh-xor-tests $(LIBS)
$(OBJ_PATH)adp-rsh-xor.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-rsh-xor.cc -o $(OBJ_PATH)adp-rsh-xor.o
$(OBJ_PATH)adp-rsh-xor-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-rsh-xor-tests.cc -o $(OBJ_PATH)adp-rsh-xor-tests.o
# --- ADP-SHIFT ---
ADP_LSH_OBJ = $(OBJ_PATH)adp-shift.o $(OBJ_PATH)adp-lsh-program.o
ADP_RSH_OBJ = $(OBJ_PATH)adp-shift.o $(OBJ_PATH)adp-rsh-program.o
ADP_SHIFT_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)adp-shift-tests.o
adp-lsh: $(OBJ_PATH)common.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)adp-lsh-program.o
$(CC) $(LFLAGS) $(ADP_LSH_OBJ) -o $(BIN_PATH)adp-lsh $(LIBS)
adp-rsh: $(OBJ_PATH)common.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)adp-rsh-program.o
$(CC) $(LFLAGS) $(ADP_RSH_OBJ) -o $(BIN_PATH)adp-rsh $(LIBS)
adp-shift-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-shift.o $(OBJ_PATH)adp-shift-tests.o
$(CC) $(LFLAGS) $(ADP_SHIFT_TESTS_OBJ) -o $(BIN_PATH)adp-shift-tests $(LIBS)
$(OBJ_PATH)adp-lsh-program.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-lsh-program.cc -o $(OBJ_PATH)adp-lsh-program.o
$(OBJ_PATH)adp-rsh-program.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-rsh-program.cc -o $(OBJ_PATH)adp-rsh-program.o
$(OBJ_PATH)adp-shift.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-shift.cc -o $(OBJ_PATH)adp-shift.o
$(OBJ_PATH)adp-shift-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-shift-tests.cc -o $(OBJ_PATH)adp-shift-tests.o
# --- XDP-ADD-PDDT ---
XDP_ADD_PDDT_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)xdp-add-pddt.o $(OBJ_PATH)xdp-add-pddt-tests.o
xdp-add-pddt-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)xdp-add-pddt.o $(OBJ_PATH)xdp-add-pddt-tests.o
$(CC) $(LFLAGS) $(XDP_ADD_PDDT_TESTS_OBJ) -o $(BIN_PATH)xdp-add-pddt-tests $(LIBS)
$(OBJ_PATH)xdp-add-pddt.o: $(SOURCE_PATH)xdp-add-pddt.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)xdp-add-pddt.cc -o $(OBJ_PATH)xdp-add-pddt.o
$(OBJ_PATH)xdp-add-pddt-tests.o: $(TESTS_PATH)xdp-add-pddt-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)xdp-add-pddt-tests.cc -o $(OBJ_PATH)xdp-add-pddt-tests.o
# --- ADP-XOR-PDDT ---
ADP_XOR_PDDT_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)adp-xor-pddt.o $(OBJ_PATH)adp-xor-pddt-tests.o
adp-xor-pddt-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)adp-xor-pddt.o $(OBJ_PATH)adp-xor-pddt-tests.o
$(CC) $(LFLAGS) $(ADP_XOR_PDDT_TESTS_OBJ) -o $(BIN_PATH)adp-xor-pddt-tests $(LIBS)
$(OBJ_PATH)adp-xor-pddt.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-xor-pddt.cc -o $(OBJ_PATH)adp-xor-pddt.o
$(OBJ_PATH)adp-xor-pddt-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-xor-pddt-tests.cc -o $(OBJ_PATH)adp-xor-pddt-tests.o
# --- ADP-ARX ---
ADP_ARX_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-arx.o $(OBJ_PATH)max-adp-arx.o $(OBJ_PATH)adp-arx-tests.o
adp-arx-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-arx.o $(OBJ_PATH)max-adp-arx.o $(OBJ_PATH)adp-arx-tests.o
$(CC) $(LFLAGS) $(ADP_ARX_TESTS_OBJ) -o $(BIN_PATH)adp-arx-tests $(LIBS)
$(OBJ_PATH)adp-arx.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-arx.cc -o $(OBJ_PATH)adp-arx.o
$(OBJ_PATH)max-adp-arx.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)max-adp-arx.cc -o $(OBJ_PATH)max-adp-arx.o
$(OBJ_PATH)adp-arx-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-arx-tests.cc -o $(OBJ_PATH)adp-arx-tests.o
# --- ADP-XOR ---
ADP_XOR_OBJ = $(OBJ_PATH)adp-xor.o $(OBJ_PATH)adp-xor-program.o
ADP_XOR_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)adp-xor-tests.o
adp-xor: $(OBJ_PATH)adp-xor.o $(OBJ_PATH)adp-xor-program.o
$(CC) $(LFLAGS) $(ADP_XOR_OBJ) -o $(BIN_PATH)adp-xor $(LIBS)
adp-xor-tests: $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)adp-xor-tests.o
$(CC) $(LFLAGS) $(ADP_XOR_TESTS_OBJ) -o $(BIN_PATH)adp-xor-tests $(LIBS)
$(OBJ_PATH)adp-xor.o: $(SOURCE_PATH)adp-xor.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-xor.cc -o $(OBJ_PATH)adp-xor.o
$(OBJ_PATH)adp-xor-program.o: $(SOURCE_PATH)adp-xor-program.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-xor-program.cc -o $(OBJ_PATH)adp-xor-program.o
$(OBJ_PATH)adp-xor-tests.o: $(TESTS_PATH)adp-xor-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-xor-tests.cc -o $(OBJ_PATH)adp-xor-tests.o
# --- ADP-XOR-COUNT-ODIFF ---
ADP_XOR_COUNT_ODIFF_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)adp-xor-count-odiff.o $(OBJ_PATH)adp-xor-count-odiff-tests.o
adp-xor-count-odiff-tests: common.o adp-xor.o adp-xor-count-odiff.o adp-xor-count-odiff-tests.o
$(CC) $(LFLAGS) $(ADP_XOR_COUNT_ODIFF_TESTS_OBJ) -o $(BIN_PATH)adp-xor-count-odiff-tests $(LIBS)
adp-xor-count-odiff-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)adp-xor-count-odiff-tests.cc -o $(OBJ_PATH)adp-xor-count-odiff-tests.o
adp-xor-count-odiff.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)adp-xor-count-odiff.cc -o $(OBJ_PATH)adp-xor-count-odiff.o
# --- GRAPHVIZ-TEST ---
GRAPHVIZ_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)graphviz-tests.o
graphviz-tests: common.o graphviz-tests.o
$(CC) $(LFLAGS) $(GRAPHVIZ_TESTS_OBJ) -o $(BIN_PATH)graphviz-tests $(LIBS)
graphviz-tests.o:
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)graphviz-tests.cc -o $(OBJ_PATH)graphviz-tests.o
# --- COMMON ---
$(OBJ_PATH)common.o: $(SOURCE_PATH)common.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(SOURCE_PATH)common.cc -o $(OBJ_PATH)common.o
clean:
rm -v $(BIN_PATH)*; rm -v $(OBJ_PATH)*.o
# --- MORUS ---
MORUS_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-and.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)morus-tests.o
morus-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-and.o $(OBJ_PATH)adp-xor.o $(OBJ_PATH)morus-tests.o
$(CC) $(LFLAGS) $(MORUS_TESTS_OBJ) -o $(BIN_PATH)morus-tests $(LIBS)
$(OBJ_PATH)morus-tests.o: $(TESTS_PATH)morus-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)morus-tests.cc -o $(OBJ_PATH)morus-tests.o
# --- LINEAR_CODE ---
LINEAR_CODE_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)linear-code-tests.o
linear-code-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-add.o $(OBJ_PATH)max-xdp-add.o $(OBJ_PATH)linear-code-tests.o
$(CC) $(LFLAGS) $(LINEAR_CODE_TESTS_OBJ) -o $(BIN_PATH)linear-code-tests $(LIBS)
$(OBJ_PATH)linear-code-tests.o: $(TESTS_PATH)linear-code-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)linear-code-tests.cc -o $(OBJ_PATH)linear-code-tests.o
# --- NORX ---
NORX_TESTS_OBJ = $(OBJ_PATH)common.o $(OBJ_PATH)xdp-and.o $(OBJ_PATH)norx-tests.o
norx-tests: $(OBJ_PATH)common.o $(OBJ_PATH)xdp-and.o $(OBJ_PATH)norx-tests.o
$(CC) $(LFLAGS) $(NORX_TESTS_OBJ) -o $(BIN_PATH)norx-tests $(LIBS)
$(OBJ_PATH)norx-tests.o: $(TESTS_PATH)norx-tests.cc
$(CC) $(CFLAGS) -I$(INCLUDES) $(TESTS_PATH)norx-tests.cc -o $(OBJ_PATH)norx-tests.o
# --- NORX-BEST-DIFF-SEARCH ---