]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Don't build SPTPS test programs.
[meshlink] / src / Makefile.am
1 ## Produce this file with automake to get Makefile.in
2
3 DEFAULT_INCLUDES =
4
5 ed25519_SOURCES = \
6         ed25519/add_scalar.c \
7         ed25519/ed25519.h \
8         ed25519/fe.c ed25519/fe.h \
9         ed25519/fixedint.h \
10         ed25519/ge.c ed25519/ge.h \
11         ed25519/key_exchange.c \
12         ed25519/keypair.c \
13         ed25519/precomp_data.h \
14         ed25519/sc.c ed25519/sc.h \
15         ed25519/seed.c \
16         ed25519/sha512.c ed25519/sha512.h \
17         ed25519/sign.c \
18         ed25519/verify.c
19
20 chacha_poly1305_SOURCES = \
21         chacha-poly1305/chacha.c chacha-poly1305/chacha.h \
22         chacha-poly1305/chacha-poly1305.c chacha-poly1305/chacha-poly1305.h \
23         chacha-poly1305/poly1305.c chacha-poly1305/poly1305.h
24
25 utcp_SOURCES = \
26         utcp/utcp.c utcp/utcp.h
27
28 sptps_test_SOURCES = \
29         crypto.c crypto.h \
30         logger.c logger.h \
31         prf.c prf.h \
32         sptps.c sptps.h \
33         sptps_test.c \
34         utils.c utils.h \
35         $(ed25519_SOURCES) \
36         $(chacha_poly1305_SOURCES)
37
38 sptps_keypair_SOURCES = \
39         crypto.c crypto.h \
40         sptps_keypair.c \
41         utils.c utils.h \
42         $(ed25519_SOURCES)
43
44 sptps_speed_SOURCES = \
45         crypto.c crypto.h \
46         logger.c logger.h \
47         prf.c prf.h \
48         sptps.c sptps.h \
49         sptps_speed.c \
50         utils.c utils.h \
51         $(ed25519_SOURCES) \
52         $(chacha_poly1305_SOURCES)
53
54 lib_LTLIBRARIES = libmeshlink.la
55
56 pkginclude_HEADERS = meshlink++.h meshlink.h
57
58 libmeshlink_la_LDFLAGS = -export-symbols-regex '^(meshlink_|devtool_)'
59
60 libmeshlink_la_SOURCES = \
61         meshlink.c meshlink.h \
62         buffer.c buffer.h \
63         cipher.h \
64         conf.c conf.h \
65         connection.c connection.h \
66         crypto.c crypto.h \
67         discovery.c discovery.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         devtools.c devtools.h \
102         $(ed25519_SOURCES) \
103         $(chacha_poly1305_SOURCES) \
104         $(utcp_SOURCES)
105
106 libmeshlink_la_CFLAGS = -fPIC -I../catta/include/
107
108 if MINGW
109 libmeshlink_la_CFLAGS += -I../catta/src/compat/windows/include/
110 endif
111
112 libmeshlink_la_LIBADD = -lpthread ../catta/src/libcatta.la
113
114 libmeshlink_la_SOURCES += \
115         ed25519/ecdh.c \
116         ed25519/ecdsa.c \
117         ed25519/ecdsagen.c
118
119 LIBS = @LIBS@
120
121 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"