]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Fixing autotools
[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 lib_LTLIBRARIES = libmeshlink.la
101
102 libmeshlink_la_SOURCES = \
103         libmeshlink.c libmeshlink.h
104
105 ## Conditionally compile device drivers
106         
107 if LINUX
108 tincd_SOURCES += linux/device.c
109 endif
110
111 if BSD
112 tincd_SOURCES += bsd/device.c
113 if TUNEMU
114 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
115 endif
116 endif
117
118 if SOLARIS
119 tincd_SOURCES += solaris/device.c
120 endif
121
122 if MINGW
123 tincd_SOURCES += mingw/device.c mingw/common.h
124 endif
125
126 if CYGWIN
127 tincd_SOURCES += cygwin/device.c
128 endif
129
130 if UML
131 tincd_SOURCES += uml_device.c
132 endif
133
134 if VDE
135 tincd_SOURCES += vde_device.c
136 endif
137
138 if OPENSSL
139 tincd_SOURCES += \
140         openssl/cipher.c \
141         openssl/crypto.c \
142         openssl/digest.c openssl/digest.h \
143         openssl/ecdh.c \
144         openssl/ecdsa.c \
145         openssl/prf.c \
146         openssl/rsa.c
147 tinc_SOURCES += \
148         openssl/cipher.c \
149         openssl/crypto.c \
150         openssl/digest.c openssl/digest.h \
151         openssl/ecdh.c \
152         openssl/ecdsa.c \
153         openssl/ecdsagen.c \
154         openssl/prf.c \
155         openssl/rsa.c \
156         openssl/rsagen.c
157 sptps_test_SOURCES += \
158         openssl/cipher.c \
159         openssl/crypto.c \
160         openssl/digest.c openssl/digest.h \
161         openssl/ecdh.c \
162         openssl/ecdsa.c \
163         openssl/prf.c
164 sptps_speed_SOURCES += \
165         openssl/cipher.c \
166         openssl/crypto.c \
167         openssl/digest.c openssl/digest.h \
168         openssl/ecdh.c \
169         openssl/ecdsa.c \
170         openssl/ecdsagen.c \
171         openssl/prf.c
172 endif
173
174 if GCRYPT
175 tincd_SOURCES += \
176         gcrypt/cipher.c \
177         gcrypt/crypto.c \
178         gcrypt/digest.c gcrypt/digest.h \
179         gcrypt/ecdh.c \
180         gcrypt/ecdsa.c \
181         gcrypt/prf.c \
182         gcrypt/rsa.c
183 tinc_SOURCES += \
184         gcrypt/cipher.c \
185         gcrypt/crypto.c \
186         gcrypt/digest.c gcrypt/digest.h \
187         gcrypt/ecdh.c \
188         gcrypt/ecdsa.c \
189         gcrypt/ecdsagen.c \
190         gcrypt/prf.c \
191         gcrypt/rsa.c \
192         gcrypt/rsagen.c
193 sptps_test_SOURCES += \
194         gcrypt/cipher.c \
195         gcrypt/crypto.c \
196         gcrypt/digest.c gcrypt/digest.h \
197         gcrypt/ecdh.c \
198         gcrypt/ecdsa.c \
199         gcrypt/prf.c
200 endif
201
202 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
203 sptps_speed_LDADD = -lrt
204
205 LIBS = @LIBS@
206
207 if TUNEMU
208 LIBS += -lpcap
209 endif
210
211 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"