X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2FMakefile.am;h=a28230179fab6dd9de8f89fd5b420cfe4981e893;hb=7b0d9d11fd04546e8741a7930e20057d39a82d5b;hp=64c845d60e278a305e3aa8bdb84d3bcf4472b8e5;hpb=53b00f8c1abda0d477c75e4d70a7341301fa1733;p=meshlink diff --git a/src/Makefile.am b/src/Makefile.am index 64c845d6..a2823017 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -69,6 +69,8 @@ tincd_SOURCES = \ utils.c utils.h \ xalloc.h +tincd_CFLAGS = -fPIC + tinc_SOURCES = \ dropin.c dropin.h \ getopt.c getopt.h \ @@ -85,6 +87,8 @@ tinc_SOURCES = \ top.c top.h \ utils.c utils.h +tinc_CFLAGS = -fPIC + sptps_test_SOURCES = \ logger.c logger.h \ sptps.c sptps.h \ @@ -97,10 +101,79 @@ sptps_speed_SOURCES = \ sptps_speed.c \ utils.c utils.h +lib_LTLIBRARIES = libmeshlink.la + +libmeshlink_la_SOURCES = \ + libmeshlink.c libmeshlink.h \ + buffer.c buffer.h \ + cipher.h \ + conf.c conf.h \ + connection.c connection.h \ + control.c control.h \ + control_common.h \ + crypto.h \ + device.h \ + digest.h \ + dropin.c dropin.h \ + dummy_device.c \ + ecdh.h \ + ecdsa.h \ + ecdsagen.h \ + edge.c edge.h \ + ethernet.h \ + event.c event.h \ + fake-gai-errnos.h \ + fake-getaddrinfo.c fake-getaddrinfo.h \ + fake-getnameinfo.c fake-getnameinfo.h \ + getopt.c getopt.h \ + getopt1.c \ + graph.c graph.h \ + hash.c hash.h \ + have.h \ + ipv4.h \ + ipv6.h \ + list.c list.h \ + logger.c logger.h \ + meta.c meta.h \ + multicast_device.c \ + names.c names.h \ + net.c net.h \ + net_packet.c \ + net_setup.c \ + net_socket.c \ + netutl.c netutl.h \ + node.c node.h \ + prf.h \ + process.c process.h \ + protocol.c protocol.h \ + protocol_auth.c \ + protocol_edge.c \ + protocol_key.c \ + protocol_misc.c \ + protocol_subnet.c \ + raw_socket_device.c \ + route.c route.h \ + rsa.h \ + rsagen.h \ + script.c script.h \ + splay_tree.c splay_tree.h \ + sptps.c sptps.h \ + subnet.c subnet.h \ + subnet_parse.c \ + system.h \ + tincd.c \ + utils.c utils.h \ + xalloc.h + +libmeshlink_la_CFLAGS = -fPIC + +libmeshlink_la_LIBADD = -lpthread + ## Conditionally compile device drivers if LINUX tincd_SOURCES += linux/device.c +libmeshlink_la_SOURCES +=linux/device.c endif if BSD @@ -149,6 +222,16 @@ tinc_SOURCES += \ openssl/prf.c \ openssl/rsa.c \ openssl/rsagen.c +libmeshlink_la_SOURCES += \ + openssl/cipher.c \ + openssl/crypto.c \ + openssl/digest.c openssl/digest.h \ + openssl/ecdh.c \ + openssl/ecdsa.c \ + openssl/ecdsagen.c \ + openssl/prf.c \ + openssl/rsa.c \ + openssl/rsagen.c sptps_test_SOURCES += \ openssl/cipher.c \ openssl/crypto.c \