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 \
228 openssl/cipher.c openssl/cipher.h \
230 openssl/digest.c openssl/digest.h \
234 sptps_test_SOURCES += \
236 openssl/digest.c openssl/digest.h \
238 sptps_keypair_SOURCES += \
240 sptps_speed_SOURCES += \
242 openssl/digest.c openssl/digest.h \
249 gcrypt/digest.c gcrypt/digest.h \
250 gcrypt/pem.c gcrypt/pem.h \
256 gcrypt/digest.c gcrypt/digest.h \
257 gcrypt/pem.c gcrypt/pem.h \
261 sptps_test_SOURCES += \
264 gcrypt/digest.c gcrypt/digest.h \
266 sptps_keypair_SOURCES += \
268 sptps_speed_SOURCES += \
270 gcrypt/digest.c gcrypt/digest.h \
279 sptps_test_SOURCES += \
282 sptps_keypair_SOURCES += \
284 sptps_speed_SOURCES += \
290 if WITH_LEGACY_PROTOCOL
291 tinc_SOURCES += digest.c
292 tincd_SOURCES += digest.c cipher.c
293 sptps_test_SOURCES += digest.c
294 sptps_speed_SOURCES += digest.c
298 tincd_SOURCES += upnp.h upnp.c
299 tincd_LDADD = $(MINIUPNPC_LIBS)
300 tincd_LDFLAGS = -pthread
304 sptps_test_LDFLAGS = -pthread
307 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
308 sptps_speed_LDADD = -lrt
310 LIBS = @LIBS@ -lm $(CODE_COVERAGE_LIBS)
316 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DRUNSTATEDIR=\"$(runstatedir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote. $(CODE_COVERAGE_CFLAGS)
317 AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)