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
45 autoconnect.c autoconnect.h \
49 connection.c connection.h \
82 protocol.c protocol.h \
93 splay_tree.c splay_tree.h \
101 version.c version.h \
105 $(chacha_poly1305_SOURCES)
110 ifconfig.c ifconfig.h \
112 invitation.c invitation.h \
118 subnet_parse.c subnet.h \
119 tincctl.c tincctl.h \
122 version.c version.h \
127 $(chacha_poly1305_SOURCES)
129 sptps_test_SOURCES = \
137 $(chacha_poly1305_SOURCES)
139 sptps_keypair_SOURCES = \
145 sptps_speed_SOURCES = \
154 $(chacha_poly1305_SOURCES)
156 ## Conditionally compile device drivers
165 sptps_test_SOURCES += \
168 sptps_keypair_SOURCES += \
174 tincd_SOURCES += linux/device.c
178 tincd_SOURCES += bsd/device.c
180 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
185 tincd_SOURCES += solaris/device.c
189 tincd_SOURCES += mingw/device.c mingw/common.h
193 tincd_SOURCES += cygwin/device.c
197 tincd_SOURCES += uml_device.c
201 tincd_SOURCES += vde_device.c
208 openssl/digest.c openssl/digest.h \
214 openssl/digest.c openssl/digest.h \
218 sptps_test_SOURCES += \
220 openssl/digest.c openssl/digest.h \
222 sptps_keypair_SOURCES += \
224 sptps_speed_SOURCES += \
226 openssl/digest.c openssl/digest.h \
233 gcrypt/digest.c gcrypt/digest.h \
239 gcrypt/digest.c gcrypt/digest.h \
243 sptps_test_SOURCES += \
246 gcrypt/digest.c gcrypt/digest.h \
248 sptps_keypair_SOURCES += \
250 sptps_speed_SOURCES += \
252 openssl/digest.c openssl/digest.h \
261 sptps_test_SOURCES += \
264 sptps_keypair_SOURCES += \
266 sptps_speed_SOURCES += \
273 tincd_SOURCES += upnp.h upnp.c
274 tincd_LDADD = $(MINIUPNPC_LIBS)
275 tincd_LDFLAGS = -pthread
278 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
279 sptps_speed_LDADD = -lrt
287 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote.