Better optional argument handling.
[tinc] / 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
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         dummy_device.c raw_socket_device.c multicast_device.c
11         
12 if UML
13 tincd_SOURCES += uml_device.c
14 endif
15
16 if VDE
17 tincd_SOURCES += vde_device.c
18 endif
19
20 if TUNEMU
21 tincd_SOURCES += bsd/tunemu.c
22 endif
23
24 nodist_tincd_SOURCES = device.c
25
26 DEFAULT_INCLUDES =
27
28 INCLUDES = @INCLUDES@ -I$(top_builddir) -I$(top_srcdir)/lib
29
30 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    \
31         protocol.h route.h subnet.h bsd/tunemu.h
32
33 LIBS = @LIBS@
34
35 if TUNEMU
36 LIBS += -lpcap
37 endif
38
39 tincd_LDADD = \
40         $(top_builddir)/lib/libvpn.a
41
42 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\"
43
44 dist-hook:
45         rm -f `find . -type l`