source: trunk/libtransmission/Makefile.am @ 5201

Last change on this file since 5201 was 5201, checked in by charles, 14 years ago

added `benc2php' utility

File size: 2.4 KB
Line 
1AM_CPPFLAGS = -I. -I$(top_srcdir) -I$(top_srcdir)/third-party/ -D__TRANSMISSION__ $(LIBEVENT_CPPFLAGS)
2AM_CFLAGS = $(OPENSSL_CFLAGS) $(PTHREAD_CFLAGS)
3
4noinst_LIBRARIES = libtransmission.a
5
6libtransmission_a_SOURCES = \
7    bencode.c \
8    clients.c \
9    completion.c \
10    crypto.c \
11    fastresume.c \
12    fdlimit.c \
13    handshake.c \
14    inout.c \
15    ipcparse.c \
16    list.c \
17    makemeta.c \
18    metainfo.c \
19    natpmp.c \
20    net.c \
21    peer-io.c \
22    peer-mgr.c \
23    peer-msgs.c \
24    platform.c \
25    ptrarray.c \
26    publish.c \
27    ratecontrol.c \
28    shared.c \
29    stats.c \
30    torrent.c \
31    torrent-ctor.c \
32    tracker.c \
33    transmission.c \
34    trevent.c \
35    upnp.c \
36    utils.c \
37    verify.c
38
39noinst_HEADERS = \
40    bencode.h \
41    clients.h \
42    crypto.h \
43    completion.h \
44    fastresume.h \
45    fdlimit.h \
46    handshake.h \
47    inout.h \
48    internal.h \
49    ipcparse.h \
50    list.h \
51    makemeta.h \
52    metainfo.h \
53    natpmp.h \
54    net.h \
55    peer-io.h \
56    peer-mgr.h \
57    peer-mgr-private.h \
58    peer-msgs.h \
59    platform.h \
60    ptrarray.h \
61    publish.h \
62    ratecontrol.h \
63    shared.h \
64    stats.h \
65    torrent.h \
66    tracker.h \
67    transmission.h \
68    trcompat.h \
69    trevent.h \
70    upnp.h \
71    utils.h \
72    verify.h
73
74bin_PROGRAMS = benc2php
75
76TESTS = \
77    bencode-test \
78    test-fastset \
79    test-peer-id
80
81noinst_PROGRAMS = $(TESTS)
82
83APPS_LDADD = \
84    ./libtransmission.a  \
85    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
86    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
87    $(top_builddir)/third-party/libevent/libevent.la \
88    $(OPENSSL_LIBS) $(PTHREAD_LIBS) -lm
89
90benc2php_SOURCES = benc2php.c
91benc2php_LDADD = $(APPS_LDADD)
92bencode_test_SOURCES = bencode-test.c
93bencode_test_LDADD = $(APPS_LDADD)
94test_fastset_SOURCES = test-fastset.c
95test_fastset_LDADD = $(APPS_LDADD)
96test_peer_id_SOURCES = test-peer-id.c
97test_peer_id_LDADD = $(APPS_LDADD)
98
99
100
101EXTRA_libtransmission_a_SOURCES = \
102    version.h
103
104BUILT_SOURCES = \
105    version.h
106
107version.h:
108        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
109        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
110        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
111        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
112        echo '#define LONG_VERSION_STRING   "'@USERAGENT_PREFIX@' ('`svn info | grep "Revision" | awk -F': ' '{print $$2}'`')"' >> version.h
Note: See TracBrowser for help on using the repository browser.