Start of "Simple Peer-To-Peer Security" protocol.
[tinc] / src / Makefile.am
1 ## Produce this file with automake to get Makefile.in
2
3 sbin_PROGRAMS = tincd tincctl sptps_test
4
5 EXTRA_DIST = linux bsd solaris cygwin mingw raw_socket uml_socket openssl gcrypt
6
7 tincd_SOURCES = \
8         utils.c getopt.c getopt1.c list.c splay_tree.c dropin.c fake-getaddrinfo.c fake-getnameinfo.c \
9         buffer.c conf.c connection.c control.c edge.c graph.c logger.c meta.c net.c net_packet.c net_setup.c \
10         net_socket.c netutl.c node.c process.c protocol.c protocol_auth.c protocol_edge.c protocol_misc.c \
11         protocol_key.c protocol_subnet.c route.c subnet.c tincd.c
12
13 nodist_tincd_SOURCES = \
14         device.c cipher.c crypto.c ecdh.c ecdsa.c digest.c prf.c rsa.c
15
16 tincctl_SOURCES = \
17         utils.c getopt.c getopt1.c dropin.c \
18         list.c tincctl.c top.c
19
20 nodist_tincctl_SOURCES = \
21         ecdsagen.c rsagen.c
22
23 sptps_test_SOURCES = \
24         logger.c cipher.c crypto.c ecdh.c ecdsa.c digest.c prf.c \
25         sptps.c sptps_test.c
26
27 if TUNEMU
28 tincd_SOURCES += bsd/tunemu.c
29 endif
30
31 tincctl_LDADD = $(CURSES_LIBS)
32
33 DEFAULT_INCLUDES =
34
35 INCLUDES = @INCLUDES@ -I$(top_builddir)
36
37 noinst_HEADERS = \
38         xalloc.h utils.h getopt.h list.h splay_tree.h dropin.h fake-getaddrinfo.h fake-getnameinfo.h fake-gai-errnos.h ipv6.h ipv4.h ethernet.h \
39         buffer.h conf.h connection.h control.h control_common.h device.h edge.h graph.h logger.h meta.h net.h netutl.h node.h process.h \
40         protocol.h route.h subnet.h tincctl.h top.h bsd/tunemu.h
41
42 nodist_noinst_HEADERS = \
43         cipher.h crypto.h ecdh.h ecdsa.h digest.h prf.h rsa.h ecdsagen.h rsagen.h
44
45 LIBS = @LIBS@ @LIBGCRYPT_LIBS@
46
47 if TUNEMU
48 LIBS += -lpcap
49 endif
50
51 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"
52
53 dist-hook:
54         rm -f `find . -type l`