]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Stop using EXTRA_DIST in src/Makefile.am.
[meshlink] / 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         splay_tree.c splay_tree.h \
59         sptps.c sptps.h \
60         subnet.c subnet.h \
61         subnet_parse.c \
62         system.h \
63         tincd.c \
64         utils.c utils.h \
65         xalloc.h
66
67 tinc_SOURCES = \
68         dropin.c dropin.h \
69         getopt.c getopt.h \
70         getopt1.c \
71         info.c info.h \
72         invitation.c invitation.h \
73         list.c list.h \
74         names.c names.h \
75         netutl.c netutl.h \
76         sptps.c sptps.h \
77         subnet_parse.c subnet.h \
78         tincctl.c tincctl.h \
79         top.c top.h \
80         utils.c utils.h
81
82 sptps_test_SOURCES = \
83         logger.c logger.h \
84         sptps.c sptps.h \
85         sptps_test.c \
86         utils.c utils.h
87
88 ## Conditionally compile device drivers
89         
90 if LINUX
91 tincd_SOURCES += linux/device.c
92 endif
93
94 if BSD
95 tincd_SOURCES += bsd/device.c
96 if TUNEMU
97 tincd_SOURCES += bsd/tunemu.c bsd/tunemu.h
98 endif
99 endif
100
101 if SOLARIS
102 tincd_SOURCES += solaris/device.c
103 endif
104
105 if MINGW
106 tincd_SOURCES += mingw/device.c mingw/common.h
107 endif
108
109 if CYGWIN
110 tincd_SOURCES += cygwin/device.c
111 endif
112
113 if UML
114 tincd_SOURCES += uml_device.c
115 endif
116
117 if VDE
118 tincd_SOURCES += vde_device.c
119 endif
120
121 if OPENSSL
122 tincd_SOURCES += \
123         openssl/cipher.c \
124         openssl/crypto.c \
125         openssl/digest.c openssl/digest.h \
126         openssl/ecdh.c \
127         openssl/ecdsa.c \
128         openssl/prf.c \
129         openssl/rsa.c
130 tinc_SOURCES += \
131         openssl/cipher.c \
132         openssl/crypto.c \
133         openssl/digest.c openssl/digest.h \
134         openssl/ecdh.c \
135         openssl/ecdsa.c \
136         openssl/ecdsagen.c \
137         openssl/prf.c \
138         openssl/rsa.c \
139         openssl/rsagen.c
140 sptps_test_SOURCES += \
141         openssl/cipher.c \
142         openssl/crypto.c \
143         openssl/digest.c openssl/digest.h \
144         openssl/ecdh.c \
145         openssl/ecdsa.c \
146         openssl/prf.c
147 endif
148
149 if GCRYPT
150 tincd_SOURCES += \
151         gcrypt/cipher.c \
152         gcrypt/crypto.c \
153         gcrypt/digest.c gcrypt/digest.h \
154         gcrypt/ecdh.c \
155         gcrypt/ecdsa.c \
156         gcrypt/prf.c \
157         gcrypt/rsa.c
158 tinc_SOURCES += \
159         gcrypt/cipher.c \
160         gcrypt/crypto.c \
161         gcrypt/digest.c gcrypt/digest.h \
162         gcrypt/ecdh.c \
163         gcrypt/ecdsa.c \
164         gcrypt/ecdsagen.c \
165         gcrypt/prf.c \
166         gcrypt/rsa.c \
167         gcrypt/rsagen.c
168 sptps_test_SOURCES += \
169         gcrypt/cipher.c \
170         gcrypt/crypto.c \
171         gcrypt/digest.c gcrypt/digest.h \
172         gcrypt/ecdh.c \
173         gcrypt/ecdsa.c \
174         gcrypt/prf.c
175 endif
176
177 tinc_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
178
179 LIBS = @LIBS@ @LIBGCRYPT_LIBS@
180
181 if TUNEMU
182 LIBS += -lpcap
183 endif
184
185 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"