]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Really add both local and external address to the invitation URL.
[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-regex '^(meshlink_|devtool_)'
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 \
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         prf.c prf.h \
68         protocol.c protocol.h \
69         protocol_auth.c \
70         protocol_edge.c \
71         protocol_key.c \
72         protocol_misc.c \
73         route.c route.h \
74         sockaddr.h \
75         splay_tree.c splay_tree.h \
76         sptps.c sptps.h \
77         system.h \
78         utils.c utils.h \
79         xalloc.h \
80         devtools.c devtools.h \
81         $(ed25519_SOURCES) \
82         $(chacha_poly1305_SOURCES) \
83         $(utcp_SOURCES)
84
85 libmeshlink_la_CFLAGS = $(PTHREAD_CFLAGS) -fPIC -iquote.
86 libmeshlink_la_LDFLAGS += $(PTHREAD_LIBS)
87
88 if CATTA
89 libmeshlink_la_SOURCES += \
90         discovery.c discovery.h
91
92 libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/include/
93
94 if MINGW
95 libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/src/compat/windows/include/
96 endif
97
98 libmeshlink_la_LIBADD = ${top_builddir}/catta/src/libcatta.la
99 endif