]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Avoid allocating packet buffers unnecessarily.
[meshlink] / src / Makefile.am
1 ## Produce this file with automake to get Makefile.in
2
3 AM_CPPFLAGS = -Wall
4
5 ed25519_SOURCES = \
6         ed25519/add_scalar.c \
7         ed25519/ecdh.c \
8         ed25519/ecdsa.c \
9         ed25519/ecdsagen.c \
10         ed25519/ed25519.h \
11         ed25519/fe.c ed25519/fe.h \
12         ed25519/fixedint.h \
13         ed25519/ge.c ed25519/ge.h \
14         ed25519/key_exchange.c \
15         ed25519/keypair.c \
16         ed25519/precomp_data.h \
17         ed25519/sc.c ed25519/sc.h \
18         ed25519/seed.c \
19         ed25519/sha512.c ed25519/sha512.h \
20         ed25519/sign.c \
21         ed25519/verify.c
22
23 chacha_poly1305_SOURCES = \
24         chacha-poly1305/chacha.c chacha-poly1305/chacha.h \
25         chacha-poly1305/chacha-poly1305.c chacha-poly1305/chacha-poly1305.h \
26         chacha-poly1305/poly1305.c chacha-poly1305/poly1305.h
27
28 utcp_SOURCES = \
29         utcp/utcp.c utcp/utcp.h \
30         utcp/utcp_priv.h
31
32 lib_LTLIBRARIES = libmeshlink.la
33
34 pkginclude_HEADERS = meshlink++.h meshlink.h
35
36 libmeshlink_la_LDFLAGS = -export-symbols $(srcdir)/meshlink.sym
37
38 libmeshlink_la_SOURCES = \
39         buffer.c buffer.h \
40         conf.c conf.h \
41         connection.c connection.h \
42         crypto.c crypto.h \
43         dropin.c dropin.h \
44         ecdh.h \
45         ecdsa.h \
46         ecdsagen.h \
47         edge.c edge.h \
48         event.c event.h \
49         fake-gai-errnos.h \
50         fake-getaddrinfo.c fake-getaddrinfo.h \
51         fake-getnameinfo.c fake-getnameinfo.h \
52         graph.c graph.h \
53         hash.c hash.h \
54         have.h \
55         list.c list.h \
56         logger.c logger.h \
57         meshlink.c meshlink.h meshlink.sym \
58         meshlink_internal.h \
59         meshlink_queue.h \
60         meta.c meta.h \
61         net.c net.h \
62         net_packet.c \
63         net_setup.c \
64         net_socket.c \
65         netutl.c netutl.h \
66         node.c node.h \
67         submesh.c submesh.h \
68         prf.c prf.h \
69         protocol.c protocol.h \
70         protocol_auth.c \
71         protocol_edge.c \
72         protocol_key.c \
73         protocol_misc.c \
74         route.c route.h \
75         sockaddr.h \
76         splay_tree.c splay_tree.h \
77         sptps.c sptps.h \
78         system.h \
79         utils.c utils.h \
80         xalloc.h \
81         xoshiro.c xoshiro.h \
82         devtools.c devtools.h \
83         $(ed25519_SOURCES) \
84         $(chacha_poly1305_SOURCES) \
85         $(utcp_SOURCES)
86
87 EXTRA_libmeshlink_la_DEPENDENCIES = $(srcdir)/meshlink.sym
88
89 libmeshlink_la_CFLAGS = $(PTHREAD_CFLAGS) -fPIC -iquote.
90 libmeshlink_la_LDFLAGS += $(PTHREAD_LIBS)
91
92 if CATTA
93 libmeshlink_la_SOURCES += \
94         discovery.c discovery.h
95
96 libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/include/
97
98 if MINGW
99 libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/src/compat/windows/include/
100 endif
101
102 libmeshlink_la_LIBADD = ${top_builddir}/catta/src/libcatta.la
103 endif