]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
link to catta instead of avahi
[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 libmeshlink_la_LDFLAGS = -export-symbols-regex '^(meshlink_|devtool_)'
63
64 libmeshlink_la_SOURCES = \
65         meshlink.c meshlink.h \
66         buffer.c buffer.h \
67         cipher.h \
68         conf.c conf.h \
69         connection.c connection.h \
70         crypto.c crypto.h \
71         discovery.c discovery.h \
72         dropin.c dropin.h \
73         ecdh.h \
74         ecdsa.h \
75         ecdsagen.h \
76         edge.c edge.h \
77         event.c event.h \
78         fake-gai-errnos.h \
79         fake-getaddrinfo.c fake-getaddrinfo.h \
80         fake-getnameinfo.c fake-getnameinfo.h \
81         graph.c graph.h \
82         hash.c hash.h \
83         have.h \
84         list.c list.h \
85         logger.c logger.h \
86         meta.c meta.h \
87         net.c net.h \
88         net_packet.c \
89         net_setup.c \
90         net_socket.c \
91         netutl.c netutl.h \
92         node.c node.h \
93         prf.c prf.h \
94         protocol.c protocol.h \
95         protocol_auth.c \
96         protocol_edge.c \
97         protocol_key.c \
98         protocol_misc.c \
99         route.c route.h \
100         splay_tree.c splay_tree.h \
101         sptps.c sptps.h \
102         system.h \
103         utils.c utils.h \
104         xalloc.h \
105         devtools.c devtools.h \
106         $(ed25519_SOURCES) \
107         $(chacha_poly1305_SOURCES) \
108         $(utcp_SOURCES)
109
110 libmeshlink_la_CFLAGS = -fPIC -I../catta/
111
112 libmeshlink_la_LIBADD = -lpthread -luuid ../catta/avahi-core/.libs/libavahi-core.a ../catta/avahi-common/.libs/libavahi-common.a
113
114 libmeshlink_la_SOURCES += \
115         ed25519/ecdh.c \
116         ed25519/ecdsa.c \
117         ed25519/ecdsagen.c
118 sptps_test_SOURCES += \
119         ed25519/ecdh.c \
120         ed25519/ecdsa.c
121 sptps_keypair_SOURCES += \
122         ed25519/ecdsagen.c
123 sptps_speed_SOURCES += \
124         ed25519/ecdh.c \
125         ed25519/ecdsa.c \
126         ed25519/ecdsagen.c
127
128 sptps_speed_LDADD = -lrt
129
130 LIBS = @LIBS@
131
132 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"