]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Update the documentation of the tinc command.
[meshlink] / src / Makefile.am
1 ## Produce this file with automake to get Makefile.in
2
3 sbin_PROGRAMS = tincd tinc sptps_test
4
5 if LINUX
6 sbin_PROGRAMS += sptps_speed
7 endif
8
9 DEFAULT_INCLUDES =
10
11 tincd_SOURCES = \
12         buffer.c buffer.h \
13         cipher.h \
14         conf.c conf.h \
15         connection.c connection.h \
16         control.c control.h \
17         control_common.h \
18         crypto.h \
19         device.h \
20         digest.h \
21         dropin.c dropin.h \
22         dummy_device.c \
23         ecdh.h \
24         ecdsa.h \
25         ecdsagen.h \
26         edge.c edge.h \
27         ethernet.h \
28         event.c event.h \
29         fake-gai-errnos.h \
30         fake-getaddrinfo.c fake-getaddrinfo.h \
31         fake-getnameinfo.c fake-getnameinfo.h \
32         getopt.c getopt.h \
33         getopt1.c \
34         graph.c graph.h \
35         hash.c hash.h \
36         have.h \
37         ipv4.h \
38         ipv6.h \
39         list.c list.h \
40         logger.c logger.h \
41         meta.c meta.h \
42         multicast_device.c \
43         names.c names.h \
44         net.c net.h \
45         net_packet.c \
46         net_setup.c \
47         net_socket.c \
48         netutl.c netutl.h \
49         node.c node.h \
50         prf.h \
51         process.c process.h \
52         protocol.c protocol.h \
53         protocol_auth.c \
54         protocol_edge.c \
55         protocol_key.c \
56         protocol_misc.c \
57         protocol_subnet.c \
58         raw_socket_device.c \
59         route.c route.h \
60         rsa.h \
61         rsagen.h \
62         script.c script.h \
63         splay_tree.c splay_tree.h \
64         sptps.c sptps.h \
65         subnet.c subnet.h \
66         subnet_parse.c \
67         system.h \
68         tincd.c \
69         utils.c utils.h \
70         xalloc.h
71
72 tinc_SOURCES = \
73         dropin.c dropin.h \
74         getopt.c getopt.h \
75         getopt1.c \
76         info.c info.h \
77         invitation.c invitation.h \
78         list.c list.h \
79         names.c names.h \
80         netutl.c netutl.h \
81         script.c script.h \
82         sptps.c sptps.h \
83         subnet_parse.c subnet.h \
84         tincctl.c tincctl.h \
85         top.c top.h \
86         utils.c utils.h
87
88 sptps_test_SOURCES = \
89         logger.c logger.h \
90         sptps.c sptps.h \
91         sptps_test.c \
92         utils.c utils.h
93
94 sptps_speed_SOURCES = \
95         logger.c logger.h \
96         sptps.c sptps.h \
97         sptps_speed.c \
98         utils.c utils.h
99
100 ## Conditionally compile device drivers
101         
102 if LINUX
103 tincd_SOURCES += linux/device.c
104 endif
105
106 if BSD
107 tincd_SOURCES += bsd/device.c
108 if TUNEMU
109 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
110 endif
111 endif
112
113 if SOLARIS
114 tincd_SOURCES += solaris/device.c
115 endif
116
117 if MINGW
118 tincd_SOURCES += mingw/device.c mingw/common.h
119 endif
120
121 if CYGWIN
122 tincd_SOURCES += cygwin/device.c
123 endif
124
125 if UML
126 tincd_SOURCES += uml_device.c
127 endif
128
129 if VDE
130 tincd_SOURCES += vde_device.c
131 endif
132
133 if OPENSSL
134 tincd_SOURCES += \
135         openssl/cipher.c \
136         openssl/crypto.c \
137         openssl/digest.c openssl/digest.h \
138         openssl/ecdh.c \
139         openssl/ecdsa.c \
140         openssl/prf.c \
141         openssl/rsa.c
142 tinc_SOURCES += \
143         openssl/cipher.c \
144         openssl/crypto.c \
145         openssl/digest.c openssl/digest.h \
146         openssl/ecdh.c \
147         openssl/ecdsa.c \
148         openssl/ecdsagen.c \
149         openssl/prf.c \
150         openssl/rsa.c \
151         openssl/rsagen.c
152 sptps_test_SOURCES += \
153         openssl/cipher.c \
154         openssl/crypto.c \
155         openssl/digest.c openssl/digest.h \
156         openssl/ecdh.c \
157         openssl/ecdsa.c \
158         openssl/prf.c
159 sptps_speed_SOURCES += \
160         openssl/cipher.c \
161         openssl/crypto.c \
162         openssl/digest.c openssl/digest.h \
163         openssl/ecdh.c \
164         openssl/ecdsa.c \
165         openssl/ecdsagen.c \
166         openssl/prf.c
167 endif
168
169 if GCRYPT
170 tincd_SOURCES += \
171         gcrypt/cipher.c \
172         gcrypt/crypto.c \
173         gcrypt/digest.c gcrypt/digest.h \
174         gcrypt/ecdh.c \
175         gcrypt/ecdsa.c \
176         gcrypt/prf.c \
177         gcrypt/rsa.c
178 tinc_SOURCES += \
179         gcrypt/cipher.c \
180         gcrypt/crypto.c \
181         gcrypt/digest.c gcrypt/digest.h \
182         gcrypt/ecdh.c \
183         gcrypt/ecdsa.c \
184         gcrypt/ecdsagen.c \
185         gcrypt/prf.c \
186         gcrypt/rsa.c \
187         gcrypt/rsagen.c
188 sptps_test_SOURCES += \
189         gcrypt/cipher.c \
190         gcrypt/crypto.c \
191         gcrypt/digest.c gcrypt/digest.h \
192         gcrypt/ecdh.c \
193         gcrypt/ecdsa.c \
194         gcrypt/prf.c
195 endif
196
197 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
198 sptps_speed_LDADD = -lrt
199
200 LIBS = @LIBS@
201
202 if TUNEMU
203 LIBS += -lpcap
204 endif
205
206 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"