]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Assume getaddrinfo() and IPv6 are supported.
[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         graph.c graph.h \
50         hash.c hash.h \
51         have.h \
52         list.c list.h \
53         logger.c logger.h \
54         meshlink.c meshlink.h meshlink.sym \
55         meshlink_internal.h \
56         meshlink_queue.h \
57         meta.c meta.h \
58         net.c net.h \
59         net_packet.c \
60         net_setup.c \
61         net_socket.c \
62         netutl.c netutl.h \
63         node.c node.h \
64         submesh.c submesh.h \
65         prf.c prf.h \
66         protocol.c protocol.h \
67         protocol_auth.c \
68         protocol_edge.c \
69         protocol_key.c \
70         protocol_misc.c \
71         route.c route.h \
72         sockaddr.h \
73         splay_tree.c splay_tree.h \
74         sptps.c sptps.h \
75         system.h \
76         utils.c utils.h \
77         xalloc.h \
78         xoshiro.c xoshiro.h \
79         devtools.c devtools.h \
80         $(ed25519_SOURCES) \
81         $(chacha_poly1305_SOURCES) \
82         $(utcp_SOURCES)
83
84 EXTRA_libmeshlink_la_DEPENDENCIES = $(srcdir)/meshlink.sym
85
86 libmeshlink_la_CFLAGS = $(PTHREAD_CFLAGS) -fPIC -iquote.
87 libmeshlink_la_LDFLAGS += $(PTHREAD_LIBS)
88
89 if CATTA
90 libmeshlink_la_SOURCES += \
91         discovery.c discovery.h
92
93 libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/include/
94
95 if MINGW
96 libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/src/compat/windows/include/
97 endif
98
99 libmeshlink_la_LIBADD = ${top_builddir}/catta/src/libcatta.la
100 endif