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