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 >/dev/null) && 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)
103 invitation.c invitation.h \
109 subnet_parse.c subnet.h \
110 tincctl.c tincctl.h \
113 version.c version.h \
118 $(chacha_poly1305_SOURCES)
120 sptps_test_SOURCES = \
128 $(chacha_poly1305_SOURCES)
130 sptps_keypair_SOURCES = \
136 sptps_speed_SOURCES = \
145 $(chacha_poly1305_SOURCES)
147 ## Conditionally compile device drivers
156 sptps_test_SOURCES += \
159 sptps_keypair_SOURCES += \
165 tincd_SOURCES += linux/device.c
169 tincd_SOURCES += bsd/device.c
171 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
176 tincd_SOURCES += solaris/device.c
180 tincd_SOURCES += mingw/device.c mingw/common.h
184 tincd_SOURCES += cygwin/device.c
188 tincd_SOURCES += uml_device.c
192 tincd_SOURCES += vde_device.c
199 openssl/digest.c openssl/digest.h \
205 openssl/digest.c openssl/digest.h \
209 sptps_test_SOURCES += \
211 openssl/digest.c openssl/digest.h \
213 sptps_keypair_SOURCES += \
215 sptps_speed_SOURCES += \
217 openssl/digest.c openssl/digest.h \
224 gcrypt/digest.c gcrypt/digest.h \
230 gcrypt/digest.c gcrypt/digest.h \
234 sptps_test_SOURCES += \
237 gcrypt/digest.c gcrypt/digest.h \
239 sptps_keypair_SOURCES += \
241 sptps_speed_SOURCES += \
243 openssl/digest.c openssl/digest.h \
252 sptps_test_SOURCES += \
255 sptps_keypair_SOURCES += \
257 sptps_speed_SOURCES += \
264 tincd_SOURCES += upnp.h upnp.c
265 tincd_LDADD = $(MINIUPNPC_LIBS)
266 tincd_LDFLAGS = -pthread
269 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
270 sptps_speed_LDADD = -lrt
278 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote.