2009-12-18 05:02:48 +00:00
|
|
|
AM_CPPFLAGS = \
|
2013-01-19 08:43:26 +00:00
|
|
|
-I$(top_srcdir) \
|
|
|
|
-D__TRANSMISSION__ \
|
|
|
|
-DPACKAGE_DATA_DIR=\""$(datadir)"\"
|
2008-08-14 10:35:11 +00:00
|
|
|
|
2008-11-09 15:43:31 +00:00
|
|
|
AM_CFLAGS = \
|
2013-01-19 08:43:26 +00:00
|
|
|
@DHT_CFLAGS@ \
|
2015-01-01 21:16:36 +00:00
|
|
|
@LIBB64_CFLAGS@ \
|
2013-01-19 08:43:26 +00:00
|
|
|
@LIBUTP_CFLAGS@ \
|
|
|
|
@LIBUPNP_CFLAGS@ \
|
|
|
|
@LIBNATPMP_CFLAGS@ \
|
|
|
|
@LIBEVENT_CFLAGS@ \
|
|
|
|
@LIBCURL_CFLAGS@ \
|
2015-01-07 02:04:08 +00:00
|
|
|
@CRYPTO_CFLAGS@ \
|
2013-01-19 08:43:26 +00:00
|
|
|
@PTHREAD_CFLAGS@ \
|
|
|
|
@ZLIB_CFLAGS@
|
2007-07-18 23:04:26 +00:00
|
|
|
|
|
|
|
noinst_LIBRARIES = libtransmission.a
|
|
|
|
|
|
|
|
libtransmission_a_SOURCES = \
|
2013-01-19 08:43:26 +00:00
|
|
|
announcer.c \
|
|
|
|
announcer-http.c \
|
|
|
|
announcer-udp.c \
|
|
|
|
bandwidth.c \
|
|
|
|
bitfield.c \
|
|
|
|
blocklist.c \
|
|
|
|
cache.c \
|
|
|
|
clients.c \
|
|
|
|
completion.c \
|
|
|
|
ConvertUTF.c \
|
|
|
|
crypto.c \
|
2014-12-04 11:27:38 +00:00
|
|
|
crypto-utils.c \
|
#4400, #5462: Move DH helpers to crypto-utils
On a way to factoring out OpenSSL support to a standalone file to ease
addition of other crypto libraries support in the future, move helpers
providing DH key exchange to crypto-utils.{c,h}. OpenSSL-related
functionality (DH context management) is moved to crypto-utils-openssl.c.
Since we know in advance that DH secret key management code will be the
same for most of backends, implement common functionality in separate
crypto-utils-fallback.c.
Add new tr_dh_ctx_t and tr_dh_secret_t types and functions to be
implemented by crypto backends:
* tr_dh_new - allocate DH context,
* tr_dh_free - free the context,
* tr_dh_make_key - generate private/public keypair,
* tr_dh_agree - perform DH key exchange and generate secret key,
* tr_dh_secret_derive - calculate secret key hash,
* tr_dh_secret_free - free the secret key,
* tr_dh_align_key - align some DH key in the buffer allocated for it.
Make DH secret key not accessible in plain form outside the crypto
backend. This allows for implementations where the key is managed by
the underlying library and is not even exposed to our backend.
2014-12-04 19:18:08 +00:00
|
|
|
crypto-utils-fallback.c \
|
2014-06-23 02:38:53 +00:00
|
|
|
error.c \
|
2013-01-19 08:43:26 +00:00
|
|
|
fdlimit.c \
|
2014-09-21 17:57:45 +00:00
|
|
|
file.c \
|
2013-01-19 08:43:26 +00:00
|
|
|
handshake.c \
|
|
|
|
history.c \
|
|
|
|
inout.c \
|
2020-08-11 18:11:55 +00:00
|
|
|
jsonsl.c \
|
2013-01-19 08:43:26 +00:00
|
|
|
list.c \
|
2013-01-25 23:34:20 +00:00
|
|
|
log.c \
|
2013-01-19 08:43:26 +00:00
|
|
|
magnet.c \
|
|
|
|
makemeta.c \
|
|
|
|
metainfo.c \
|
|
|
|
natpmp.c \
|
|
|
|
net.c \
|
|
|
|
peer-io.c \
|
|
|
|
peer-mgr.c \
|
|
|
|
peer-msgs.c \
|
|
|
|
platform.c \
|
2013-07-08 17:07:31 +00:00
|
|
|
platform-quota.c \
|
2013-01-19 08:43:26 +00:00
|
|
|
port-forwarding.c \
|
|
|
|
ptrarray.c \
|
|
|
|
quark.c \
|
|
|
|
resume.c \
|
|
|
|
rpcimpl.c \
|
|
|
|
rpc-server.c \
|
|
|
|
session.c \
|
2016-09-27 18:36:01 +00:00
|
|
|
session-id.c \
|
2013-01-19 08:43:26 +00:00
|
|
|
stats.c \
|
|
|
|
torrent.c \
|
|
|
|
torrent-ctor.c \
|
|
|
|
torrent-magnet.c \
|
2017-06-08 07:24:12 +00:00
|
|
|
tr-assert.c \
|
2013-01-19 08:43:26 +00:00
|
|
|
tr-dht.c \
|
|
|
|
tr-lpd.c \
|
|
|
|
tr-udp.c \
|
|
|
|
tr-utp.c \
|
|
|
|
tr-getopt.c \
|
|
|
|
trevent.c \
|
|
|
|
upnp.c \
|
|
|
|
utils.c \
|
|
|
|
variant.c \
|
|
|
|
variant-benc.c \
|
|
|
|
variant-json.c \
|
|
|
|
verify.c \
|
2016-01-02 14:28:59 +00:00
|
|
|
watchdir.c \
|
|
|
|
watchdir-generic.c \
|
2013-01-19 08:43:26 +00:00
|
|
|
web.c \
|
|
|
|
webseed.c \
|
|
|
|
wildmat.c
|
2007-07-18 23:04:26 +00:00
|
|
|
|
2016-01-02 14:28:59 +00:00
|
|
|
if USE_INOTIFY
|
|
|
|
libtransmission_a_SOURCES += watchdir-inotify.c
|
2016-01-04 19:14:38 +00:00
|
|
|
AM_CPPFLAGS += -DWITH_INOTIFY
|
2016-01-02 14:28:59 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_KQUEUE
|
|
|
|
libtransmission_a_SOURCES += watchdir-kqueue.c
|
2016-01-04 19:14:38 +00:00
|
|
|
AM_CPPFLAGS += -DWITH_KQUEUE
|
2016-01-02 14:28:59 +00:00
|
|
|
endif
|
|
|
|
|
2014-07-03 21:58:39 +00:00
|
|
|
if WIN32
|
2017-11-27 22:22:44 +00:00
|
|
|
libtransmission_a_SOURCES += file-win32.c subprocess-win32.c watchdir-win32.c
|
2014-07-03 21:58:39 +00:00
|
|
|
else
|
2017-11-27 22:22:44 +00:00
|
|
|
libtransmission_a_SOURCES += file-posix.c subprocess-posix.c
|
2014-07-03 21:58:39 +00:00
|
|
|
endif
|
|
|
|
|
2015-01-21 22:32:27 +00:00
|
|
|
if CRYPTO_USE_OPENSSL
|
|
|
|
libtransmission_a_SOURCES += crypto-utils-openssl.c
|
|
|
|
endif
|
|
|
|
if CRYPTO_USE_CYASSL
|
|
|
|
libtransmission_a_SOURCES += crypto-utils-cyassl.c
|
2016-10-26 19:12:51 +00:00
|
|
|
if CYASSL_IS_WOLFSSL
|
|
|
|
AM_CPPFLAGS += -DCYASSL_IS_WOLFSSL
|
|
|
|
endif
|
2015-01-21 22:32:27 +00:00
|
|
|
endif
|
|
|
|
if CRYPTO_USE_POLARSSL
|
|
|
|
libtransmission_a_SOURCES += crypto-utils-polarssl.c
|
2016-10-26 17:37:10 +00:00
|
|
|
if POLARSSL_IS_MBEDTLS
|
|
|
|
AM_CPPFLAGS += -DPOLARSSL_IS_MBEDTLS
|
|
|
|
endif
|
2015-01-21 22:32:27 +00:00
|
|
|
endif
|
|
|
|
|
2007-07-18 23:04:26 +00:00
|
|
|
noinst_HEADERS = \
|
2013-01-19 08:43:26 +00:00
|
|
|
announcer.h \
|
|
|
|
announcer-common.h \
|
|
|
|
bandwidth.h \
|
|
|
|
bitfield.h \
|
|
|
|
blocklist.h \
|
|
|
|
cache.h \
|
|
|
|
clients.h \
|
|
|
|
ConvertUTF.h \
|
|
|
|
crypto.h \
|
2014-12-04 11:27:38 +00:00
|
|
|
crypto-utils.h \
|
2013-01-19 08:43:26 +00:00
|
|
|
completion.h \
|
2014-06-23 02:38:53 +00:00
|
|
|
error.h \
|
2014-12-10 18:23:11 +00:00
|
|
|
error-types.h \
|
2013-01-19 08:43:26 +00:00
|
|
|
fdlimit.h \
|
2014-07-03 21:58:39 +00:00
|
|
|
file.h \
|
2013-01-19 08:43:26 +00:00
|
|
|
handshake.h \
|
|
|
|
history.h \
|
|
|
|
inout.h \
|
|
|
|
jsonsl.c \
|
|
|
|
jsonsl.h \
|
|
|
|
list.h \
|
2013-01-25 23:34:20 +00:00
|
|
|
log.h \
|
2013-01-19 08:43:26 +00:00
|
|
|
magnet.h \
|
|
|
|
makemeta.h \
|
|
|
|
metainfo.h \
|
|
|
|
natpmp_local.h \
|
|
|
|
net.h \
|
|
|
|
peer-common.h \
|
|
|
|
peer-io.h \
|
|
|
|
peer-mgr.h \
|
|
|
|
peer-msgs.h \
|
2017-06-28 15:46:06 +00:00
|
|
|
peer-socket.h \
|
2013-01-19 08:43:26 +00:00
|
|
|
platform.h \
|
2013-07-08 17:07:31 +00:00
|
|
|
platform-quota.h \
|
2013-01-19 08:43:26 +00:00
|
|
|
port-forwarding.h \
|
|
|
|
ptrarray.h \
|
|
|
|
quark.h \
|
|
|
|
resume.h \
|
|
|
|
rpcimpl.h \
|
|
|
|
rpc-server.h \
|
|
|
|
session.h \
|
2016-09-27 18:36:01 +00:00
|
|
|
session-id.h \
|
2013-01-19 08:43:26 +00:00
|
|
|
stats.h \
|
2017-11-27 22:22:44 +00:00
|
|
|
subprocess.h \
|
2013-01-19 08:43:26 +00:00
|
|
|
torrent.h \
|
|
|
|
torrent-magnet.h \
|
|
|
|
tr-getopt.h \
|
|
|
|
transmission.h \
|
2017-06-08 07:24:12 +00:00
|
|
|
tr-assert.h \
|
2013-01-19 08:43:26 +00:00
|
|
|
tr-dht.h \
|
2017-06-18 12:34:21 +00:00
|
|
|
tr-macros.h \
|
2013-01-19 08:43:26 +00:00
|
|
|
tr-udp.h \
|
|
|
|
tr-utp.h \
|
|
|
|
tr-lpd.h \
|
|
|
|
trevent.h \
|
|
|
|
upnp.h \
|
|
|
|
utils.h \
|
|
|
|
variant.h \
|
|
|
|
variant-common.h \
|
|
|
|
verify.h \
|
|
|
|
version.h \
|
2016-01-02 14:28:59 +00:00
|
|
|
watchdir.h \
|
|
|
|
watchdir-common.h \
|
2013-01-19 08:43:26 +00:00
|
|
|
web.h \
|
|
|
|
webseed.h
|
2007-10-24 17:20:50 +00:00
|
|
|
|
2008-03-05 00:50:53 +00:00
|
|
|
noinst_PROGRAMS = $(TESTS)
|
2008-01-06 21:56:30 +00:00
|
|
|
|
2008-11-12 04:25:38 +00:00
|
|
|
apps_ldadd = \
|
2013-01-19 08:43:26 +00:00
|
|
|
./libtransmission.a \
|
|
|
|
@LIBUPNP_LIBS@ \
|
|
|
|
@LIBNATPMP_LIBS@ \
|
|
|
|
@INTLLIBS@ \
|
|
|
|
@DHT_LIBS@ \
|
2015-01-01 21:16:36 +00:00
|
|
|
@LIBB64_LIBS@ \
|
2013-01-19 08:43:26 +00:00
|
|
|
@LIBUTP_LIBS@ \
|
|
|
|
@LIBCURL_LIBS@ \
|
|
|
|
@LIBEVENT_LIBS@ \
|
2015-01-07 02:04:08 +00:00
|
|
|
@CRYPTO_LIBS@ \
|
2013-01-19 08:43:26 +00:00
|
|
|
@PTHREAD_LIBS@ \
|
2014-08-20 17:14:17 +00:00
|
|
|
@ZLIB_LIBS@ \
|
|
|
|
${LIBM}
|
2008-01-06 21:56:30 +00:00
|
|
|
|