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: version.c version_git.h
8 echo "#define GIT_DESCRIPTION \"`cd $(@D) && git describe || echo UNKNOWN`\"" >$@
9 version.c: version_git.h
12 sbin_PROGRAMS += sptps_speed
18 ed25519/add_scalar.c \
20 ed25519/fe.c ed25519/fe.h \
22 ed25519/ge.c ed25519/ge.h \
23 ed25519/key_exchange.c \
25 ed25519/precomp_data.h \
26 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 \
97 version.c version.h version_git.h \
99 $(chacha_poly1305_SOURCES)
106 invitation.c invitation.h \
112 subnet_parse.c subnet.h \
113 tincctl.c tincctl.h \
116 version.c version.h version_git.h \
118 $(chacha_poly1305_SOURCES)
120 sptps_test_SOURCES = \
126 $(chacha_poly1305_SOURCES)
128 sptps_keypair_SOURCES = \
133 sptps_speed_SOURCES = \
139 $(chacha_poly1305_SOURCES)
141 ## Conditionally compile device drivers
144 tincd_SOURCES += linux/device.c
148 tincd_SOURCES += bsd/device.c
150 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
155 tincd_SOURCES += solaris/device.c
159 tincd_SOURCES += mingw/device.c mingw/common.h
163 tincd_SOURCES += cygwin/device.c
167 tincd_SOURCES += uml_device.c
171 tincd_SOURCES += vde_device.c
178 openssl/digest.c openssl/digest.h \
186 openssl/digest.c openssl/digest.h \
193 sptps_test_SOURCES += \
195 openssl/digest.c openssl/digest.h \
199 sptps_keypair_SOURCES += \
202 sptps_speed_SOURCES += \
204 openssl/digest.c openssl/digest.h \
215 gcrypt/digest.c gcrypt/digest.h \
223 gcrypt/digest.c gcrypt/digest.h \
230 sptps_test_SOURCES += \
233 gcrypt/digest.c gcrypt/digest.h \
239 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
240 sptps_speed_LDADD = -lrt
248 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"