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
19 ed25519/add_scalar.c \
21 ed25519/fe.c ed25519/fe.h \
23 ed25519/ge.c ed25519/ge.h \
24 ed25519/key_exchange.c \
26 ed25519/precomp_data.h \
27 ed25519/sc.c ed25519/sc.h \
28 ed25519/sha512.c ed25519/sha512.h \
32 chacha_poly1305_SOURCES = \
33 chacha-poly1305/chacha.c chacha-poly1305/chacha.h \
34 chacha-poly1305/chacha-poly1305.c chacha-poly1305/chacha-poly1305.h \
35 chacha-poly1305/poly1305.c chacha-poly1305/poly1305.h
41 connection.c connection.h \
56 fake-getaddrinfo.c fake-getaddrinfo.h \
57 fake-getnameinfo.c fake-getnameinfo.h \
78 protocol.c protocol.h \
89 splay_tree.c splay_tree.h \
101 $(chacha_poly1305_SOURCES)
109 invitation.c invitation.h \
115 subnet_parse.c subnet.h \
116 tincctl.c tincctl.h \
119 version.c version.h \
124 $(chacha_poly1305_SOURCES)
126 sptps_test_SOURCES = \
134 $(chacha_poly1305_SOURCES)
136 sptps_keypair_SOURCES = \
142 sptps_speed_SOURCES = \
151 $(chacha_poly1305_SOURCES)
153 ## Conditionally compile device drivers
156 tincd_SOURCES += linux/device.c
160 tincd_SOURCES += bsd/device.c
162 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
167 tincd_SOURCES += solaris/device.c
171 tincd_SOURCES += mingw/device.c mingw/common.h
175 tincd_SOURCES += cygwin/device.c
179 tincd_SOURCES += uml_device.c
183 tincd_SOURCES += vde_device.c
190 openssl/digest.c openssl/digest.h \
196 openssl/digest.c openssl/digest.h \
200 sptps_test_SOURCES += \
202 openssl/digest.c openssl/digest.h \
204 sptps_keypair_SOURCES += \
206 sptps_speed_SOURCES += \
208 openssl/digest.c openssl/digest.h \
215 gcrypt/digest.c gcrypt/digest.h \
221 gcrypt/digest.c gcrypt/digest.h \
225 sptps_test_SOURCES += \
228 gcrypt/digest.c gcrypt/digest.h \
230 sptps_keypair_SOURCES += \
232 sptps_speed_SOURCES += \
234 openssl/digest.c openssl/digest.h \
243 sptps_test_SOURCES += \
246 sptps_keypair_SOURCES += \
248 sptps_speed_SOURCES += \
254 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
255 sptps_speed_LDADD = -lrt
263 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote.