]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Import UTCP as a git submodule.
[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 utcp_SOURCES = \
32         utcp/utcp.c utcp/utcp.h
33
34 sptps_test_SOURCES = \
35         crypto.c crypto.h \
36         logger.c logger.h \
37         prf.c prf.h \
38         sptps.c sptps.h \
39         sptps_test.c \
40         utils.c utils.h \
41         $(ed25519_SOURCES) \
42         $(chacha_poly1305_SOURCES)
43
44 sptps_keypair_SOURCES = \
45         crypto.c crypto.h \
46         sptps_keypair.c \
47         utils.c utils.h \
48         $(ed25519_SOURCES)
49
50 sptps_speed_SOURCES = \
51         crypto.c crypto.h \
52         logger.c logger.h \
53         prf.c prf.h \
54         sptps.c sptps.h \
55         sptps_speed.c \
56         utils.c utils.h \
57         $(ed25519_SOURCES) \
58         $(chacha_poly1305_SOURCES)
59
60 lib_LTLIBRARIES = libmeshlink.la
61
62 libmeshlink_la_LDFLAGS = -export-symbols-regex '^meshlink_'
63
64 libmeshlink_la_SOURCES = \
65         meshlink.c meshlink.h \
66         buffer.c buffer.h \
67         cipher.h \
68         conf.c conf.h \
69         connection.c connection.h \
70         crypto.c crypto.h \
71         dropin.c dropin.h \
72         ecdh.h \
73         ecdsa.h \
74         ecdsagen.h \
75         edge.c edge.h \
76         event.c event.h \
77         fake-gai-errnos.h \
78         fake-getaddrinfo.c fake-getaddrinfo.h \
79         fake-getnameinfo.c fake-getnameinfo.h \
80         graph.c graph.h \
81         hash.c hash.h \
82         have.h \
83         list.c list.h \
84         logger.c logger.h \
85         meta.c meta.h \
86         net.c net.h \
87         net_packet.c \
88         net_setup.c \
89         net_socket.c \
90         netutl.c netutl.h \
91         node.c node.h \
92         prf.c prf.h \
93         protocol.c protocol.h \
94         protocol_auth.c \
95         protocol_edge.c \
96         protocol_key.c \
97         protocol_misc.c \
98         route.c route.h \
99         splay_tree.c splay_tree.h \
100         sptps.c sptps.h \
101         system.h \
102         utils.c utils.h \
103         xalloc.h \
104         $(ed25519_SOURCES) \
105         $(chacha_poly1305_SOURCES) \
106         $(utcp_SOURCES)
107
108 libmeshlink_la_CFLAGS = -fPIC
109
110 libmeshlink_la_LIBADD = -lpthread
111
112 libmeshlink_la_SOURCES += \
113         ed25519/ecdh.c \
114         ed25519/ecdsa.c \
115         ed25519/ecdsagen.c
116 sptps_test_SOURCES += \
117         ed25519/ecdh.c \
118         ed25519/ecdsa.c
119 sptps_keypair_SOURCES += \
120         ed25519/ecdsagen.c
121 sptps_speed_SOURCES += \
122         ed25519/ecdh.c \
123         ed25519/ecdsa.c \
124         ed25519/ecdsagen.c
125
126 sptps_speed_LDADD = -lrt
127
128 LIBS = @LIBS@
129
130 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"