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)
108 invitation.c invitation.h \
114 subnet_parse.c subnet.h \
115 tincctl.c tincctl.h \
118 version.c version.h \
123 $(chacha_poly1305_SOURCES)
125 sptps_test_SOURCES = \
133 $(chacha_poly1305_SOURCES)
135 sptps_keypair_SOURCES = \
141 sptps_speed_SOURCES = \
150 $(chacha_poly1305_SOURCES)
152 ## Conditionally compile device drivers
161 sptps_test_SOURCES += \
164 sptps_keypair_SOURCES += \
170 tincd_SOURCES += linux/device.c
174 tincd_SOURCES += bsd/device.c
176 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
181 tincd_SOURCES += solaris/device.c
185 tincd_SOURCES += mingw/device.c mingw/common.h
189 tincd_SOURCES += cygwin/device.c
193 tincd_SOURCES += uml_device.c
197 tincd_SOURCES += vde_device.c
204 openssl/digest.c openssl/digest.h \
210 openssl/digest.c openssl/digest.h \
214 sptps_test_SOURCES += \
216 openssl/digest.c openssl/digest.h \
218 sptps_keypair_SOURCES += \
220 sptps_speed_SOURCES += \
222 openssl/digest.c openssl/digest.h \
229 gcrypt/digest.c gcrypt/digest.h \
235 gcrypt/digest.c gcrypt/digest.h \
239 sptps_test_SOURCES += \
242 gcrypt/digest.c gcrypt/digest.h \
244 sptps_keypair_SOURCES += \
246 sptps_speed_SOURCES += \
248 openssl/digest.c openssl/digest.h \
257 sptps_test_SOURCES += \
260 sptps_keypair_SOURCES += \
262 sptps_speed_SOURCES += \
269 tincd_SOURCES += upnp.h upnp.c
270 tincd_LDADD = $(MINIUPNPC_LIBS)
271 tincd_LDFLAGS = -pthread
274 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
275 sptps_speed_LDADD = -lrt
283 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote.