1 ## Produce this file with automake to get Makefile.in
3 sbin_PROGRAMS = tincd tinc
4 check_PROGRAMS = sptps_test sptps_keypair
5 EXTRA_PROGRAMS = $(check_PROGRAMS)
7 CLEANFILES = version_git.h
10 extra: $(EXTRA_PROGRAMS)
15 version_git.h: version-stamp
17 @-(cd $(srcdir) && git describe 2>/dev/null >/dev/null) && echo '#define GIT_DESCRIPTION "'`(cd $(srcdir) && git describe) | sed 's/release-//'`'"' >$@ ||:
18 ${srcdir}/version.c: version_git.h
20 ## Now a hack to appease some versions of BSD make that don't understand that "./foo" is the same as "foo".
22 version.c: ${srcdir}/version.c
26 EXTRA_PROGRAMS += sptps_speed
31 ed25519/fe.c ed25519/fe.h \
33 ed25519/ge.c ed25519/ge.h \
34 ed25519/key_exchange.c \
36 ed25519/precomp_data.h \
37 ed25519/sc.c ed25519/sc.h \
38 ed25519/sha512.c ed25519/sha512.h \
42 chacha_poly1305_SOURCES = \
43 chacha-poly1305/chacha.c chacha-poly1305/chacha.h \
44 chacha-poly1305/chacha-poly1305.c chacha-poly1305/chacha-poly1305.h \
45 chacha-poly1305/poly1305.c chacha-poly1305/poly1305.h
47 if CONFIGURE_LZ4_BUILTIN
48 lz4_SOURCES = lib/lz4/lz4.c lib/lz4/lz4.h
54 address_cache.c address_cache.h \
55 autoconnect.c autoconnect.h \
60 conf_net.c conf_net.h \
61 connection.c connection.h \
95 protocol.c protocol.h \
101 raw_socket_device.c \
106 splay_tree.c splay_tree.h \
115 version.c version.h \
119 $(chacha_poly1305_SOURCES) \
125 ifconfig.c ifconfig.h \
127 invitation.c invitation.h \
130 splay_tree.c splay_tree.h \
136 subnet_parse.c subnet.h \
137 tincctl.c tincctl.h \
140 version.c version.h \
146 $(chacha_poly1305_SOURCES)
148 sptps_test_SOURCES = \
157 $(chacha_poly1305_SOURCES)
159 sptps_keypair_SOURCES = \
165 sptps_speed_SOURCES = \
174 $(chacha_poly1305_SOURCES)
176 ## Conditionally compile device drivers
185 sptps_test_SOURCES += \
188 sptps_keypair_SOURCES += \
194 tincd_SOURCES += linux/device.c
198 tincd_SOURCES += bsd/device.c
200 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
205 tincd_SOURCES += solaris/device.c
209 tincd_SOURCES += mingw/device.c mingw/common.h
213 tincd_SOURCES += uml_device.c
217 tincd_SOURCES += vde_device.c
222 openssl/cipher.c openssl/cipher.h \
224 openssl/digest.c openssl/digest.h \
227 openssl/log.c openssl/log.h
229 openssl/cipher.c openssl/cipher.h \
231 openssl/digest.c openssl/digest.h \
235 openssl/log.c openssl/log.h
236 sptps_test_SOURCES += \
238 openssl/digest.c openssl/digest.h \
240 openssl/log.c openssl/log.h
241 sptps_keypair_SOURCES += \
243 sptps_speed_SOURCES += \
245 openssl/digest.c openssl/digest.h \
247 openssl/log.c openssl/log.h
251 gcrypt/cipher.c gcrypt/cipher.h \
253 gcrypt/digest.c gcrypt/digest.h \
254 gcrypt/pem.c gcrypt/pem.h \
256 gcrypt/rsa.c gcrypt/rsa.h
258 gcrypt/cipher.c gcrypt/cipher.h \
260 gcrypt/digest.c gcrypt/digest.h \
261 gcrypt/pem.c gcrypt/pem.h \
263 gcrypt/rsa.c gcrypt/rsa.h \
265 sptps_test_SOURCES += \
266 gcrypt/cipher.c gcrypt/cipher.h \
268 gcrypt/digest.c gcrypt/digest.h \
270 sptps_keypair_SOURCES += \
272 sptps_speed_SOURCES += \
274 gcrypt/digest.c gcrypt/digest.h \
283 sptps_test_SOURCES += \
286 sptps_keypair_SOURCES += \
288 sptps_speed_SOURCES += \
294 if WITH_LEGACY_PROTOCOL
295 tinc_SOURCES += digest.c
296 tincd_SOURCES += digest.c cipher.c
297 sptps_test_SOURCES += digest.c
298 sptps_speed_SOURCES += digest.c
302 tincd_SOURCES += upnp.h upnp.c
303 tincd_LDADD = $(MINIUPNPC_LIBS)
304 tincd_LDFLAGS = -pthread
308 sptps_test_LDFLAGS = -pthread
311 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
312 sptps_speed_LDADD = -lrt
314 LIBS = @LIBS@ -lm $(CODE_COVERAGE_LIBS)
320 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DRUNSTATEDIR=\"$(runstatedir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote. $(CODE_COVERAGE_CFLAGS)
321 AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)