Use Ed25519 keys.
[tinc] / src / Makefile.am
1 ## Produce this file with automake to get Makefile.in
2
3 sbin_PROGRAMS = tincd tinc sptps_test sptps_keypair
4
5 if LINUX
6 sbin_PROGRAMS += sptps_speed
7 endif
8
9 DEFAULT_INCLUDES =
10
11 ed25519_SOURCES = \
12         ed25519/add_scalar.c \
13         ed25519/ed25519.h \
14         ed25519/fe.c ed25519/fe.h \
15         ed25519/fixedint.h \
16         ed25519/ge.c ed25519/ge.h \
17         ed25519/key_exchange.c \
18         ed25519/keypair.c \
19         ed25519/precomp_data.h \
20         ed25519/sc.c ed25519/sc.h \
21         ed25519/seed.c \
22         ed25519/sha512.c ed25519/sha512.h \
23         ed25519/sign.c \
24         ed25519/verify.c
25
26 tincd_SOURCES = \
27         buffer.c buffer.h \
28         cipher.h \
29         conf.c conf.h \
30         connection.c connection.h \
31         control.c control.h \
32         control_common.h \
33         crypto.h \
34         device.h \
35         digest.h \
36         dropin.c dropin.h \
37         dummy_device.c \
38         ecdh.h \
39         ecdsa.h \
40         ecdsagen.h \
41         edge.c edge.h \
42         ethernet.h \
43         event.c event.h \
44         fake-gai-errnos.h \
45         fake-getaddrinfo.c fake-getaddrinfo.h \
46         fake-getnameinfo.c fake-getnameinfo.h \
47         getopt.c getopt.h \
48         getopt1.c \
49         graph.c graph.h \
50         hash.c hash.h \
51         have.h \
52         ipv4.h \
53         ipv6.h \
54         list.c list.h \
55         logger.c logger.h \
56         meta.c meta.h \
57         multicast_device.c \
58         names.c names.h \
59         net.c net.h \
60         net_packet.c \
61         net_setup.c \
62         net_socket.c \
63         netutl.c netutl.h \
64         node.c node.h \
65         prf.h \
66         process.c process.h \
67         protocol.c protocol.h \
68         protocol_auth.c \
69         protocol_edge.c \
70         protocol_key.c \
71         protocol_misc.c \
72         protocol_subnet.c \
73         raw_socket_device.c \
74         route.c route.h \
75         rsa.h \
76         rsagen.h \
77         script.c script.h \
78         splay_tree.c splay_tree.h \
79         sptps.c sptps.h \
80         subnet.c subnet.h \
81         subnet_parse.c \
82         system.h \
83         tincd.c \
84         utils.c utils.h \
85         xalloc.h \
86         $(ed25519_SOURCES)
87
88 tinc_SOURCES = \
89         dropin.c dropin.h \
90         getopt.c getopt.h \
91         getopt1.c \
92         info.c info.h \
93         invitation.c invitation.h \
94         list.c list.h \
95         names.c names.h \
96         netutl.c netutl.h \
97         script.c script.h \
98         sptps.c sptps.h \
99         subnet_parse.c subnet.h \
100         tincctl.c tincctl.h \
101         top.c top.h \
102         utils.c utils.h \
103         $(ed25519_SOURCES)
104
105 sptps_test_SOURCES = \
106         logger.c logger.h \
107         sptps.c sptps.h \
108         sptps_test.c \
109         utils.c utils.h \
110         $(ed25519_SOURCES)
111
112 sptps_keypair_SOURCES = \
113         sptps_keypair.c \
114         utils.c utils.h \
115         $(ed25519_SOURCES)
116
117 sptps_speed_SOURCES = \
118         logger.c logger.h \
119         sptps.c sptps.h \
120         sptps_speed.c \
121         utils.c utils.h \
122         $(ed25519_SOURCES)
123
124 ## Conditionally compile device drivers
125         
126 if LINUX
127 tincd_SOURCES += linux/device.c
128 endif
129
130 if BSD
131 tincd_SOURCES += bsd/device.c
132 if TUNEMU
133 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
134 endif
135 endif
136
137 if SOLARIS
138 tincd_SOURCES += solaris/device.c
139 endif
140
141 if MINGW
142 tincd_SOURCES += mingw/device.c mingw/common.h
143 endif
144
145 if CYGWIN
146 tincd_SOURCES += cygwin/device.c
147 endif
148
149 if UML
150 tincd_SOURCES += uml_device.c
151 endif
152
153 if VDE
154 tincd_SOURCES += vde_device.c
155 endif
156
157 if OPENSSL
158 tincd_SOURCES += \
159         openssl/cipher.c \
160         openssl/crypto.c \
161         openssl/digest.c openssl/digest.h \
162         ed25519/ecdh.c \
163         ed25519/ecdsa.c \
164         openssl/prf.c \
165         openssl/rsa.c
166 tinc_SOURCES += \
167         openssl/cipher.c \
168         openssl/crypto.c \
169         openssl/digest.c openssl/digest.h \
170         ed25519/ecdh.c \
171         ed25519/ecdsa.c \
172         ed25519/ecdsagen.c \
173         openssl/prf.c \
174         openssl/rsa.c \
175         openssl/rsagen.c
176 sptps_test_SOURCES += \
177         openssl/cipher.c \
178         openssl/crypto.c \
179         openssl/digest.c openssl/digest.h \
180         ed25519/ecdh.c \
181         ed25519/ecdsa.c \
182         openssl/prf.c
183 sptps_keypair_SOURCES += \
184         openssl/crypto.c \
185         ed25519/ecdsagen.c
186 sptps_speed_SOURCES += \
187         openssl/cipher.c \
188         openssl/crypto.c \
189         openssl/digest.c openssl/digest.h \
190         ed25519/ecdh.c \
191         ed25519/ecdsa.c \
192         ed25519/ecdsagen.c \
193         openssl/prf.c
194 endif
195
196 if GCRYPT
197 tincd_SOURCES += \
198         gcrypt/cipher.c \
199         gcrypt/crypto.c \
200         gcrypt/digest.c gcrypt/digest.h \
201         gcrypt/ecdh.c \
202         gcrypt/ecdsa.c \
203         gcrypt/prf.c \
204         gcrypt/rsa.c
205 tinc_SOURCES += \
206         gcrypt/cipher.c \
207         gcrypt/crypto.c \
208         gcrypt/digest.c gcrypt/digest.h \
209         gcrypt/ecdh.c \
210         gcrypt/ecdsa.c \
211         gcrypt/ecdsagen.c \
212         gcrypt/prf.c \
213         gcrypt/rsa.c \
214         gcrypt/rsagen.c
215 sptps_test_SOURCES += \
216         gcrypt/cipher.c \
217         gcrypt/crypto.c \
218         gcrypt/digest.c gcrypt/digest.h \
219         gcrypt/ecdh.c \
220         gcrypt/ecdsa.c \
221         gcrypt/prf.c
222 endif
223
224 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
225 sptps_speed_LDADD = -lrt
226
227 LIBS = @LIBS@
228
229 if TUNEMU
230 LIBS += -lpcap
231 endif
232
233 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"