Fix compatibility with TAP-Win32 9.0.0.21 and later.
[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         getopt.c getopt.h \
21         getopt1.c \
22         graph.c graph.h \
23         ipv4.h \
24         ipv6.h \
25         list.c list.h \
26         logger.c logger.h \
27         meta.c meta.h \
28         multicast_device.c \
29         net.c net.h \
30         net_packet.c \
31         net_setup.c \
32         net_socket.c \
33         netutl.c netutl.h \
34         node.c node.h \
35         pidfile.c pidfile.h \
36         process.c process.h \
37         protocol.c protocol.h \
38         protocol_auth.c \
39         protocol_edge.c \
40         protocol_misc.c \
41         protocol_key.c \
42         protocol_subnet.c \
43         proxy.c proxy.h \
44         raw_socket_device.c \
45         route.c route.h \
46         subnet.c subnet.h \
47         tincd.c \
48         utils.c utils.h \
49         xalloc.h \
50         xmalloc.c
51
52 if LINUX
53 tincd_SOURCES += linux/device.c
54 endif
55
56 if BSD
57 tincd_SOURCES += bsd/device.c
58 if TUNEMU
59 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
60 endif
61 endif
62
63 if SOLARIS
64 tincd_SOURCES += solaris/device.c
65 endif
66
67 if MINGW
68 tincd_SOURCES += mingw/device.c mingw/common.h
69 endif
70
71 if CYGWIN
72 tincd_SOURCES += cygwin/device.c
73 endif
74
75 if UML
76 tincd_SOURCES += uml_device.c
77 endif
78
79 if VDE
80 tincd_SOURCES += vde_device.c
81 endif
82
83 if TUNEMU
84 LIBS += -lpcap
85 endif
86
87 AM_CPPFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\"