11f701cc8ccf2e9f0278407f304579036a6d253d
[tinc] / src / Makefile.am
1 ## Produce this file with automake to get Makefile.in
2
3 sbin_PROGRAMS = tincd
4
5 tincd_SOURCES = \
6         have.h \
7         system.h \
8         avl_tree.c avl_tree.h \
9         conf.c conf.h \
10         connection.c connection.h \
11         device.h \
12         dropin.c dropin.h \
13         dummy_device.c \
14         edge.c edge.h \
15         ethernet.h \
16         event.c event.h \
17         fake-gai-errnos.h \
18         fake-getaddrinfo.c fake-getaddrinfo.h \
19         fake-getnameinfo.c fake-getnameinfo.h \
20         graph.c graph.h \
21         ipv4.h \
22         ipv6.h \
23         list.c list.h \
24         logger.c logger.h \
25         meta.c meta.h \
26         multicast_device.c \
27         net.c net.h \
28         net_packet.c \
29         net_setup.c \
30         net_socket.c \
31         netutl.c netutl.h \
32         node.c node.h \
33         pidfile.c pidfile.h \
34         process.c process.h \
35         protocol.c protocol.h \
36         protocol_auth.c \
37         protocol_edge.c \
38         protocol_misc.c \
39         protocol_key.c \
40         protocol_subnet.c \
41         proxy.c proxy.h \
42         raw_socket_device.c \
43         route.c route.h \
44         subnet.c subnet.h \
45         tincd.c \
46         utils.c utils.h \
47         xalloc.h
48
49 if !GETOPT
50 tincd_SOURCES += \
51         getopt.c getopt.h \
52         getopt1.c
53 endif
54
55 if LINUX
56 tincd_SOURCES += linux/device.c
57 endif
58
59 if BSD
60 tincd_SOURCES += bsd/device.c
61 if TUNEMU
62 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
63 endif
64 endif
65
66 if SOLARIS
67 tincd_SOURCES += solaris/device.c
68 endif
69
70 if MINGW
71 tincd_SOURCES += mingw/device.c mingw/common.h
72 endif
73
74 if CYGWIN
75 tincd_SOURCES += cygwin/device.c
76 endif
77
78 if UML
79 tincd_SOURCES += uml_device.c
80 endif
81
82 if VDE
83 tincd_SOURCES += vde_device.c
84 endif
85
86 if TUNEMU
87 LIBS += -lpcap
88 endif
89
90 AM_CPPFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -I $(abs_top_builddir)/