1 ## Produce this file with automake to get Makefile.in
3 sbin_PROGRAMS = tincd tinc sptps_test sptps_keypair
5 ## Make sure version.c is always rebuilt with the latest git information
6 .PHONY: ${srcdir}/version.c version_git.h
9 -(cd $(srcdir) && git describe) && echo '#define GIT_DESCRIPTION "'`(cd $(srcdir) && git describe) | sed 's/release-//'`'"' >$@
10 ${srcdir}/version.c: version_git.h
13 sbin_PROGRAMS += sptps_speed
17 ed25519/add_scalar.c \
19 ed25519/fe.c ed25519/fe.h \
21 ed25519/ge.c ed25519/ge.h \
22 ed25519/key_exchange.c \
24 ed25519/precomp_data.h \
25 ed25519/sc.c ed25519/sc.h \
26 ed25519/sha512.c ed25519/sha512.h \
30 chacha_poly1305_SOURCES = \
31 chacha-poly1305/chacha.c chacha-poly1305/chacha.h \
32 chacha-poly1305/chacha-poly1305.c chacha-poly1305/chacha-poly1305.h \
33 chacha-poly1305/poly1305.c chacha-poly1305/poly1305.h
39 connection.c connection.h \
54 fake-getaddrinfo.c fake-getaddrinfo.h \
55 fake-getnameinfo.c fake-getnameinfo.h \
74 protocol.c protocol.h \
85 splay_tree.c splay_tree.h \
97 $(chacha_poly1305_SOURCES)
105 invitation.c invitation.h \
111 subnet_parse.c subnet.h \
112 tincctl.c tincctl.h \
115 version.c version.h \
120 $(chacha_poly1305_SOURCES)
122 sptps_test_SOURCES = \
130 $(chacha_poly1305_SOURCES)
132 sptps_keypair_SOURCES = \
138 sptps_speed_SOURCES = \
147 $(chacha_poly1305_SOURCES)
149 ## Conditionally compile device drivers
158 sptps_test_SOURCES += \
161 sptps_keypair_SOURCES += \
167 tincd_SOURCES += linux/device.c
171 tincd_SOURCES += bsd/device.c
173 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
178 tincd_SOURCES += solaris/device.c
182 tincd_SOURCES += mingw/device.c mingw/common.h
186 tincd_SOURCES += cygwin/device.c
190 tincd_SOURCES += uml_device.c
194 tincd_SOURCES += vde_device.c
201 openssl/digest.c openssl/digest.h \
207 openssl/digest.c openssl/digest.h \
211 sptps_test_SOURCES += \
213 openssl/digest.c openssl/digest.h \
215 sptps_keypair_SOURCES += \
217 sptps_speed_SOURCES += \
219 openssl/digest.c openssl/digest.h \
226 gcrypt/digest.c gcrypt/digest.h \
232 gcrypt/digest.c gcrypt/digest.h \
236 sptps_test_SOURCES += \
239 gcrypt/digest.c gcrypt/digest.h \
241 sptps_keypair_SOURCES += \
243 sptps_speed_SOURCES += \
245 openssl/digest.c openssl/digest.h \
254 sptps_test_SOURCES += \
257 sptps_keypair_SOURCES += \
259 sptps_speed_SOURCES += \
266 tincd_SOURCES += upnp.h upnp.c
267 tincd_LDADD = $(MINIUPNPC_LIBS)
268 tincd_LDFLAGS = -pthread
271 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
272 sptps_speed_LDADD = -lrt
280 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote.