2008-08-14 10:35:11 +00:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-I. -I$(top_srcdir) -I$(top_srcdir)/third-party/ \
|
|
|
|
-D__TRANSMISSION__ $(LIBEVENT_CPPFLAGS) \
|
|
|
|
-DPACKAGE_DATA_DIR=\""$(datadir)"\"
|
|
|
|
|
2008-11-09 15:43:31 +00:00
|
|
|
AM_CFLAGS = \
|
|
|
|
$(LIBCURL_CFLAGS) \
|
|
|
|
$(OPENSSL_CFLAGS) \
|
|
|
|
$(PTHREAD_CFLAGS) \
|
|
|
|
$(ZLIB_CFLAGS)
|
2007-07-18 23:04:26 +00:00
|
|
|
|
|
|
|
noinst_LIBRARIES = libtransmission.a
|
|
|
|
|
|
|
|
libtransmission_a_SOURCES = \
|
2008-11-24 04:21:23 +00:00
|
|
|
bandwidth.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
bencode.c \
|
2008-03-29 18:37:07 +00:00
|
|
|
blocklist.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
clients.c \
|
|
|
|
completion.c \
|
2008-05-20 17:33:54 +00:00
|
|
|
ConvertUTF.c \
|
2007-09-20 16:32:01 +00:00
|
|
|
crypto.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
fastresume.c \
|
|
|
|
fdlimit.c \
|
2008-03-29 18:37:07 +00:00
|
|
|
ggets.c \
|
2007-09-20 16:32:01 +00:00
|
|
|
handshake.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
inout.c \
|
2008-11-25 21:35:17 +00:00
|
|
|
iobuf.c \
|
2008-05-11 22:42:53 +00:00
|
|
|
json.c \
|
2008-05-21 14:19:49 +00:00
|
|
|
JSON_parser.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
list.c \
|
|
|
|
makemeta.c \
|
|
|
|
metainfo.c \
|
|
|
|
natpmp.c \
|
|
|
|
net.c \
|
2007-09-20 16:32:01 +00:00
|
|
|
peer-io.c \
|
|
|
|
peer-mgr.c \
|
|
|
|
peer-msgs.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
platform.c \
|
2008-04-11 17:01:13 +00:00
|
|
|
port-forwarding.c \
|
2007-08-14 20:45:23 +00:00
|
|
|
ptrarray.c \
|
|
|
|
publish.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
ratecontrol.c \
|
2008-04-13 14:29:11 +00:00
|
|
|
resume.c \
|
2008-09-05 14:31:58 +00:00
|
|
|
rpcimpl.c \
|
2008-05-18 16:44:30 +00:00
|
|
|
rpc-server.c \
|
2008-04-11 17:01:13 +00:00
|
|
|
session.c \
|
2007-11-21 20:03:53 +00:00
|
|
|
stats.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
torrent.c \
|
2007-12-21 16:51:42 +00:00
|
|
|
torrent-ctor.c \
|
2008-07-08 14:29:05 +00:00
|
|
|
tr-getopt.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
tracker.c \
|
2007-08-18 03:02:32 +00:00
|
|
|
trevent.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
upnp.c \
|
2008-02-15 16:00:46 +00:00
|
|
|
utils.c \
|
2008-04-24 01:42:53 +00:00
|
|
|
verify.c \
|
2008-06-07 21:26:41 +00:00
|
|
|
web.c \
|
2008-09-25 18:48:09 +00:00
|
|
|
webseed.c \
|
|
|
|
wildmat.c
|
2007-07-18 23:04:26 +00:00
|
|
|
|
|
|
|
noinst_HEADERS = \
|
2008-11-27 10:23:54 +00:00
|
|
|
bandwidth.h \
|
2007-07-18 23:04:26 +00:00
|
|
|
bencode.h \
|
2008-03-29 18:37:07 +00:00
|
|
|
blocklist.h \
|
2007-07-18 23:04:26 +00:00
|
|
|
clients.h \
|
2008-05-20 17:33:54 +00:00
|
|
|
ConvertUTF.h \
|
2007-09-20 16:32:01 +00:00
|
|
|
crypto.h \
|
2007-07-18 23:04:26 +00:00
|
|
|
completion.h \
|
|
|
|
fastresume.h \
|
|
|
|
fdlimit.h \
|
2008-03-29 18:37:07 +00:00
|
|
|
ggets.h \
|
2007-09-20 16:32:01 +00:00
|
|
|
handshake.h \
|
2007-07-18 23:04:26 +00:00
|
|
|
inout.h \
|
2008-11-25 21:35:17 +00:00
|
|
|
iobuf.h \
|
2008-05-13 12:52:58 +00:00
|
|
|
json.h \
|
2008-05-21 14:19:49 +00:00
|
|
|
JSON_parser.h \
|
2007-07-18 23:04:26 +00:00
|
|
|
list.h \
|
|
|
|
makemeta.h \
|
|
|
|
metainfo.h \
|
|
|
|
natpmp.h \
|
|
|
|
net.h \
|
2008-06-07 21:26:41 +00:00
|
|
|
peer-common.h \
|
2007-09-20 16:32:01 +00:00
|
|
|
peer-io.h \
|
|
|
|
peer-mgr.h \
|
|
|
|
peer-mgr-private.h \
|
|
|
|
peer-msgs.h \
|
2007-07-18 23:04:26 +00:00
|
|
|
platform.h \
|
2008-04-11 17:01:13 +00:00
|
|
|
port-forwarding.h \
|
2007-08-14 20:45:23 +00:00
|
|
|
ptrarray.h \
|
|
|
|
publish.h \
|
2007-07-18 23:04:26 +00:00
|
|
|
ratecontrol.h \
|
2008-04-13 14:29:11 +00:00
|
|
|
resume.h \
|
2008-09-05 14:31:58 +00:00
|
|
|
rpcimpl.h \
|
2008-05-18 16:44:30 +00:00
|
|
|
rpc-server.h \
|
2008-04-11 17:01:13 +00:00
|
|
|
session.h \
|
2007-12-30 19:01:00 +00:00
|
|
|
stats.h \
|
2007-12-30 18:58:17 +00:00
|
|
|
torrent.h \
|
2007-07-18 23:04:26 +00:00
|
|
|
tracker.h \
|
2008-07-08 14:29:05 +00:00
|
|
|
tr-getopt.h \
|
2007-07-18 23:04:26 +00:00
|
|
|
transmission.h \
|
2007-08-18 03:02:32 +00:00
|
|
|
trevent.h \
|
2007-07-18 23:04:26 +00:00
|
|
|
upnp.h \
|
2008-02-15 16:00:46 +00:00
|
|
|
utils.h \
|
2008-04-24 01:42:53 +00:00
|
|
|
verify.h \
|
2008-06-07 21:26:41 +00:00
|
|
|
web.h \
|
|
|
|
webseed.h
|
2007-10-24 17:20:50 +00:00
|
|
|
|
2008-03-05 00:50:53 +00:00
|
|
|
TESTS = \
|
2008-03-29 21:05:51 +00:00
|
|
|
blocklist-test \
|
2008-01-30 15:39:41 +00:00
|
|
|
bencode-test \
|
2008-04-29 16:57:16 +00:00
|
|
|
clients-test \
|
2008-05-11 22:42:53 +00:00
|
|
|
json-test \
|
2008-12-02 17:10:54 +00:00
|
|
|
peer-msgs-test \
|
2008-06-04 17:14:58 +00:00
|
|
|
rpc-test \
|
2008-05-20 17:33:54 +00:00
|
|
|
test-peer-id \
|
|
|
|
utils-test
|
2008-01-06 21:56:30 +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_ldflags = \
|
2008-11-09 15:43:31 +00:00
|
|
|
$(ZLIB_LDFLAGS)
|
|
|
|
|
2008-11-12 04:25:38 +00:00
|
|
|
apps_ldadd = \
|
2008-01-06 21:56:30 +00:00
|
|
|
./libtransmission.a \
|
|
|
|
$(top_builddir)/third-party/miniupnp/libminiupnp.a \
|
|
|
|
$(top_builddir)/third-party/libnatpmp/libnatpmp.a \
|
|
|
|
$(top_builddir)/third-party/libevent/libevent.la \
|
2008-04-24 01:42:53 +00:00
|
|
|
$(INTLLIBS) \
|
|
|
|
$(LIBCURL_LIBS) \
|
2008-08-01 16:43:22 +00:00
|
|
|
$(OPENSSL_LIBS) \
|
2008-04-24 01:42:53 +00:00
|
|
|
$(PTHREAD_LIBS) \
|
2008-11-09 15:43:31 +00:00
|
|
|
$(ZLIB_LIBS) \
|
2008-04-24 01:42:53 +00:00
|
|
|
-lm
|
2008-01-06 21:56:30 +00:00
|
|
|
|
2008-01-30 15:39:41 +00:00
|
|
|
bencode_test_SOURCES = bencode-test.c
|
2008-11-12 04:25:38 +00:00
|
|
|
bencode_test_LDADD = ${apps_ldadd}
|
|
|
|
bencode_test_LDFLAGS = ${apps_ldflags}
|
|
|
|
|
2008-03-29 21:05:51 +00:00
|
|
|
blocklist_test_SOURCES = blocklist-test.c
|
2008-11-12 04:25:38 +00:00
|
|
|
blocklist_test_LDADD = ${apps_ldadd}
|
|
|
|
blocklist_test_LDFLAGS = ${apps_ldflags}
|
|
|
|
|
2008-04-29 16:57:16 +00:00
|
|
|
clients_test_SOURCES = clients-test.c
|
2008-11-12 04:25:38 +00:00
|
|
|
clients_test_LDADD = ${apps_ldadd}
|
|
|
|
clients_test_LDFLAGS = ${apps_ldflags}
|
|
|
|
|
2008-05-11 22:42:53 +00:00
|
|
|
json_test_SOURCES = json-test.c
|
2008-11-12 04:25:38 +00:00
|
|
|
json_test_LDADD = ${apps_ldadd}
|
|
|
|
json_test_LDFLAGS = ${apps_ldflags}
|
|
|
|
|
2008-06-04 17:14:58 +00:00
|
|
|
rpc_test_SOURCES = rpc-test.c
|
2008-11-12 04:25:38 +00:00
|
|
|
rpc_test_LDADD = ${apps_ldadd}
|
|
|
|
rpc_test_LDFLAGS = ${apps_ldflags}
|
|
|
|
|
2008-01-07 17:52:50 +00:00
|
|
|
test_peer_id_SOURCES = test-peer-id.c
|
2008-11-12 04:25:38 +00:00
|
|
|
test_peer_id_LDADD = ${apps_ldadd}
|
|
|
|
test_peer_id_LDFLAGS = ${apps_ldflags}
|
|
|
|
|
2008-12-02 17:10:54 +00:00
|
|
|
peer_msgs_test_SOURCES = peer-msgs-test.c
|
|
|
|
peer_msgs_test_LDADD = ${apps_ldadd}
|
|
|
|
peer_msgs_test_LDFLAGS = ${apps_ldflags}
|
|
|
|
|
2008-05-20 17:33:54 +00:00
|
|
|
utils_test_SOURCES = utils-test.c
|
2008-11-12 04:25:38 +00:00
|
|
|
utils_test_LDADD = ${apps_ldadd}
|
|
|
|
utils_test_LDFLAGS = ${apps_ldflags}
|
|
|
|
|
2008-01-06 21:56:30 +00:00
|
|
|
|
|
|
|
|
2008-05-09 17:51:05 +00:00
|
|
|
clean-local:
|
|
|
|
if test -d .svn; then rm version.h; fi;
|
|
|
|
|
2007-10-24 20:18:13 +00:00
|
|
|
EXTRA_libtransmission_a_SOURCES = \
|
|
|
|
version.h
|
|
|
|
|
|
|
|
BUILT_SOURCES = \
|
2007-10-24 19:57:47 +00:00
|
|
|
version.h
|
2007-10-24 18:36:53 +00:00
|
|
|
|
2007-10-24 19:57:47 +00:00
|
|
|
version.h:
|
|
|
|
echo '#define PEERID_PREFIX "'@PEERID_PREFIX@'"' > version.h
|
|
|
|
echo '#define USERAGENT_PREFIX "'@USERAGENT_PREFIX@'"' >> version.h
|
|
|
|
echo '#define SVN_REVISION "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
|
2008-10-19 17:43:04 +00:00
|
|
|
echo '#define SVN_REVISION_NUM '`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'' >> version.h
|
2007-10-24 19:57:47 +00:00
|
|
|
echo '#define SHORT_VERSION_STRING "'@USERAGENT_PREFIX@'"' >> version.h
|
|
|
|
echo '#define LONG_VERSION_STRING "'@USERAGENT_PREFIX@' ('`svn info | grep "Revision" | awk -F': ' '{print $$2}'`')"' >> version.h
|