1 ## Produce this file with automake to get Makefile.in
3 sbin_PROGRAMS = tincd tinc sptps_test sptps_keypair
5 CLEANFILES = version_git.h
10 version_git.h: version-stamp
12 @-(cd $(srcdir) && git describe 2>/dev/null >/dev/null) && echo '#define GIT_DESCRIPTION "'`(cd $(srcdir) && git describe) | sed 's/release-//'`'"' >$@ ||:
13 ${srcdir}/version.c: version_git.h
15 ## Now a hack to appease some versions of BSD make that don't understand that "./foo" is the same as "foo".
17 version.c: ${srcdir}/version.c
21 sbin_PROGRAMS += sptps_speed
25 ed25519/add_scalar.c \
27 ed25519/fe.c ed25519/fe.h \
29 ed25519/ge.c ed25519/ge.h \
30 ed25519/key_exchange.c \
32 ed25519/precomp_data.h \
33 ed25519/sc.c ed25519/sc.h \
34 ed25519/sha512.c ed25519/sha512.h \
38 chacha_poly1305_SOURCES = \
39 chacha-poly1305/chacha.c chacha-poly1305/chacha.h \
40 chacha-poly1305/chacha-poly1305.c chacha-poly1305/chacha-poly1305.h \
41 chacha-poly1305/poly1305.c chacha-poly1305/poly1305.h
47 connection.c connection.h \
79 protocol.c protocol.h \
90 splay_tree.c splay_tree.h \
102 $(chacha_poly1305_SOURCES)
107 ifconfig.c ifconfig.h \
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
162 sptps_test_SOURCES += \
165 sptps_keypair_SOURCES += \
171 tincd_SOURCES += linux/device.c
175 tincd_SOURCES += bsd/device.c
177 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
182 tincd_SOURCES += solaris/device.c
186 tincd_SOURCES += mingw/device.c mingw/common.h
190 tincd_SOURCES += cygwin/device.c
194 tincd_SOURCES += uml_device.c
198 tincd_SOURCES += vde_device.c
205 openssl/digest.c openssl/digest.h \
211 openssl/digest.c openssl/digest.h \
215 sptps_test_SOURCES += \
217 openssl/digest.c openssl/digest.h \
219 sptps_keypair_SOURCES += \
221 sptps_speed_SOURCES += \
223 openssl/digest.c openssl/digest.h \
230 gcrypt/digest.c gcrypt/digest.h \
236 gcrypt/digest.c gcrypt/digest.h \
240 sptps_test_SOURCES += \
243 gcrypt/digest.c gcrypt/digest.h \
245 sptps_keypair_SOURCES += \
247 sptps_speed_SOURCES += \
249 openssl/digest.c openssl/digest.h \
258 sptps_test_SOURCES += \
261 sptps_keypair_SOURCES += \
263 sptps_speed_SOURCES += \
270 tincd_SOURCES += upnp.h upnp.c
271 tincd_LDADD = $(MINIUPNPC_LIBS)
272 tincd_LDFLAGS = -pthread
275 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
276 sptps_speed_LDADD = -lrt
284 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote.