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