]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Use AX_PTHREAD to set the proper pthread flags.
[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/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         utcp/utcp_priv.h
28
29 lib_LTLIBRARIES = libmeshlink.la
30
31 pkginclude_HEADERS = meshlink++.h meshlink.h
32
33 libmeshlink_la_LDFLAGS = -export-symbols-regex '^(meshlink_|devtool_)'
34
35 libmeshlink_la_SOURCES = \
36         buffer.c buffer.h \
37         conf.c conf.h \
38         connection.c connection.h \
39         crypto.c crypto.h \
40         discovery.c discovery.h \
41         dropin.c dropin.h \
42         ecdh.h \
43         ecdsa.h \
44         ecdsagen.h \
45         edge.c edge.h \
46         event.c event.h \
47         fake-gai-errnos.h \
48         fake-getaddrinfo.c fake-getaddrinfo.h \
49         fake-getnameinfo.c fake-getnameinfo.h \
50         graph.c graph.h \
51         hash.c hash.h \
52         have.h \
53         list.c list.h \
54         logger.c logger.h \
55         meshlink.c meshlink.h \
56         meshlink_internal.h \
57         meshlink_queue.h \
58         meta.c meta.h \
59         net.c net.h \
60         net_packet.c \
61         net_setup.c \
62         net_socket.c \
63         netutl.c netutl.h \
64         node.c node.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         devtools.c devtools.h \
79         $(ed25519_SOURCES) \
80         $(chacha_poly1305_SOURCES) \
81         $(utcp_SOURCES)
82
83 libmeshlink_la_CFLAGS = $(PTHREAD_CFLAGS) -fPIC -I${top_srcdir}/catta/include/ -iquote.
84
85 if MINGW
86 libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/src/compat/windows/include/
87 endif
88
89 libmeshlink_la_LDFLAGS = $(PTHREAD_LIBS)
90 libmeshlink_la_LIBADD = ${top_builddir}/catta/src/libcatta.la
91
92 libmeshlink_la_SOURCES += \
93         ed25519/ecdh.c \
94         ed25519/ecdsa.c \
95         ed25519/ecdsagen.c