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