]> git.meshlink.io Git - meshlink/blob - src/Makefile.am
Merge remote-tracking branch 'origin/everbase' into discovery
[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 sptps_test_SOURCES = \
32         crypto.c crypto.h \
33         logger.c logger.h \
34         prf.c prf.h \
35         sptps.c sptps.h \
36         sptps_test.c \
37         utils.c utils.h \
38         $(ed25519_SOURCES) \
39         $(chacha_poly1305_SOURCES)
40
41 sptps_keypair_SOURCES = \
42         crypto.c crypto.h \
43         sptps_keypair.c \
44         utils.c utils.h \
45         $(ed25519_SOURCES)
46
47 sptps_speed_SOURCES = \
48         crypto.c crypto.h \
49         logger.c logger.h \
50         prf.c prf.h \
51         sptps.c sptps.h \
52         sptps_speed.c \
53         utils.c utils.h \
54         $(ed25519_SOURCES) \
55         $(chacha_poly1305_SOURCES)
56
57 lib_LTLIBRARIES = libmeshlink.la
58
59 libmeshlink_la_LDFLAGS = -export-symbols-regex '^meshlink_'
60
61 libmeshlink_la_SOURCES = \
62         meshlink.c meshlink.h \
63         buffer.c buffer.h \
64         cipher.h \
65         conf.c conf.h \
66         connection.c connection.h \
67         crypto.c crypto.h \
68         discovery.c discovery.h \
69         dropin.c dropin.h \
70         ecdh.h \
71         ecdsa.h \
72         ecdsagen.h \
73         edge.c edge.h \
74         event.c event.h \
75         fake-gai-errnos.h \
76         fake-getaddrinfo.c fake-getaddrinfo.h \
77         fake-getnameinfo.c fake-getnameinfo.h \
78         graph.c graph.h \
79         hash.c hash.h \
80         have.h \
81         list.c list.h \
82         logger.c logger.h \
83         meta.c meta.h \
84         net.c net.h \
85         net_packet.c \
86         net_setup.c \
87         net_socket.c \
88         netutl.c netutl.h \
89         node.c node.h \
90         prf.c prf.h \
91         protocol.c protocol.h \
92         protocol_auth.c \
93         protocol_edge.c \
94         protocol_key.c \
95         protocol_misc.c \
96         route.c route.h \
97         splay_tree.c splay_tree.h \
98         sptps.c sptps.h \
99         system.h \
100         utils.c utils.h \
101         xalloc.h \
102         $(ed25519_SOURCES) \
103         $(chacha_poly1305_SOURCES)
104
105 libmeshlink_la_CFLAGS = -fPIC
106
107 libmeshlink_la_LIBADD = -lpthread -lavahi-core -lavahi-common -lavahi-client
108
109 libmeshlink_la_SOURCES += \
110         ed25519/ecdh.c \
111         ed25519/ecdsa.c \
112         ed25519/ecdsagen.c
113 sptps_test_SOURCES += \
114         ed25519/ecdh.c \
115         ed25519/ecdsa.c
116 sptps_keypair_SOURCES += \
117         ed25519/ecdsagen.c
118 sptps_speed_SOURCES += \
119         ed25519/ecdh.c \
120         ed25519/ecdsa.c \
121         ed25519/ecdsagen.c
122
123 sptps_speed_LDADD = -lrt
124
125 LIBS = @LIBS@
126
127 AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"