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 \
114 version.c version.h \
118 $(chacha_poly1305_SOURCES) \
124 ifconfig.c ifconfig.h \
126 invitation.c invitation.h \
129 splay_tree.c splay_tree.h \
135 subnet_parse.c subnet.h \
136 tincctl.c tincctl.h \
139 version.c version.h \
144 $(chacha_poly1305_SOURCES)
146 sptps_test_SOURCES = \
154 $(chacha_poly1305_SOURCES)
156 sptps_keypair_SOURCES = \
162 sptps_speed_SOURCES = \
171 $(chacha_poly1305_SOURCES)
173 ## Conditionally compile device drivers
182 sptps_test_SOURCES += \
185 sptps_keypair_SOURCES += \
191 tincd_SOURCES += linux/device.c
195 tincd_SOURCES += bsd/device.c
197 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
202 tincd_SOURCES += solaris/device.c
206 tincd_SOURCES += mingw/device.c mingw/common.h
210 tincd_SOURCES += uml_device.c
214 tincd_SOURCES += vde_device.c
219 openssl/cipher.c openssl/cipher.h \
221 openssl/digest.c openssl/digest.h \
225 openssl/cipher.c openssl/cipher.h \
227 openssl/digest.c openssl/digest.h \
231 sptps_test_SOURCES += \
233 openssl/digest.c openssl/digest.h \
235 sptps_keypair_SOURCES += \
237 sptps_speed_SOURCES += \
239 openssl/digest.c openssl/digest.h \
246 gcrypt/digest.c gcrypt/digest.h \
247 gcrypt/pem.c gcrypt/pem.h \
253 gcrypt/digest.c gcrypt/digest.h \
254 gcrypt/pem.c gcrypt/pem.h \
258 sptps_test_SOURCES += \
261 gcrypt/digest.c gcrypt/digest.h \
263 sptps_keypair_SOURCES += \
265 sptps_speed_SOURCES += \
267 gcrypt/digest.c gcrypt/digest.h \
276 sptps_test_SOURCES += \
279 sptps_keypair_SOURCES += \
281 sptps_speed_SOURCES += \
287 if WITH_LEGACY_PROTOCOL
288 tinc_SOURCES += digest.c
289 tincd_SOURCES += digest.c cipher.c
290 sptps_test_SOURCES += digest.c
291 sptps_speed_SOURCES += digest.c
295 tincd_SOURCES += upnp.h upnp.c
296 tincd_LDADD = $(MINIUPNPC_LIBS)
297 tincd_LDFLAGS = -pthread
301 sptps_test_LDFLAGS = -pthread
304 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
305 sptps_speed_LDADD = -lrt
307 LIBS = @LIBS@ -lm $(CODE_COVERAGE_LIBS)
313 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DRUNSTATEDIR=\"$(runstatedir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote. $(CODE_COVERAGE_CFLAGS)
314 AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)