X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2FMakefile.am;h=21e45f7d8dc11ef3ab525bc52d63a8c045056a13;hb=79703f03cde61be1023813486ed3a9521b88f689;hp=bf2122d23568cc24df6d9de3bb4f85ce6138f466;hpb=03aafb2c9ea38c9baf9bc0672001ffe38c91c47d;p=meshlink diff --git a/src/Makefile.am b/src/Makefile.am index bf2122d2..21e45f7d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,12 +1,6 @@ ## 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 \ @@ -28,37 +22,23 @@ chacha_poly1305_SOURCES = \ chacha-poly1305/chacha-poly1305.c chacha-poly1305/chacha-poly1305.h \ chacha-poly1305/poly1305.c chacha-poly1305/poly1305.h -sptps_test_SOURCES = \ - logger.c logger.h \ - sptps.c sptps.h \ - sptps_test.c \ - utils.c utils.h \ - $(ed25519_SOURCES) \ - $(chacha_poly1305_SOURCES) +utcp_SOURCES = \ + utcp/utcp.c utcp/utcp.h -sptps_keypair_SOURCES = \ - sptps_keypair.c \ - utils.c utils.h \ - $(ed25519_SOURCES) +lib_LTLIBRARIES = libmeshlink.la -sptps_speed_SOURCES = \ - logger.c logger.h \ - sptps.c sptps.h \ - sptps_speed.c \ - utils.c utils.h \ - $(ed25519_SOURCES) \ - $(chacha_poly1305_SOURCES) +pkginclude_HEADERS = meshlink++.h meshlink.h -lib_LTLIBRARIES = libmeshlink.la +libmeshlink_la_LDFLAGS = -export-symbols-regex '^(meshlink_|devtool_)' libmeshlink_la_SOURCES = \ - libmeshlink.c libmeshlink.h \ + meshlink.c meshlink.h \ buffer.c buffer.h \ cipher.h \ conf.c conf.h \ connection.c connection.h \ - crypto.h \ - digest.h \ + crypto.c crypto.h \ + discovery.c discovery.h \ dropin.c dropin.h \ ecdh.h \ ecdsa.h \ @@ -80,7 +60,7 @@ libmeshlink_la_SOURCES = \ net_socket.c \ netutl.c netutl.h \ node.c node.h \ - prf.h \ + prf.c prf.h \ protocol.c protocol.h \ protocol_auth.c \ protocol_edge.c \ @@ -90,42 +70,22 @@ libmeshlink_la_SOURCES = \ splay_tree.c splay_tree.h \ sptps.c sptps.h \ system.h \ - tincd.c \ utils.c utils.h \ xalloc.h \ + devtools.c devtools.h \ $(ed25519_SOURCES) \ - $(chacha_poly1305_SOURCES) + $(chacha_poly1305_SOURCES) \ + $(utcp_SOURCES) -libmeshlink_la_CFLAGS = -fPIC +libmeshlink_la_CFLAGS = -fPIC -I../catta/include/ + +if MINGW +libmeshlink_la_CFLAGS += -I../catta/src/compat/windows/include/ +endif -libmeshlink_la_LIBADD = -lpthread +libmeshlink_la_LIBADD = -lpthread ../catta/src/libcatta.la libmeshlink_la_SOURCES += \ - openssl/crypto.c \ - openssl/digest.c openssl/digest.h \ - openssl/ecdh.c \ - openssl/ecdsa.c \ - openssl/ecdsagen.c \ - openssl/prf.c -sptps_test_SOURCES += \ - openssl/crypto.c \ - openssl/digest.c openssl/digest.h \ ed25519/ecdh.c \ ed25519/ecdsa.c \ - openssl/prf.c -sptps_keypair_SOURCES += \ - openssl/crypto.c \ ed25519/ecdsagen.c -sptps_speed_SOURCES += \ - openssl/crypto.c \ - openssl/digest.c openssl/digest.h \ - ed25519/ecdh.c \ - ed25519/ecdsa.c \ - ed25519/ecdsagen.c \ - openssl/prf.c - -sptps_speed_LDADD = -lrt - -LIBS = @LIBS@ - -AM_CFLAGS = -DCONFDIR=\"$(sysconfdir)\" -DLOCALSTATEDIR=\"$(localstatedir)\" -DSBINDIR=\"$(sbindir)\"