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 \
59 conf_net.c conf_net.h \
60 connection.c connection.h \
94 protocol.c protocol.h \
100 raw_socket_device.c \
105 splay_tree.c splay_tree.h \
113 version.c version.h \
117 $(chacha_poly1305_SOURCES) \
123 ifconfig.c ifconfig.h \
125 invitation.c invitation.h \
128 splay_tree.c splay_tree.h \
134 subnet_parse.c subnet.h \
135 tincctl.c tincctl.h \
138 version.c version.h \
143 $(chacha_poly1305_SOURCES)
145 sptps_test_SOURCES = \
153 $(chacha_poly1305_SOURCES)
155 sptps_keypair_SOURCES = \
161 sptps_speed_SOURCES = \
170 $(chacha_poly1305_SOURCES)
172 ## Conditionally compile device drivers
181 sptps_test_SOURCES += \
184 sptps_keypair_SOURCES += \
190 tincd_SOURCES += linux/device.c
194 tincd_SOURCES += bsd/device.c
196 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
201 tincd_SOURCES += solaris/device.c
205 tincd_SOURCES += mingw/device.c mingw/common.h
209 tincd_SOURCES += uml_device.c
213 tincd_SOURCES += vde_device.c
220 openssl/digest.c openssl/digest.h \
226 openssl/digest.c openssl/digest.h \
230 sptps_test_SOURCES += \
232 openssl/digest.c openssl/digest.h \
234 sptps_keypair_SOURCES += \
236 sptps_speed_SOURCES += \
238 openssl/digest.c openssl/digest.h \
245 gcrypt/digest.c gcrypt/digest.h \
251 gcrypt/digest.c gcrypt/digest.h \
255 sptps_test_SOURCES += \
258 gcrypt/digest.c gcrypt/digest.h \
260 sptps_keypair_SOURCES += \
262 sptps_speed_SOURCES += \
264 openssl/digest.c openssl/digest.h \
273 sptps_test_SOURCES += \
276 sptps_keypair_SOURCES += \
278 sptps_speed_SOURCES += \
285 tincd_SOURCES += upnp.h upnp.c
286 tincd_LDADD = $(MINIUPNPC_LIBS)
287 tincd_LDFLAGS = -pthread
291 sptps_test_LDFLAGS = -pthread
294 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
295 sptps_speed_LDADD = -lrt
297 LIBS = @LIBS@ -lm $(CODE_COVERAGE_LIBS)
303 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DRUNSTATEDIR=\"$(runstatedir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote. $(CODE_COVERAGE_CFLAGS)
304 AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)