60709fb73c5b9248892a6b8f1d8e23a5dfe72fee
[tinc] / src / Makefile.am
1 ## Produce this file with automake to get Makefile.in
2
3 sbin_PROGRAMS = tincd tincctl
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 cipher.c conf.c connection.c control.c crypto.c digest.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 rsa.c subnet.c tincd.c
12
13 tincctl_SOURCES = \
14         utils.c getopt.c getopt1.c dropin.c \
15         list.c tincctl.c rsagen.c
16
17 if TUNEMU
18 tincd_SOURCES += bsd/tunemu.c
19 endif
20
21 if CURSES
22 tincctl_SOURCES += top.c
23 tincctl_LDADD = $(CURSES_LIBS)
24 endif
25
26 nodist_tincd_SOURCES = device.c
27
28 DEFAULT_INCLUDES =
29
30 INCLUDES = @INCLUDES@ -I$(top_builddir)
31
32 noinst_HEADERS = \
33         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 \
34         buffer.h cipher.h conf.h connection.h control.h control_common.h crypto.h device.h digest.h edge.h graph.h logger.h meta.h net.h netutl.h node.h process.h \
35         protocol.h route.h rsa.h rsagen.h subnet.h bsd/tunemu.h
36
37 LIBS = @LIBS@ @LIBGCRYPT_LIBS@
38
39 if TUNEMU
40 LIBS += -lpcap
41 endif
42
43 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"
44
45 dist-hook:
46         rm -f `find . -type l`