2007-11-06 16:02:50 +00:00
|
|
|
AM_CPPFLAGS = -I. -I$(top_srcdir) -I$(top_srcdir)/third-party/ -D__TRANSMISSION__ $(LIBEVENT_CPPFLAGS)
|
2007-10-28 19:55:03 +00:00
|
|
|
AM_CFLAGS = $(OPENSSL_CFLAGS) $(PTHREAD_CFLAGS)
|
2007-07-18 23:04:26 +00:00
|
|
|
|
|
|
|
noinst_LIBRARIES = libtransmission.a
|
|
|
|
|
|
|
|
libtransmission_a_SOURCES = \
|
|
|
|
bencode.c \
|
|
|
|
clients.c \
|
|
|
|
completion.c \
|
2007-09-20 16:32:01 +00:00
|
|
|
crypto.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
fastresume.c \
|
|
|
|
fdlimit.c \
|
2007-09-20 16:32:01 +00:00
|
|
|
handshake.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
inout.c \
|
|
|
|
ipcparse.c \
|
|
|
|
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 \
|
2007-08-14 20:45:23 +00:00
|
|
|
ptrarray.c \
|
|
|
|
publish.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
ratecontrol.c \
|
|
|
|
shared.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 \
|
2007-07-18 23:04:26 +00:00
|
|
|
tracker.c \
|
|
|
|
transmission.c \
|
2007-08-18 03:02:32 +00:00
|
|
|
trevent.c \
|
2007-07-18 23:04:26 +00:00
|
|
|
upnp.c \
|
2007-11-06 16:02:50 +00:00
|
|
|
utils.c
|
2007-07-18 23:04:26 +00:00
|
|
|
|
|
|
|
noinst_HEADERS = \
|
|
|
|
bencode.h \
|
|
|
|
bsdtree.h \
|
|
|
|
clients.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 \
|
2007-09-20 16:32:01 +00:00
|
|
|
handshake.h \
|
2007-07-18 23:04:26 +00:00
|
|
|
inout.h \
|
|
|
|
internal.h \
|
|
|
|
ipcparse.h \
|
|
|
|
list.h \
|
|
|
|
makemeta.h \
|
|
|
|
metainfo.h \
|
|
|
|
natpmp.h \
|
|
|
|
net.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 \
|
2007-08-14 20:45:23 +00:00
|
|
|
ptrarray.h \
|
|
|
|
publish.h \
|
2007-07-18 23:04:26 +00:00
|
|
|
ratecontrol.h \
|
|
|
|
shared.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 \
|
|
|
|
transmission.h \
|
|
|
|
trcompat.h \
|
2007-08-18 03:02:32 +00:00
|
|
|
trevent.h \
|
2007-07-18 23:04:26 +00:00
|
|
|
upnp.h \
|
2007-11-06 16:02:50 +00:00
|
|
|
utils.h
|
2007-10-24 17:20:50 +00:00
|
|
|
|
2008-01-06 21:56:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
noinst_PROGRAMS = \
|
2008-01-07 17:52:50 +00:00
|
|
|
test-fastset \
|
|
|
|
test-peer-id
|
2008-01-06 21:56:30 +00:00
|
|
|
|
|
|
|
TESTS = $(noinst_PROGRAMS)
|
|
|
|
|
|
|
|
TEST_LDADD = \
|
|
|
|
./libtransmission.a \
|
|
|
|
$(top_builddir)/third-party/miniupnp/libminiupnp.a \
|
|
|
|
$(top_builddir)/third-party/libnatpmp/libnatpmp.a \
|
|
|
|
$(top_builddir)/third-party/libevent/libevent.la \
|
|
|
|
$(OPENSSL_LIBS) $(PTHREAD_LIBS) -lm
|
|
|
|
|
|
|
|
test_fastset_SOURCES = test-fastset.c
|
|
|
|
test_fastset_LDADD = $(TEST_LDADD)
|
2008-01-07 17:52:50 +00:00
|
|
|
test_peer_id_SOURCES = test-peer-id.c
|
|
|
|
test_peer_id_LDADD = $(TEST_LDADD)
|
2008-01-06 21:56:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
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
|