]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Handle io_t's being deleted out of order while going through loop->ios.
[meshlink] / src / Makefile.am
1 ## Produce this file with automake to get Makefile.in
2
3 sbin_PROGRAMS = sptps_test sptps_keypair
4
5 if LINUX
6 sbin_PROGRAMS += sptps_speed
7 endif
8
9 DEFAULT_INCLUDES =
10
11 ed25519_SOURCES = \
12         ed25519/add_scalar.c \
13         ed25519/ed25519.h \
14         ed25519/fe.c ed25519/fe.h \
15         ed25519/fixedint.h \
16         ed25519/ge.c ed25519/ge.h \
17         ed25519/key_exchange.c \
18         ed25519/keypair.c \
19         ed25519/precomp_data.h \
20         ed25519/sc.c ed25519/sc.h \
21         ed25519/seed.c \
22         ed25519/sha512.c ed25519/sha512.h \
23         ed25519/sign.c \
24         ed25519/verify.c
25
26 chacha_poly1305_SOURCES = \
27         chacha-poly1305/chacha.c chacha-poly1305/chacha.h \
28         chacha-poly1305/chacha-poly1305.c chacha-poly1305/chacha-poly1305.h \
29         chacha-poly1305/poly1305.c chacha-poly1305/poly1305.h
30
31 sptps_test_SOURCES = \
32         crypto.c crypto.h \
33         logger.c logger.h \
34         prf.c prf.h \
35         sptps.c sptps.h \
36         sptps_test.c \
37         utils.c utils.h \
38         $(ed25519_SOURCES) \
39         $(chacha_poly1305_SOURCES)
40
41 sptps_keypair_SOURCES = \
42         crypto.c crypto.h \
43         sptps_keypair.c \
44         utils.c utils.h \
45         $(ed25519_SOURCES)
46
47 sptps_speed_SOURCES = \
48         crypto.c crypto.h \
49         logger.c logger.h \
50         prf.c prf.h \
51         sptps.c sptps.h \
52         sptps_speed.c \
53         utils.c utils.h \
54         $(ed25519_SOURCES) \
55         $(chacha_poly1305_SOURCES)
56
57 lib_LTLIBRARIES = libmeshlink.la
58
59 libmeshlink_la_LDFLAGS = -export-symbols-regex '^meshlink_'
60
61 libmeshlink_la_SOURCES = \
62         meshlink.c meshlink.h \
63         buffer.c buffer.h \
64         cipher.h \
65         conf.c conf.h \
66         connection.c connection.h \
67         crypto.c crypto.h \
68         dropin.c dropin.h \
69         ecdh.h \
70         ecdsa.h \
71         ecdsagen.h \
72         edge.c edge.h \
73         event.c event.h \
74         fake-gai-errnos.h \
75         fake-getaddrinfo.c fake-getaddrinfo.h \
76         fake-getnameinfo.c fake-getnameinfo.h \
77         graph.c graph.h \
78         hash.c hash.h \
79         have.h \
80         list.c list.h \
81         logger.c logger.h \
82         meta.c meta.h \
83         net.c net.h \
84         net_packet.c \
85         net_setup.c \
86         net_socket.c \
87         netutl.c netutl.h \
88         node.c node.h \
89         prf.c prf.h \
90         protocol.c protocol.h \
91         protocol_auth.c \
92         protocol_edge.c \
93         protocol_key.c \
94         protocol_misc.c \
95         route.c route.h \
96         splay_tree.c splay_tree.h \
97         sptps.c sptps.h \
98         system.h \
99         utils.c utils.h \
100         xalloc.h \
101         $(ed25519_SOURCES) \
102         $(chacha_poly1305_SOURCES)
103
104 libmeshlink_la_CFLAGS = -fPIC
105
106 libmeshlink_la_LIBADD = -lpthread
107
108 libmeshlink_la_SOURCES += \
109         ed25519/ecdh.c \
110         ed25519/ecdsa.c \
111         ed25519/ecdsagen.c
112 sptps_test_SOURCES += \
113         ed25519/ecdh.c \
114         ed25519/ecdsa.c
115 sptps_keypair_SOURCES += \
116         ed25519/ecdsagen.c
117 sptps_speed_SOURCES += \
118         ed25519/ecdh.c \
119         ed25519/ecdsa.c \
120         ed25519/ecdsagen.c
121
122 sptps_speed_LDADD = -lrt
123
124 LIBS = @LIBS@
125
126 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"