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