1 ## Produce this file with automake to get Makefile.in
3 sbin_PROGRAMS = tincd tinc
4 EXTRA_PROGRAMS = sptps_test sptps_keypair
6 CLEANFILES = version_git.h
11 version_git.h: version-stamp
13 @-(cd $(srcdir) && git describe 2>/dev/null >/dev/null) && echo '#define GIT_DESCRIPTION "'`(cd $(srcdir) && git describe) | sed 's/release-//'`'"' >$@ ||:
14 ${srcdir}/version.c: version_git.h
16 ## Now a hack to appease some versions of BSD make that don't understand that "./foo" is the same as "foo".
18 version.c: ${srcdir}/version.c
22 EXTRA_PROGRAMS += sptps_speed
26 ed25519/add_scalar.c \
28 ed25519/fe.c ed25519/fe.h \
30 ed25519/ge.c ed25519/ge.h \
31 ed25519/key_exchange.c \
33 ed25519/precomp_data.h \
34 ed25519/sc.c ed25519/sc.h \
35 ed25519/sha512.c ed25519/sha512.h \
39 chacha_poly1305_SOURCES = \
40 chacha-poly1305/chacha.c chacha-poly1305/chacha.h \
41 chacha-poly1305/chacha-poly1305.c chacha-poly1305/chacha-poly1305.h \
42 chacha-poly1305/poly1305.c chacha-poly1305/poly1305.h
48 connection.c connection.h \
80 protocol.c protocol.h \
91 splay_tree.c splay_tree.h \
103 $(chacha_poly1305_SOURCES)
108 ifconfig.c ifconfig.h \
110 invitation.c invitation.h \
116 subnet_parse.c subnet.h \
117 tincctl.c tincctl.h \
120 version.c version.h \
125 $(chacha_poly1305_SOURCES)
127 sptps_test_SOURCES = \
135 $(chacha_poly1305_SOURCES)
137 sptps_keypair_SOURCES = \
143 sptps_speed_SOURCES = \
152 $(chacha_poly1305_SOURCES)
154 ## Conditionally compile device drivers
163 sptps_test_SOURCES += \
166 sptps_keypair_SOURCES += \
172 tincd_SOURCES += linux/device.c
176 tincd_SOURCES += bsd/device.c
178 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
183 tincd_SOURCES += solaris/device.c
187 tincd_SOURCES += mingw/device.c mingw/common.h
191 tincd_SOURCES += cygwin/device.c
195 tincd_SOURCES += uml_device.c
199 tincd_SOURCES += vde_device.c
206 openssl/digest.c openssl/digest.h \
212 openssl/digest.c openssl/digest.h \
216 sptps_test_SOURCES += \
218 openssl/digest.c openssl/digest.h \
220 sptps_keypair_SOURCES += \
222 sptps_speed_SOURCES += \
224 openssl/digest.c openssl/digest.h \
231 gcrypt/digest.c gcrypt/digest.h \
237 gcrypt/digest.c gcrypt/digest.h \
241 sptps_test_SOURCES += \
244 gcrypt/digest.c gcrypt/digest.h \
246 sptps_keypair_SOURCES += \
248 sptps_speed_SOURCES += \
250 openssl/digest.c openssl/digest.h \
259 sptps_test_SOURCES += \
262 sptps_keypair_SOURCES += \
264 sptps_speed_SOURCES += \
271 tincd_SOURCES += upnp.h upnp.c
272 tincd_LDADD = $(MINIUPNPC_LIBS)
273 tincd_LDFLAGS = -pthread
276 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
277 sptps_speed_LDADD = -lrt
285 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote.