forked from pascholl/SimpleOT
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
100 lines (80 loc) · 1.96 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
CC = gcc
CFLAGS = -O3 -Wall -Wextra
AS = $(CC) $(CFLAGS) -c
# if removing this, add -DNO_SODIUM to CFLAGS
LDFLAGS = -lsodium
OBJS+= Keccak-simple.o
OBJS+= randombytes.o
OBJS+= cpucycles.o
OBJS+= network.o
OBJS+= ot_sender.o
OBJS+= ot_receiver.o
OBJS+= sc25519_random.o
OBJS+= sc25519_from32bytes.o
OBJS+= sc25519_window4.o
OBJS+= fe25519_add.o
OBJS+= fe25519_freeze.o
OBJS+= fe25519_getparity.o
OBJS+= fe25519_invert.o
OBJS+= fe25519_iseq_vartime.o
OBJS+= fe25519_mul.o
OBJS+= fe25519_neg.o
OBJS+= fe25519_nsquare.o
OBJS+= fe25519_pack.o
OBJS+= fe25519_pow2523.o
OBJS+= fe25519_setint.o
OBJS+= fe25519_square.o
OBJS+= fe25519_sub.o
OBJS+= fe25519_unpack.o
OBJS+= ge25519_pack.o
OBJS+= ge25519_unpack.o
OBJS+= ge25519_setneutral.o
OBJS+= ge25519_dbl_p1p1.o
OBJS+= ge25519_add_p1p1.o
OBJS+= ge25519_nielsadd2.o
OBJS+= ge25519_p1p1_to_p2.o
OBJS+= ge25519_p1p1_to_p3.o
OBJS+= ge25519_double.o
OBJS+= ge25519_add.o
OBJS+= ge25519_scalarmult_base.o
OBJS+= ge25519_scalarmult.o
OBJS+= ge25519_lookup.o
OBJS+= ge25519_lookup_niels.o
OBJS+= ge4x.o
OBJS+= gfe4x.o
OBJS+= gfe4x_add.o
OBJS+= gfe4x_nsquare.o
OBJS+= gfe4x_square.o
OBJS+= gfe4x_getparity.o
OBJS+= gfe4x_iseq_vartime.o
OBJS+= gfe4x_mul.o
OBJS+= gfe4x_pow2523.o
OBJS+= gfe4x_sub.o
OBJS+= ge4x_double_p1p1.o
OBJS+= ge4x_add_p1p1.o
OBJS+= ge4x_niels_add_p1p1.o
OBJS+= ge4x_unpack_vartime.o
OBJS+= ge4x_pack.o
OBJS+= ge4x_lookup_niels.o
OBJS+= ge4x_lookup.o
OBJS+= consts.o
OBJS+= consts4x.o
######################################################
all: ot_sender_test ot_receiver_test libsimpleot
libsimpleot: $(OBJS)
$(AR) -crs libsimpleot.a $(OBJS) $(LDFLAGS)
ot_sender_test: ot_sender_test.o $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
ot_receiver_test: ot_receiver_test.o $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $<
%.o: %.S
$(AS) $<
######################################################
.PHONY: clean
clean:
-rm -f ot_sender_test
-rm -f ot_receiver_test
-rm -f *.o
-rm -f libsimpleot.a