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