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 \
76 protocol.c protocol.h \
87 splay_tree.c splay_tree.h \
99 $(chacha_poly1305_SOURCES)
107 invitation.c invitation.h \
113 subnet_parse.c subnet.h \
114 tincctl.c tincctl.h \
117 version.c version.h \
122 $(chacha_poly1305_SOURCES)
124 sptps_test_SOURCES = \
132 $(chacha_poly1305_SOURCES)
134 sptps_keypair_SOURCES = \
140 sptps_speed_SOURCES = \
149 $(chacha_poly1305_SOURCES)
151 ## Conditionally compile device drivers
154 tincd_SOURCES += linux/device.c
158 tincd_SOURCES += bsd/device.c
160 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
165 tincd_SOURCES += solaris/device.c
169 tincd_SOURCES += mingw/device.c mingw/common.h
173 tincd_SOURCES += cygwin/device.c
177 tincd_SOURCES += uml_device.c
181 tincd_SOURCES += vde_device.c
188 openssl/digest.c openssl/digest.h \
194 openssl/digest.c openssl/digest.h \
198 sptps_test_SOURCES += \
200 openssl/digest.c openssl/digest.h \
202 sptps_keypair_SOURCES += \
204 sptps_speed_SOURCES += \
206 openssl/digest.c openssl/digest.h \
213 gcrypt/digest.c gcrypt/digest.h \
219 gcrypt/digest.c gcrypt/digest.h \
223 sptps_test_SOURCES += \
226 gcrypt/digest.c gcrypt/digest.h \
228 sptps_keypair_SOURCES += \
230 sptps_speed_SOURCES += \
232 openssl/digest.c openssl/digest.h \
241 sptps_test_SOURCES += \
244 sptps_keypair_SOURCES += \
246 sptps_speed_SOURCES += \
253 tincd_SOURCES += upnp.h upnp.c
254 tincd_LDADD = $(MINIUPNPC_LIBS)
255 tincd_LDFLAGS = -pthread
258 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
259 sptps_speed_LDADD = -lrt
267 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote.