]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Add meshlink_reset_timers().
[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.c utcp.h \
30         utcp_priv.h
31
32 lib_LTLIBRARIES = libmeshlink.la
33 noinst_PROGRAMS = utcp-test
34
35 pkginclude_HEADERS = meshlink++.h meshlink.h
36
37 libmeshlink_la_LDFLAGS = -export-symbols $(srcdir)/meshlink.sym
38
39 libmeshlink_la_SOURCES = \
40         adns.c adns.h \
41         buffer.c buffer.h \
42         conf.c conf.h \
43         connection.c connection.h \
44         crypto.c crypto.h \
45         dropin.c dropin.h \
46         ecdh.h \
47         ecdsa.h \
48         ecdsagen.h \
49         edge.c edge.h \
50         event.c event.h \
51         graph.c graph.h \
52         hash.c hash.h \
53         have.h \
54         list.c list.h \
55         logger.c logger.h \
56         meshlink.c meshlink.h meshlink.sym \
57         meshlink_internal.h \
58         meshlink_queue.h \
59         meta.c meta.h \
60         net.c net.h \
61         net_packet.c \
62         net_setup.c \
63         net_socket.c \
64         netutl.c netutl.h \
65         node.c node.h \
66         submesh.c submesh.h \
67         packmsg.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 utcp_test_SOURCES = \
88         utcp-test.c \
89         $(utcp_SOURCES)
90
91 EXTRA_libmeshlink_la_DEPENDENCIES = $(srcdir)/meshlink.sym
92
93 libmeshlink_la_CFLAGS = $(PTHREAD_CFLAGS) -fPIC -iquote.
94 libmeshlink_la_LDFLAGS += $(PTHREAD_LIBS)
95
96 utcp_test_CFLAGS = $(PTHREAD_CFLAGS) -iquote.
97 utcp_test_LDFLAGS = $(PTHREAD_LIBS)
98
99 if CATTA
100 libmeshlink_la_SOURCES += \
101         discovery.c discovery.h
102
103 libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/include/
104
105 if MINGW
106 libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/src/compat/windows/include/
107 endif
108
109 libmeshlink_la_LIBADD = ${top_builddir}/catta/src/libcatta.la
110 endif