]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
trying to fix linking issues
[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 tincd_CFLAGS = -fPIC
73
74 tinc_SOURCES = \
75         dropin.c dropin.h \
76         getopt.c getopt.h \
77         getopt1.c \
78         info.c info.h \
79         invitation.c invitation.h \
80         list.c list.h \
81         names.c names.h \
82         netutl.c netutl.h \
83         script.c script.h \
84         sptps.c sptps.h \
85         subnet_parse.c subnet.h \
86         tincctl.c tincctl.h \
87         top.c top.h \
88         utils.c utils.h
89
90 tinc_CFLAGS = -fPIC
91
92 sptps_test_SOURCES = \
93         logger.c logger.h \
94         sptps.c sptps.h \
95         sptps_test.c \
96         utils.c utils.h
97
98 sptps_speed_SOURCES = \
99         logger.c logger.h \
100         sptps.c sptps.h \
101         sptps_speed.c \
102         utils.c utils.h
103
104 lib_LTLIBRARIES = libmeshlink.la
105
106 libmeshlink_la_SOURCES = \
107         libmeshlink.c libmeshlink.h
108
109 libmeshlink_la_CFLAGS = -fPIC
110
111 libmeshlink_la_LIBADD = \
112         protocol.o protocol_auth.o
113
114 ## Conditionally compile device drivers
115         
116 if LINUX
117 tincd_SOURCES += linux/device.c
118 endif
119
120 if BSD
121 tincd_SOURCES += bsd/device.c
122 if TUNEMU
123 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
124 endif
125 endif
126
127 if SOLARIS
128 tincd_SOURCES += solaris/device.c
129 endif
130
131 if MINGW
132 tincd_SOURCES += mingw/device.c mingw/common.h
133 endif
134
135 if CYGWIN
136 tincd_SOURCES += cygwin/device.c
137 endif
138
139 if UML
140 tincd_SOURCES += uml_device.c
141 endif
142
143 if VDE
144 tincd_SOURCES += vde_device.c
145 endif
146
147 if OPENSSL
148 tincd_SOURCES += \
149         openssl/cipher.c \
150         openssl/crypto.c \
151         openssl/digest.c openssl/digest.h \
152         openssl/ecdh.c \
153         openssl/ecdsa.c \
154         openssl/prf.c \
155         openssl/rsa.c
156 tinc_SOURCES += \
157         openssl/cipher.c \
158         openssl/crypto.c \
159         openssl/digest.c openssl/digest.h \
160         openssl/ecdh.c \
161         openssl/ecdsa.c \
162         openssl/ecdsagen.c \
163         openssl/prf.c \
164         openssl/rsa.c \
165         openssl/rsagen.c
166 sptps_test_SOURCES += \
167         openssl/cipher.c \
168         openssl/crypto.c \
169         openssl/digest.c openssl/digest.h \
170         openssl/ecdh.c \
171         openssl/ecdsa.c \
172         openssl/prf.c
173 sptps_speed_SOURCES += \
174         openssl/cipher.c \
175         openssl/crypto.c \
176         openssl/digest.c openssl/digest.h \
177         openssl/ecdh.c \
178         openssl/ecdsa.c \
179         openssl/ecdsagen.c \
180         openssl/prf.c
181 endif
182
183 if GCRYPT
184 tincd_SOURCES += \
185         gcrypt/cipher.c \
186         gcrypt/crypto.c \
187         gcrypt/digest.c gcrypt/digest.h \
188         gcrypt/ecdh.c \
189         gcrypt/ecdsa.c \
190         gcrypt/prf.c \
191         gcrypt/rsa.c
192 tinc_SOURCES += \
193         gcrypt/cipher.c \
194         gcrypt/crypto.c \
195         gcrypt/digest.c gcrypt/digest.h \
196         gcrypt/ecdh.c \
197         gcrypt/ecdsa.c \
198         gcrypt/ecdsagen.c \
199         gcrypt/prf.c \
200         gcrypt/rsa.c \
201         gcrypt/rsagen.c
202 sptps_test_SOURCES += \
203         gcrypt/cipher.c \
204         gcrypt/crypto.c \
205         gcrypt/digest.c gcrypt/digest.h \
206         gcrypt/ecdh.c \
207         gcrypt/ecdsa.c \
208         gcrypt/prf.c
209 endif
210
211 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
212 sptps_speed_LDADD = -lrt
213
214 LIBS = @LIBS@
215
216 if TUNEMU
217 LIBS += -lpcap
218 endif
219
220 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"