Merge branch 'master' of git://tinc-vpn.org/tinc into 1.1
[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 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         dummy_device.c raw_socket_device.c
13         
14 if UML
15 tincd_SOURCES += uml_device.c
16 endif
17
18 if VDE
19 tincd_SOURCES += vde_device.c
20 endif
21
22 nodist_tincd_SOURCES = \
23         device.c cipher.c crypto.c ecdh.c ecdsa.c digest.c prf.c rsa.c
24
25 tincctl_SOURCES = \
26         utils.c getopt.c getopt1.c dropin.c \
27         list.c tincctl.c top.c
28
29 nodist_tincctl_SOURCES = \
30         ecdsagen.c rsagen.c
31
32 sptps_test_SOURCES = \
33         logger.c cipher.c crypto.c ecdh.c ecdsa.c digest.c prf.c \
34         sptps.c sptps_test.c
35
36 if TUNEMU
37 tincd_SOURCES += bsd/tunemu.c
38 endif
39
40 tincctl_LDADD = $(CURSES_LIBS)
41
42 DEFAULT_INCLUDES =
43
44 INCLUDES = @INCLUDES@ -I$(top_builddir)
45
46 noinst_HEADERS = \
47         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 \
48         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 \
49         protocol.h route.h subnet.h tincctl.h top.h bsd/tunemu.h
50
51 nodist_noinst_HEADERS = \
52         cipher.h crypto.h ecdh.h ecdsa.h digest.h prf.h rsa.h ecdsagen.h rsagen.h
53
54 LIBS = @LIBS@ @LIBGCRYPT_LIBS@
55
56 if TUNEMU
57 LIBS += -lpcap
58 endif
59
60 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"
61
62 dist-hook:
63         rm -f `find . -type l`