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 \
81 protocol.c protocol.h \
92 splay_tree.c splay_tree.h \
100 version.c version.h \
104 $(chacha_poly1305_SOURCES)
109 ifconfig.c ifconfig.h \
111 invitation.c invitation.h \
117 subnet_parse.c subnet.h \
118 tincctl.c tincctl.h \
121 version.c version.h \
126 $(chacha_poly1305_SOURCES)
128 sptps_test_SOURCES = \
136 $(chacha_poly1305_SOURCES)
138 sptps_keypair_SOURCES = \
144 sptps_speed_SOURCES = \
153 $(chacha_poly1305_SOURCES)
155 ## Conditionally compile device drivers
164 sptps_test_SOURCES += \
167 sptps_keypair_SOURCES += \
173 tincd_SOURCES += linux/device.c
177 tincd_SOURCES += bsd/device.c
179 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
184 tincd_SOURCES += solaris/device.c
188 tincd_SOURCES += mingw/device.c mingw/common.h
192 tincd_SOURCES += cygwin/device.c
196 tincd_SOURCES += uml_device.c
200 tincd_SOURCES += vde_device.c
207 openssl/digest.c openssl/digest.h \
213 openssl/digest.c openssl/digest.h \
217 sptps_test_SOURCES += \
219 openssl/digest.c openssl/digest.h \
221 sptps_keypair_SOURCES += \
223 sptps_speed_SOURCES += \
225 openssl/digest.c openssl/digest.h \
232 gcrypt/digest.c gcrypt/digest.h \
238 gcrypt/digest.c gcrypt/digest.h \
242 sptps_test_SOURCES += \
245 gcrypt/digest.c gcrypt/digest.h \
247 sptps_keypair_SOURCES += \
249 sptps_speed_SOURCES += \
251 openssl/digest.c openssl/digest.h \
260 sptps_test_SOURCES += \
263 sptps_keypair_SOURCES += \
265 sptps_speed_SOURCES += \
272 tincd_SOURCES += upnp.h upnp.c
273 tincd_LDADD = $(MINIUPNPC_LIBS)
274 tincd_LDFLAGS = -pthread
277 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
278 sptps_speed_LDADD = -lrt
286 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" -iquote.