## Produce this file with automake to get Makefile.in
-DEFAULT_INCLUDES =
+AM_CPPFLAGS = -Wall
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 \
chacha-poly1305/poly1305.c chacha-poly1305/poly1305.h
utcp_SOURCES = \
- utcp/utcp.c utcp/utcp.h
-
-sptps_test_SOURCES = \
- crypto.c crypto.h \
- logger.c logger.h \
- prf.c prf.h \
- sptps.c sptps.h \
- sptps_test.c \
- utils.c utils.h \
- $(ed25519_SOURCES) \
- $(chacha_poly1305_SOURCES)
-
-sptps_keypair_SOURCES = \
- crypto.c crypto.h \
- sptps_keypair.c \
- utils.c utils.h \
- $(ed25519_SOURCES)
-
-sptps_speed_SOURCES = \
- crypto.c crypto.h \
- logger.c logger.h \
- prf.c prf.h \
- sptps.c sptps.h \
- sptps_speed.c \
- utils.c utils.h \
- $(ed25519_SOURCES) \
- $(chacha_poly1305_SOURCES)
+ utcp/utcp.c utcp/utcp.h \
+ utcp/utcp_priv.h
lib_LTLIBRARIES = libmeshlink.la
libmeshlink_la_LDFLAGS = -export-symbols-regex '^(meshlink_|devtool_)'
libmeshlink_la_SOURCES = \
- meshlink.c meshlink.h \
buffer.c buffer.h \
- cipher.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_internal.h \
+ meshlink_queue.h \
meta.c meta.h \
net.c net.h \
net_packet.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 \
$(chacha_poly1305_SOURCES) \
$(utcp_SOURCES)
-libmeshlink_la_CFLAGS = -fPIC -I../catta/include/
-
-if MINGW
-libmeshlink_la_CFLAGS += -I../catta/src/compat/windows/include/
-endif
-
-libmeshlink_la_LIBADD = -lpthread ../catta/src/libcatta.la
+libmeshlink_la_CFLAGS = $(PTHREAD_CFLAGS) -fPIC -iquote.
+libmeshlink_la_LDFLAGS += $(PTHREAD_LIBS)
+if CATTA
libmeshlink_la_SOURCES += \
- ed25519/ecdh.c \
- ed25519/ecdsa.c \
- ed25519/ecdsagen.c
+ discovery.c discovery.h
-LIBS = @LIBS@
+libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/include/
-AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"
+if MINGW
+libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/src/compat/windows/include/
+endif
+
+libmeshlink_la_LIBADD = ${top_builddir}/catta/src/libcatta.la
+endif