-CFLAGS = @CFLAGS@ -DPKGLIBDIR=$(pkglibdir) -DCONFDIR=\"@sysconfdir@\" \
- -DLOCALEDIR=\"$(localedir)\"
+libmeshlink_la_SOURCES = \
+ buffer.c buffer.h \
+ conf.c conf.h \
+ connection.c connection.h \
+ crypto.c crypto.h \
+ dropin.c dropin.h \
+ ecdh.h \
+ ecdsa.h \
+ ecdsagen.h \
+ edge.c edge.h \
+ event.c event.h \
+ fake-gai-errnos.h \
+ fake-getaddrinfo.c fake-getaddrinfo.h \
+ fake-getnameinfo.c fake-getnameinfo.h \
+ graph.c graph.h \
+ hash.c hash.h \
+ have.h \
+ list.c list.h \
+ logger.c logger.h \
+ meshlink.c meshlink.h meshlink.sym \
+ meshlink_internal.h \
+ meshlink_queue.h \
+ meta.c meta.h \
+ net.c net.h \
+ net_packet.c \
+ net_setup.c \
+ 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 \
+ protocol_edge.c \
+ protocol_key.c \
+ protocol_misc.c \
+ route.c route.h \
+ sockaddr.h \
+ splay_tree.c splay_tree.h \
+ sptps.c sptps.h \
+ system.h \
+ utils.c utils.h \
+ xalloc.h \
+ devtools.c devtools.h \
+ $(ed25519_SOURCES) \
+ $(chacha_poly1305_SOURCES) \
+ $(utcp_SOURCES)
+
+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_LIBADD = ${top_builddir}/catta/src/libcatta.la
+endif