Check RAND_bytes() return value, fail when getting random fails.
[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         raw_socket_device.c \
44         route.c route.h \
45         subnet.c subnet.h \
46         tincd.c \
47         utils.c utils.h \
48         xalloc.h \
49         xmalloc.c
50
51 if LINUX
52 tincd_SOURCES += linux/device.c
53 endif
54
55 if BSD
56 tincd_SOURCES += bsd/device.c
57 if TUNEMU
58 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
59 endif
60 endif
61
62 if SOLARIS
63 tincd_SOURCES += solaris/device.c
64 endif
65
66 if MINGW
67 tincd_SOURCES += mingw/device.c mingw/common.h
68 endif
69
70 if CYGWIN
71 tincd_SOURCES += cygwin/device.c
72 endif
73
74 if UML
75 tincd_SOURCES += uml_device.c
76 endif
77
78 if VDE
79 tincd_SOURCES += vde_device.c
80 endif
81
82 if TUNEMU
83 LIBS += -lpcap
84 endif
85
86 AM_CPPFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\"