]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Merge branch 'master' into 1.1
[meshlink] / 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         xmalloc.c utils.c getopt.c getopt1.c list.c splay_tree.c dropin.c fake-getaddrinfo.c fake-getnameinfo.c \
9         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         xmalloc.c utils.c getopt.c getopt1.c dropin.c \
15         tincctl.c rsagen.c
16
17 if TUNEMU
18 tincd_SOURCES += bsd/tunemu.c
19 endif
20
21 nodist_tincd_SOURCES = device.c
22
23 DEFAULT_INCLUDES =
24
25 INCLUDES = @INCLUDES@ -I$(top_builddir)
26
27 noinst_HEADERS = \
28         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 \
29         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 \
30         protocol.h route.h rsa.h rsagen.h subnet.h bsd/tunemu.h
31
32 LIBS = @LIBS@ @LIBGCRYPT_LIBS@
33
34 if TUNEMU
35 LIBS += -lpcap
36 endif
37
38 AM_CFLAGS = @CFLAGS@ -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"
39
40 dist-hook:
41         rm -f `find . -type l`