]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
windows compatibility
[meshlink] / src / Makefile.am
1 ## Produce this file with automake to get Makefile.in
2
3 sbin_PROGRAMS = sptps_test sptps_keypair
4
5 if LINUX
6 sbin_PROGRAMS += sptps_speed
7 endif
8
9 DEFAULT_INCLUDES =
10
11 ed25519_SOURCES = \
12         ed25519/add_scalar.c \
13         ed25519/ed25519.h \
14         ed25519/fe.c ed25519/fe.h \
15         ed25519/fixedint.h \
16         ed25519/ge.c ed25519/ge.h \
17         ed25519/key_exchange.c \
18         ed25519/keypair.c \
19         ed25519/precomp_data.h \
20         ed25519/sc.c ed25519/sc.h \
21         ed25519/seed.c \
22         ed25519/sha512.c ed25519/sha512.h \
23         ed25519/sign.c \
24         ed25519/verify.c
25
26 chacha_poly1305_SOURCES = \
27         chacha-poly1305/chacha.c chacha-poly1305/chacha.h \
28         chacha-poly1305/chacha-poly1305.c chacha-poly1305/chacha-poly1305.h \
29         chacha-poly1305/poly1305.c chacha-poly1305/poly1305.h
30
31 utcp_SOURCES = \
32         utcp/utcp.c utcp/utcp.h
33
34 sptps_test_SOURCES = \
35         crypto.c crypto.h \
36         logger.c logger.h \
37         prf.c prf.h \
38         sptps.c sptps.h \
39         sptps_test.c \
40         utils.c utils.h \
41         $(ed25519_SOURCES) \
42         $(chacha_poly1305_SOURCES)
43
44 sptps_keypair_SOURCES = \
45         crypto.c crypto.h \
46         sptps_keypair.c \
47         utils.c utils.h \
48         $(ed25519_SOURCES)
49
50 sptps_speed_SOURCES = \
51         crypto.c crypto.h \
52         logger.c logger.h \
53         prf.c prf.h \
54         sptps.c sptps.h \
55         sptps_speed.c \
56         utils.c utils.h \
57         $(ed25519_SOURCES) \
58         $(chacha_poly1305_SOURCES)
59
60 lib_LTLIBRARIES = libmeshlink.la
61
62 pkginclude_HEADERS = meshlink++.h meshlink.h
63
64 libmeshlink_la_LDFLAGS = -export-symbols-regex '^(meshlink_|devtool_)'
65
66 libmeshlink_la_SOURCES = \
67         meshlink.c meshlink.h \
68         buffer.c buffer.h \
69         cipher.h \
70         conf.c conf.h \
71         connection.c connection.h \
72         crypto.c crypto.h \
73         discovery.c discovery.h \
74         dropin.c dropin.h \
75         ecdh.h \
76         ecdsa.h \
77         ecdsagen.h \
78         edge.c edge.h \
79         event.c event.h \
80         fake-gai-errnos.h \
81         fake-getaddrinfo.c fake-getaddrinfo.h \
82         fake-getnameinfo.c fake-getnameinfo.h \
83         graph.c graph.h \
84         hash.c hash.h \
85         have.h \
86         list.c list.h \
87         logger.c logger.h \
88         meta.c meta.h \
89         net.c net.h \
90         net_packet.c \
91         net_setup.c \
92         net_socket.c \
93         netutl.c netutl.h \
94         node.c node.h \
95         prf.c prf.h \
96         protocol.c protocol.h \
97         protocol_auth.c \
98         protocol_edge.c \
99         protocol_key.c \
100         protocol_misc.c \
101         route.c route.h \
102         splay_tree.c splay_tree.h \
103         sptps.c sptps.h \
104         system.h \
105         utils.c utils.h \
106         xalloc.h \
107         devtools.c devtools.h \
108         $(ed25519_SOURCES) \
109         $(chacha_poly1305_SOURCES) \
110         $(utcp_SOURCES)
111
112 libmeshlink_la_CFLAGS = -fPIC -I../catta/include/
113
114 if MINGW
115 libmeshlink_la_CFLAGS += -I../catta/src/compat/windows/include/
116 endif
117
118 libmeshlink_la_LIBADD = -lpthread ../catta/src/libcatta.la
119
120 libmeshlink_la_SOURCES += \
121         ed25519/ecdh.c \
122         ed25519/ecdsa.c \
123         ed25519/ecdsagen.c
124 sptps_test_SOURCES += \
125         ed25519/ecdh.c \
126         ed25519/ecdsa.c
127 sptps_keypair_SOURCES += \
128         ed25519/ecdsagen.c
129 sptps_speed_SOURCES += \
130         ed25519/ecdh.c \
131         ed25519/ecdsa.c \
132         ed25519/ecdsagen.c
133
134 sptps_speed_LDADD = -lrt
135
136 LIBS = @LIBS@
137
138 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"