source: branches/1.5x/libtransmission/Makefile.am @ 7664

Last change on this file since 7664 was 7664, checked in by charles, 13 years ago

(1.5x) updates from trunk: all of build system & libtransmission; bugfixes in daemon, cli, and gtk; sync tr_sessionInit() changes. NOTE: mac end needs to add request-list.[ch] to its libtransmissio rules

File size: 4.1 KB
Line 
1AM_CPPFLAGS = \
2        -I. -I$(top_srcdir) -I$(top_srcdir)/third-party/ \
3        -D__TRANSMISSION__ $(LIBEVENT_CPPFLAGS) \
4        -DPACKAGE_DATA_DIR=\""$(datadir)"\"
5
6AM_CFLAGS = \
7    $(LIBCURL_CFLAGS) \
8    $(OPENSSL_CFLAGS) \
9    $(PTHREAD_CFLAGS) \
10    $(ZLIB_CFLAGS)
11
12noinst_LIBRARIES = libtransmission.a
13
14libtransmission_a_SOURCES = \
15    bandwidth.c \
16    bencode.c \
17    blocklist.c \
18    clients.c \
19    completion.c \
20    ConvertUTF.c \
21    crypto.c \
22    fastresume.c \
23    fdlimit.c \
24    ggets.c \
25    handshake.c \
26    inout.c \
27    json.c \
28    JSON_parser.c \
29    list.c \
30    makemeta.c \
31    metainfo.c \
32    natpmp.c \
33    net.c \
34    peer-io.c \
35    peer-mgr.c \
36    peer-msgs.c \
37    platform.c \
38    port-forwarding.c \
39    ptrarray.c \
40    publish.c \
41    ratecontrol.c \
42    request-list.c \
43    resume.c \
44    rpcimpl.c \
45    rpc-server.c \
46    session.c \
47    stats.c \
48    torrent.c \
49    torrent-ctor.c \
50    tr-getopt.c \
51    tracker.c \
52    trevent.c \
53    upnp.c \
54    utils.c \
55    verify.c \
56    web.c \
57    webseed.c \
58    wildmat.c
59
60noinst_HEADERS = \
61    bandwidth.h \
62    bencode.h \
63    blocklist.h \
64    clients.h \
65    ConvertUTF.h \
66    crypto.h \
67    completion.h \
68    fastresume.h \
69    fdlimit.h \
70    ggets.h \
71    handshake.h \
72    inout.h \
73    json.h \
74    JSON_parser.h \
75    list.h \
76    makemeta.h \
77    metainfo.h \
78    natpmp.h \
79    net.h \
80    peer-common.h \
81    peer-io.h \
82    peer-mgr.h \
83    peer-mgr-private.h \
84    peer-msgs.h \
85    platform.h \
86    port-forwarding.h \
87    ptrarray.h \
88    publish.h \
89    ratecontrol.h \
90    request-list.h \
91    resume.h \
92    rpcimpl.h \
93    rpc-server.h \
94    session.h \
95    stats.h \
96    torrent.h \
97    tracker.h \
98    tr-getopt.h \
99    transmission.h \
100    trevent.h \
101    upnp.h \
102    utils.h \
103    verify.h \
104    web.h \
105    webseed.h
106
107TESTS = \
108    blocklist-test \
109    bencode-test \
110    clients-test \
111    json-test \
112    peer-msgs-test \
113    request-list-test \
114    rpc-test \
115    test-peer-id \
116    utils-test
117
118noinst_PROGRAMS = $(TESTS)
119
120apps_ldflags = \
121    $(ZLIB_LDFLAGS)
122
123apps_ldadd = \
124    ./libtransmission.a  \
125    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
126    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
127    $(top_builddir)/third-party/libevent/libevent.la \
128    $(INTLLIBS) \
129    $(LIBCURL_LIBS) \
130    $(OPENSSL_LIBS) \
131    $(PTHREAD_LIBS) \
132    $(ZLIB_LIBS) \
133    -lm
134
135bencode_test_SOURCES = bencode-test.c
136bencode_test_LDADD = ${apps_ldadd}
137bencode_test_LDFLAGS = ${apps_ldflags}
138
139blocklist_test_SOURCES = blocklist-test.c
140blocklist_test_LDADD = ${apps_ldadd}
141blocklist_test_LDFLAGS = ${apps_ldflags}
142
143clients_test_SOURCES = clients-test.c
144clients_test_LDADD = ${apps_ldadd}
145clients_test_LDFLAGS = ${apps_ldflags}
146
147json_test_SOURCES = json-test.c
148json_test_LDADD = ${apps_ldadd}
149json_test_LDFLAGS = ${apps_ldflags}
150
151rpc_test_SOURCES = rpc-test.c
152rpc_test_LDADD = ${apps_ldadd}
153rpc_test_LDFLAGS = ${apps_ldflags}
154
155test_peer_id_SOURCES = test-peer-id.c
156test_peer_id_LDADD = ${apps_ldadd}
157test_peer_id_LDFLAGS = ${apps_ldflags}
158
159request_list_test_SOURCES = request-list-test.c
160request_list_test_LDADD = ${apps_ldadd}
161request_list_test_LDFLAGS = ${apps_ldflags}
162
163peer_msgs_test_SOURCES = peer-msgs-test.c
164peer_msgs_test_LDADD = ${apps_ldadd}
165peer_msgs_test_LDFLAGS = ${apps_ldflags}
166
167utils_test_SOURCES = utils-test.c
168utils_test_LDADD = ${apps_ldadd}
169utils_test_LDFLAGS = ${apps_ldflags}
170
171
172
173clean-local:
174        if test -d .svn; then if test -e version.h; then rm version.h; fi; fi;
175
176EXTRA_libtransmission_a_SOURCES = \
177    version.h
178
179BUILT_SOURCES = \
180    version.h
181
182version.h:
183        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
184        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
185        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
186        echo '#define SVN_REVISION_NUM      '`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'' >> version.h
187        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
188        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.