]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
tinc_start() - skeleton of the API call. The function starts the main tinc thread...
[meshlink] / src / Makefile.am
1 ## Produce this file with automake to get Makefile.in
2
3 sbin_PROGRAMS = tincd tinc sptps_test
4
5 if LINUX
6 sbin_PROGRAMS += sptps_speed
7 endif
8
9 DEFAULT_INCLUDES =
10
11 tincd_SOURCES = \
12         buffer.c buffer.h \
13         cipher.h \
14         conf.c conf.h \
15         connection.c connection.h \
16         control.c control.h \
17         control_common.h \
18         crypto.h \
19         device.h \
20         digest.h \
21         dropin.c dropin.h \
22         dummy_device.c \
23         ecdh.h \
24         ecdsa.h \
25         ecdsagen.h \
26         edge.c edge.h \
27         ethernet.h \
28         event.c event.h \
29         fake-gai-errnos.h \
30         fake-getaddrinfo.c fake-getaddrinfo.h \
31         fake-getnameinfo.c fake-getnameinfo.h \
32         getopt.c getopt.h \
33         getopt1.c \
34         graph.c graph.h \
35         hash.c hash.h \
36         have.h \
37         ipv4.h \
38         ipv6.h \
39         list.c list.h \
40         logger.c logger.h \
41         meta.c meta.h \
42         multicast_device.c \
43         names.c names.h \
44         net.c net.h \
45         net_packet.c \
46         net_setup.c \
47         net_socket.c \
48         netutl.c netutl.h \
49         node.c node.h \
50         prf.h \
51         process.c process.h \
52         protocol.c protocol.h \
53         protocol_auth.c \
54         protocol_edge.c \
55         protocol_key.c \
56         protocol_misc.c \
57         protocol_subnet.c \
58         raw_socket_device.c \
59         route.c route.h \
60         rsa.h \
61         rsagen.h \
62         script.c script.h \
63         splay_tree.c splay_tree.h \
64         sptps.c sptps.h \
65         subnet.c subnet.h \
66         subnet_parse.c \
67         system.h \
68         tincd.c \
69         utils.c utils.h \
70         xalloc.h
71
72 tincd_CFLAGS = -fPIC
73
74 tinc_SOURCES = \
75         dropin.c dropin.h \
76         getopt.c getopt.h \
77         getopt1.c \
78         info.c info.h \
79         invitation.c invitation.h \
80         list.c list.h \
81         names.c names.h \
82         netutl.c netutl.h \
83         script.c script.h \
84         sptps.c sptps.h \
85         subnet_parse.c subnet.h \
86         tincctl.c tincctl.h \
87         top.c top.h \
88         utils.c utils.h
89
90 tinc_CFLAGS = -fPIC
91
92 sptps_test_SOURCES = \
93         logger.c logger.h \
94         sptps.c sptps.h \
95         sptps_test.c \
96         utils.c utils.h
97
98 sptps_speed_SOURCES = \
99         logger.c logger.h \
100         sptps.c sptps.h \
101         sptps_speed.c \
102         utils.c utils.h
103
104 lib_LTLIBRARIES = libmeshlink.la
105
106 libmeshlink_la_SOURCES = \
107         libmeshlink.c libmeshlink.h \
108         buffer.c buffer.h \
109         cipher.h \
110         conf.c conf.h \
111         connection.c connection.h \
112         control.c control.h \
113         control_common.h \
114         crypto.h \
115         device.h \
116         digest.h \
117         dropin.c dropin.h \
118         dummy_device.c \
119         ecdh.h \
120         ecdsa.h \
121         ecdsagen.h \
122         edge.c edge.h \
123         ethernet.h \
124         event.c event.h \
125         fake-gai-errnos.h \
126         fake-getaddrinfo.c fake-getaddrinfo.h \
127         fake-getnameinfo.c fake-getnameinfo.h \
128         getopt.c getopt.h \
129         getopt1.c \
130         graph.c graph.h \
131         hash.c hash.h \
132         have.h \
133         ipv4.h \
134         ipv6.h \
135         list.c list.h \
136         logger.c logger.h \
137         meta.c meta.h \
138         multicast_device.c \
139         names.c names.h \
140         net.c net.h \
141         net_packet.c \
142         net_setup.c \
143         net_socket.c \
144         netutl.c netutl.h \
145         node.c node.h \
146         prf.h \
147         process.c process.h \
148         protocol.c protocol.h \
149         protocol_auth.c \
150         protocol_edge.c \
151         protocol_key.c \
152         protocol_misc.c \
153         protocol_subnet.c \
154         raw_socket_device.c \
155         route.c route.h \
156         rsa.h \
157         rsagen.h \
158         script.c script.h \
159         splay_tree.c splay_tree.h \
160         sptps.c sptps.h \
161         subnet.c subnet.h \
162         subnet_parse.c \
163         system.h \
164         tincd.c \
165         utils.c utils.h \
166         xalloc.h
167
168 libmeshlink_la_CFLAGS = -fPIC
169
170 libmeshlink_la_LIBADD = -lpthread
171
172 ## Conditionally compile device drivers
173         
174 if LINUX
175 tincd_SOURCES += linux/device.c
176 libmeshlink_la_SOURCES +=linux/device.c
177 endif
178
179 if BSD
180 tincd_SOURCES += bsd/device.c
181 if TUNEMU
182 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
183 endif
184 endif
185
186 if SOLARIS
187 tincd_SOURCES += solaris/device.c
188 endif
189
190 if MINGW
191 tincd_SOURCES += mingw/device.c mingw/common.h
192 endif
193
194 if CYGWIN
195 tincd_SOURCES += cygwin/device.c
196 endif
197
198 if UML
199 tincd_SOURCES += uml_device.c
200 endif
201
202 if VDE
203 tincd_SOURCES += vde_device.c
204 endif
205
206 if OPENSSL
207 tincd_SOURCES += \
208         openssl/cipher.c \
209         openssl/crypto.c \
210         openssl/digest.c openssl/digest.h \
211         openssl/ecdh.c \
212         openssl/ecdsa.c \
213         openssl/prf.c \
214         openssl/rsa.c
215 tinc_SOURCES += \
216         openssl/cipher.c \
217         openssl/crypto.c \
218         openssl/digest.c openssl/digest.h \
219         openssl/ecdh.c \
220         openssl/ecdsa.c \
221         openssl/ecdsagen.c \
222         openssl/prf.c \
223         openssl/rsa.c \
224         openssl/rsagen.c
225 libmeshlink_la_SOURCES += \
226         openssl/cipher.c \
227         openssl/crypto.c \
228         openssl/digest.c openssl/digest.h \
229         openssl/ecdh.c \
230         openssl/ecdsa.c \
231         openssl/ecdsagen.c \
232         openssl/prf.c \
233         openssl/rsa.c \
234         openssl/rsagen.c
235 sptps_test_SOURCES += \
236         openssl/cipher.c \
237         openssl/crypto.c \
238         openssl/digest.c openssl/digest.h \
239         openssl/ecdh.c \
240         openssl/ecdsa.c \
241         openssl/prf.c
242 sptps_speed_SOURCES += \
243         openssl/cipher.c \
244         openssl/crypto.c \
245         openssl/digest.c openssl/digest.h \
246         openssl/ecdh.c \
247         openssl/ecdsa.c \
248         openssl/ecdsagen.c \
249         openssl/prf.c
250 endif
251
252 if GCRYPT
253 tincd_SOURCES += \
254         gcrypt/cipher.c \
255         gcrypt/crypto.c \
256         gcrypt/digest.c gcrypt/digest.h \
257         gcrypt/ecdh.c \
258         gcrypt/ecdsa.c \
259         gcrypt/prf.c \
260         gcrypt/rsa.c
261 tinc_SOURCES += \
262         gcrypt/cipher.c \
263         gcrypt/crypto.c \
264         gcrypt/digest.c gcrypt/digest.h \
265         gcrypt/ecdh.c \
266         gcrypt/ecdsa.c \
267         gcrypt/ecdsagen.c \
268         gcrypt/prf.c \
269         gcrypt/rsa.c \
270         gcrypt/rsagen.c
271 sptps_test_SOURCES += \
272         gcrypt/cipher.c \
273         gcrypt/crypto.c \
274         gcrypt/digest.c gcrypt/digest.h \
275         gcrypt/ecdh.c \
276         gcrypt/ecdsa.c \
277         gcrypt/prf.c
278 endif
279
280 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
281 sptps_speed_LDADD = -lrt
282
283 LIBS = @LIBS@
284
285 if TUNEMU
286 LIBS += -lpcap
287 endif
288
289 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"