]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Force -Wall.
[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
28 lib_LTLIBRARIES = libmeshlink.la
29
30 pkginclude_HEADERS = meshlink++.h meshlink.h
31
32 libmeshlink_la_LDFLAGS = -export-symbols-regex '^(meshlink_|devtool_)'
33
34 libmeshlink_la_SOURCES = \
35         meshlink.c meshlink.h \
36         buffer.c buffer.h \
37         cipher.h \
38         conf.c conf.h \
39         connection.c connection.h \
40         crypto.c crypto.h \
41         discovery.c discovery.h \
42         dropin.c dropin.h \
43         ecdh.h \
44         ecdsa.h \
45         ecdsagen.h \
46         edge.c edge.h \
47         event.c event.h \
48         fake-gai-errnos.h \
49         fake-getaddrinfo.c fake-getaddrinfo.h \
50         fake-getnameinfo.c fake-getnameinfo.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         meta.c meta.h \
57         net.c net.h \
58         net_packet.c \
59         net_setup.c \
60         net_socket.c \
61         netutl.c netutl.h \
62         node.c node.h \
63         prf.c prf.h \
64         protocol.c protocol.h \
65         protocol_auth.c \
66         protocol_edge.c \
67         protocol_key.c \
68         protocol_misc.c \
69         route.c route.h \
70         splay_tree.c splay_tree.h \
71         sptps.c sptps.h \
72         system.h \
73         utils.c utils.h \
74         xalloc.h \
75         devtools.c devtools.h \
76         $(ed25519_SOURCES) \
77         $(chacha_poly1305_SOURCES) \
78         $(utcp_SOURCES)
79
80 libmeshlink_la_CFLAGS = -fPIC -I../catta/include/
81
82 if MINGW
83 libmeshlink_la_CFLAGS += -I../catta/src/compat/windows/include/
84 endif
85
86 libmeshlink_la_LIBADD = -lpthread ../catta/src/libcatta.la
87
88 libmeshlink_la_SOURCES += \
89         ed25519/ecdh.c \
90         ed25519/ecdsa.c \
91         ed25519/ecdsagen.c