X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2FMakefile.am;h=ef0d8d9e800f9d663e2fa9c95fad41d546db7569;hb=f13d66f20a227a87075f6456f41b83ce269b67f4;hp=11dc219e6f1ba3794ed1a108ad937d53865ae246;hpb=a9230a241a1df0328fbfbe5d1c2ee3234bf808fd;p=meshlink diff --git a/src/Makefile.am b/src/Makefile.am index 11dc219e..ef0d8d9e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,15 +1,12 @@ ## Produce this file with automake to get Makefile.in -sbin_PROGRAMS = sptps_test sptps_keypair - -if LINUX -sbin_PROGRAMS += sptps_speed -endif - -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 \ @@ -29,33 +26,8 @@ chacha_poly1305_SOURCES = \ 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 @@ -64,13 +36,10 @@ pkginclude_HEADERS = meshlink++.h meshlink.h 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 \ @@ -85,6 +54,9 @@ libmeshlink_la_SOURCES = \ 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 \ @@ -99,6 +71,7 @@ libmeshlink_la_SOURCES = \ protocol_key.c \ protocol_misc.c \ route.c route.h \ + sockaddr.h \ splay_tree.c splay_tree.h \ sptps.c sptps.h \ system.h \ @@ -109,30 +82,18 @@ libmeshlink_la_SOURCES = \ $(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 -sptps_test_SOURCES += \ - ed25519/ecdh.c \ - ed25519/ecdsa.c -sptps_keypair_SOURCES += \ - ed25519/ecdsagen.c -sptps_speed_SOURCES += \ - ed25519/ecdh.c \ - ed25519/ecdsa.c \ - ed25519/ecdsagen.c + discovery.c discovery.h -sptps_speed_LDADD = -lrt +libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/include/ -LIBS = @LIBS@ +if MINGW +libmeshlink_la_CFLAGS += -I${top_srcdir}/catta/src/compat/windows/include/ +endif -AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\" +libmeshlink_la_LIBADD = ${top_builddir}/catta/src/libcatta.la +endif