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 address_cache.c address_cache.h \
46 autoconnect.c autoconnect.h \
50 connection.c connection.h \
83 protocol.c protocol.h \
94 splay_tree.c splay_tree.h \
102 version.c version.h \
106 $(chacha_poly1305_SOURCES)
111 ifconfig.c ifconfig.h \
113 invitation.c invitation.h \
119 subnet_parse.c subnet.h \
120 tincctl.c tincctl.h \
123 version.c version.h \
128 $(chacha_poly1305_SOURCES)
130 sptps_test_SOURCES = \
138 $(chacha_poly1305_SOURCES)
140 sptps_keypair_SOURCES = \
146 sptps_speed_SOURCES = \
155 $(chacha_poly1305_SOURCES)
157 ## Conditionally compile device drivers
166 sptps_test_SOURCES += \
169 sptps_keypair_SOURCES += \
175 tincd_SOURCES += linux/device.c
179 tincd_SOURCES += bsd/device.c
181 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
186 tincd_SOURCES += solaris/device.c
190 tincd_SOURCES += mingw/device.c mingw/common.h
194 tincd_SOURCES += cygwin/device.c
198 tincd_SOURCES += uml_device.c
202 tincd_SOURCES += vde_device.c
209 openssl/digest.c openssl/digest.h \
215 openssl/digest.c openssl/digest.h \
219 sptps_test_SOURCES += \
221 openssl/digest.c openssl/digest.h \
223 sptps_keypair_SOURCES += \
225 sptps_speed_SOURCES += \
227 openssl/digest.c openssl/digest.h \
234 gcrypt/digest.c gcrypt/digest.h \
240 gcrypt/digest.c gcrypt/digest.h \
244 sptps_test_SOURCES += \
247 gcrypt/digest.c gcrypt/digest.h \
249 sptps_keypair_SOURCES += \
251 sptps_speed_SOURCES += \
253 openssl/digest.c openssl/digest.h \
262 sptps_test_SOURCES += \
265 sptps_keypair_SOURCES += \
267 sptps_speed_SOURCES += \
274 tincd_SOURCES += upnp.h upnp.c
275 tincd_LDADD = $(MINIUPNPC_LIBS)
276 tincd_LDFLAGS = -pthread
279 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
280 sptps_speed_LDADD = -lrt
282 LIBS = @LIBS@ -lm $(CODE_COVERAGE_LIBS)
288 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DRUNSTATEDIR=\"$(runstatedir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote. $(CODE_COVERAGE_CFLAGS)
289 AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)