ed25519_SOURCES = \
ed25519/add_scalar.c \
+ ed25519/ecdh.c \
+ ed25519/ecdsa.c \
+ ed25519/ecdsagen.c \
ed25519/ed25519.h \
ed25519/fe.c ed25519/fe.h \
ed25519/fixedint.h \
pkginclude_HEADERS = meshlink++.h meshlink.h
-libmeshlink_la_LDFLAGS = -export-symbols-regex '^(meshlink_|devtool_)'
+libmeshlink_la_LDFLAGS = -export-symbols $(srcdir)/meshlink.sym
libmeshlink_la_SOURCES = \
buffer.c buffer.h \
conf.c conf.h \
connection.c connection.h \
crypto.c crypto.h \
- discovery.c discovery.h \
dropin.c dropin.h \
ecdh.h \
ecdsa.h \
have.h \
list.c list.h \
logger.c logger.h \
- meshlink.c meshlink.h \
+ meshlink.c meshlink.h meshlink.sym \
meshlink_internal.h \
meshlink_queue.h \
meta.c meta.h \
net_socket.c \
netutl.c netutl.h \
node.c node.h \
+ submesh.c submesh.h \
prf.c prf.h \
protocol.c protocol.h \
protocol_auth.c \
system.h \
utils.c utils.h \
xalloc.h \
+ xoshiro.c xoshiro.h \
devtools.c devtools.h \
$(ed25519_SOURCES) \
$(chacha_poly1305_SOURCES) \
$(utcp_SOURCES)
-libmeshlink_la_CFLAGS = $(PTHREAD_CFLAGS) -fPIC -I${top_srcdir}/catta/include/ -iquote.
+EXTRA_libmeshlink_la_DEPENDENCIES = $(srcdir)/meshlink.sym
+
+libmeshlink_la_CFLAGS = $(PTHREAD_CFLAGS) -fPIC -iquote.
+libmeshlink_la_LDFLAGS += $(PTHREAD_LIBS)
+
+if CATTA
+libmeshlink_la_SOURCES += \
+ discovery.c discovery.h
+
+libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/include/
if MINGW
libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/src/compat/windows/include/
endif
-libmeshlink_la_LDFLAGS = $(PTHREAD_LIBS)
libmeshlink_la_LIBADD = ${top_builddir}/catta/src/libcatta.la
-
-libmeshlink_la_SOURCES += \
- ed25519/ecdh.c \
- ed25519/ecdsa.c \
- ed25519/ecdsagen.c
+endif