Merge branch 'master' into 1.1
[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/device.c bsd/device.c solaris/device.c cygwin/device.c mingw/device.c mingw/common.h raw_socket/device.c uml_socket/device.c
6
7 tincd_SOURCES = 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  \
8         net_socket.c netutl.c node.c process.c protocol.c protocol_auth.c protocol_edge.c protocol_misc.c       \
9         protocol_key.c protocol_subnet.c route.c rsa.c subnet.c tincd.c
10
11 tincctl_SOURCES = tincctl.c rsagen.c
12
13 if TUNEMU
14 tincd_SOURCES += bsd/tunemu.c
15 endif
16
17 nodist_tincd_SOURCES = device.c
18
19 DEFAULT_INCLUDES =
20
21 INCLUDES = @INCLUDES@ -I$(top_builddir) -I$(top_srcdir)/lib
22
23 noinst_HEADERS = cipher.h conf.h connection.h control.h crypto.h device.h digest.h edge.h graph.h logger.h meta.h net.h netutl.h node.h process.h       \
24         protocol.h route.h rsa.h rsagen.h subnet.h bsd/tunemu.h
25
26 LIBS = @LIBS@ @LIBGCRYPT_LIBS@
27
28 if TUNEMU
29 LIBS += -lpcap
30 endif
31
32 tincd_LDADD = \
33         $(top_builddir)/lib/libvpn.a
34
35 tincctl_LDADD = \
36         $(top_builddir)/lib/libvpn.a
37
38 AM_CFLAGS = @CFLAGS@ -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"
39
40 dist-hook:
41         rm -f `find . -type l`