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 conf_net.c conf_net.h \
57 connection.c connection.h \
91 protocol.c protocol.h \
102 splay_tree.c splay_tree.h \
110 version.c version.h \
114 $(chacha_poly1305_SOURCES) \
120 ifconfig.c ifconfig.h \
122 invitation.c invitation.h \
125 splay_tree.c splay_tree.h \
131 subnet_parse.c subnet.h \
132 tincctl.c tincctl.h \
135 version.c version.h \
140 $(chacha_poly1305_SOURCES)
142 sptps_test_SOURCES = \
150 $(chacha_poly1305_SOURCES)
152 sptps_keypair_SOURCES = \
158 sptps_speed_SOURCES = \
167 $(chacha_poly1305_SOURCES)
169 ## Conditionally compile device drivers
178 sptps_test_SOURCES += \
181 sptps_keypair_SOURCES += \
187 tincd_SOURCES += linux/device.c
191 tincd_SOURCES += bsd/device.c
193 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
198 tincd_SOURCES += solaris/device.c
202 tincd_SOURCES += mingw/device.c mingw/common.h
206 tincd_SOURCES += uml_device.c
210 tincd_SOURCES += vde_device.c
217 openssl/digest.c openssl/digest.h \
223 openssl/digest.c openssl/digest.h \
227 sptps_test_SOURCES += \
229 openssl/digest.c openssl/digest.h \
231 sptps_keypair_SOURCES += \
233 sptps_speed_SOURCES += \
235 openssl/digest.c openssl/digest.h \
242 gcrypt/digest.c gcrypt/digest.h \
248 gcrypt/digest.c gcrypt/digest.h \
252 sptps_test_SOURCES += \
255 gcrypt/digest.c gcrypt/digest.h \
257 sptps_keypair_SOURCES += \
259 sptps_speed_SOURCES += \
261 openssl/digest.c openssl/digest.h \
270 sptps_test_SOURCES += \
273 sptps_keypair_SOURCES += \
275 sptps_speed_SOURCES += \
282 tincd_SOURCES += upnp.h upnp.c
283 tincd_LDADD = $(MINIUPNPC_LIBS)
284 tincd_LDFLAGS = -pthread
288 sptps_test_LDFLAGS = -pthread
291 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
292 sptps_speed_LDADD = -lrt
294 LIBS = @LIBS@ -lm $(CODE_COVERAGE_LIBS)
300 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DRUNSTATEDIR=\"$(runstatedir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote. $(CODE_COVERAGE_CFLAGS)
301 AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)