]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Move config_tree to mesh->config.
[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_SOURCES = \
60         meshlink.c meshlink.h \
61         buffer.c buffer.h \
62         cipher.h \
63         conf.c conf.h \
64         connection.c connection.h \
65         crypto.c crypto.h \
66         dropin.c dropin.h \
67         ecdh.h \
68         ecdsa.h \
69         ecdsagen.h \
70         edge.c edge.h \
71         event.c event.h \
72         fake-gai-errnos.h \
73         fake-getaddrinfo.c fake-getaddrinfo.h \
74         fake-getnameinfo.c fake-getnameinfo.h \
75         graph.c graph.h \
76         hash.c hash.h \
77         have.h \
78         list.c list.h \
79         logger.c logger.h \
80         meta.c meta.h \
81         net.c net.h \
82         net_packet.c \
83         net_setup.c \
84         net_socket.c \
85         netutl.c netutl.h \
86         node.c node.h \
87         prf.c prf.h \
88         protocol.c protocol.h \
89         protocol_auth.c \
90         protocol_edge.c \
91         protocol_key.c \
92         protocol_misc.c \
93         route.c route.h \
94         splay_tree.c splay_tree.h \
95         sptps.c sptps.h \
96         system.h \
97         utils.c utils.h \
98         xalloc.h \
99         $(ed25519_SOURCES) \
100         $(chacha_poly1305_SOURCES)
101
102 libmeshlink_la_CFLAGS = -fPIC
103
104 libmeshlink_la_LIBADD = -lpthread
105
106 libmeshlink_la_SOURCES += \
107         ed25519/ecdh.c \
108         ed25519/ecdsa.c \
109         ed25519/ecdsagen.c
110 sptps_test_SOURCES += \
111         ed25519/ecdh.c \
112         ed25519/ecdsa.c
113 sptps_keypair_SOURCES += \
114         ed25519/ecdsagen.c
115 sptps_speed_SOURCES += \
116         ed25519/ecdh.c \
117         ed25519/ecdsa.c \
118         ed25519/ecdsagen.c
119
120 sptps_speed_LDADD = -lrt
121
122 LIBS = @LIBS@
123
124 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"