]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Reorder checks for libraries to allow ./configure LDFLAGS=-static.
[meshlink] / src / Makefile.am
1 ## Produce this file with automake to get Makefile.in
2
3 sbin_PROGRAMS = tincd
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 = conf.c connection.c edge.c event.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 subnet.c tincd.c
10
11 if TUNEMU
12 tincd_SOURCES += bsd/tunemu.c
13 endif
14
15 nodist_tincd_SOURCES = device.c
16
17 DEFAULT_INCLUDES =
18
19 INCLUDES = @INCLUDES@ -I$(top_builddir) -I$(top_srcdir)/lib
20
21 noinst_HEADERS = conf.h connection.h device.h edge.h event.h graph.h logger.h meta.h net.h netutl.h node.h process.h    \
22         protocol.h route.h subnet.h bsd/tunemu.h
23
24 LIBS = @LIBS@
25
26 if TUNEMU
27 LIBS += -lpcap
28 endif
29
30 tincd_LDADD = \
31         $(top_builddir)/lib/libvpn.a
32
33 AM_CFLAGS = @CFLAGS@ -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\"
34
35 dist-hook:
36         rm -f `find . -type l`