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 = sptps_test sptps_keypair
7 CLEANFILES = version_git.h
12 version_git.h: version-stamp
14 @-(cd $(srcdir) && git describe 2>/dev/null >/dev/null) && echo '#define GIT_DESCRIPTION "'`(cd $(srcdir) && git describe) | sed 's/release-//'`'"' >$@ ||:
15 ${srcdir}/version.c: version_git.h
17 ## Now a hack to appease some versions of BSD make that don't understand that "./foo" is the same as "foo".
19 version.c: ${srcdir}/version.c
23 EXTRA_PROGRAMS += sptps_speed
28 ed25519/fe.c ed25519/fe.h \
30 ed25519/ge.c ed25519/ge.h \
31 ed25519/key_exchange.c \
33 ed25519/precomp_data.h \
34 ed25519/sc.c ed25519/sc.h \
35 ed25519/sha512.c ed25519/sha512.h \
39 chacha_poly1305_SOURCES = \
40 chacha-poly1305/chacha.c chacha-poly1305/chacha.h \
41 chacha-poly1305/chacha-poly1305.c chacha-poly1305/chacha-poly1305.h \
42 chacha-poly1305/poly1305.c chacha-poly1305/poly1305.h
44 if CONFIGURE_LZ4_BUILTIN
45 lz4_SOURCES = lib/lz4/lz4.c lib/lz4/lz4.h
51 address_cache.c address_cache.h \
52 autoconnect.c autoconnect.h \
56 connection.c connection.h \
89 protocol.c protocol.h \
100 splay_tree.c splay_tree.h \
108 version.c version.h \
112 $(chacha_poly1305_SOURCES) \
118 ifconfig.c ifconfig.h \
120 invitation.c invitation.h \
126 subnet_parse.c subnet.h \
127 tincctl.c tincctl.h \
130 version.c version.h \
135 $(chacha_poly1305_SOURCES)
137 sptps_test_SOURCES = \
145 $(chacha_poly1305_SOURCES)
147 sptps_keypair_SOURCES = \
153 sptps_speed_SOURCES = \
162 $(chacha_poly1305_SOURCES)
164 ## Conditionally compile device drivers
173 sptps_test_SOURCES += \
176 sptps_keypair_SOURCES += \
182 tincd_SOURCES += linux/device.c
186 tincd_SOURCES += bsd/device.c
188 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
193 tincd_SOURCES += solaris/device.c
197 tincd_SOURCES += mingw/device.c mingw/common.h
201 tincd_SOURCES += uml_device.c
205 tincd_SOURCES += vde_device.c
212 openssl/digest.c openssl/digest.h \
218 openssl/digest.c openssl/digest.h \
222 sptps_test_SOURCES += \
224 openssl/digest.c openssl/digest.h \
226 sptps_keypair_SOURCES += \
228 sptps_speed_SOURCES += \
230 openssl/digest.c openssl/digest.h \
237 gcrypt/digest.c gcrypt/digest.h \
243 gcrypt/digest.c gcrypt/digest.h \
247 sptps_test_SOURCES += \
250 gcrypt/digest.c gcrypt/digest.h \
252 sptps_keypair_SOURCES += \
254 sptps_speed_SOURCES += \
256 openssl/digest.c openssl/digest.h \
265 sptps_test_SOURCES += \
268 sptps_keypair_SOURCES += \
270 sptps_speed_SOURCES += \
277 tincd_SOURCES += upnp.h upnp.c
278 tincd_LDADD = $(MINIUPNPC_LIBS)
279 tincd_LDFLAGS = -pthread
283 sptps_test_LDFLAGS = -pthread
286 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
287 sptps_speed_LDADD = -lrt
289 LIBS = @LIBS@ -lm $(CODE_COVERAGE_LIBS)
295 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DRUNSTATEDIR=\"$(runstatedir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote. $(CODE_COVERAGE_CFLAGS)
296 AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)