source: trunk/libtransmission/Makefile.am @ 7087

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

#1443: check for zlib fails when providing a specific path

File size: 3.5 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    bencode.c \
16    blocklist.c \
17    clients.c \
18    completion.c \
19    ConvertUTF.c \
20    crypto.c \
21    fastresume.c \
22    fdlimit.c \
23    ggets.c \
24    handshake.c \
25    inout.c \
26    json.c \
27    JSON_parser.c \
28    list.c \
29    makemeta.c \
30    metainfo.c \
31    natpmp.c \
32    net.c \
33    peer-io.c \
34    peer-mgr.c \
35    peer-msgs.c \
36    platform.c \
37    port-forwarding.c \
38    ptrarray.c \
39    publish.c \
40    ratecontrol.c \
41    resume.c \
42    rpcimpl.c \
43    rpc-server.c \
44    session.c \
45    stats.c \
46    torrent.c \
47    torrent-ctor.c \
48    tr-getopt.c \
49    tracker.c \
50    trevent.c \
51    upnp.c \
52    utils.c \
53    verify.c \
54    web.c \
55    webseed.c \
56    wildmat.c
57
58noinst_HEADERS = \
59    bencode.h \
60    blocklist.h \
61    clients.h \
62    ConvertUTF.h \
63    crypto.h \
64    completion.h \
65    fastresume.h \
66    fdlimit.h \
67    ggets.h \
68    handshake.h \
69    inout.h \
70    json.h \
71    JSON_parser.h \
72    list.h \
73    makemeta.h \
74    metainfo.h \
75    natpmp.h \
76    net.h \
77    peer-common.h \
78    peer-io.h \
79    peer-mgr.h \
80    peer-mgr-private.h \
81    peer-msgs.h \
82    platform.h \
83    port-forwarding.h \
84    ptrarray.h \
85    publish.h \
86    ratecontrol.h \
87    resume.h \
88    rpcimpl.h \
89    rpc-server.h \
90    session.h \
91    stats.h \
92    torrent.h \
93    tracker.h \
94    tr-getopt.h \
95    transmission.h \
96    trevent.h \
97    upnp.h \
98    utils.h \
99    verify.h \
100    web.h \
101    webseed.h
102
103TESTS = \
104    blocklist-test \
105    bencode-test \
106    clients-test \
107    json-test \
108    rpc-test \
109    test-fastset \
110    test-peer-id \
111    utils-test
112
113noinst_PROGRAMS = $(TESTS)
114
115APPS_LDFLAGS = \
116    $(ZLIB_LDFLAGS)
117
118APPS_LDADD = \
119    ./libtransmission.a  \
120    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
121    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
122    $(top_builddir)/third-party/libevent/libevent.la \
123    $(INTLLIBS) \
124    $(LIBCURL_LIBS) \
125    $(OPENSSL_LIBS) \
126    $(PTHREAD_LIBS) \
127    $(ZLIB_LIBS) \
128    -lm
129
130bencode_test_SOURCES = bencode-test.c
131bencode_test_LDADD = $(APPS_LDADD)
132blocklist_test_SOURCES = blocklist-test.c
133blocklist_test_LDADD = $(APPS_LDADD)
134clients_test_SOURCES = clients-test.c
135clients_test_LDADD = $(APPS_LDADD)
136json_test_SOURCES = json-test.c
137json_test_LDADD = $(APPS_LDADD)
138rpc_test_SOURCES = rpc-test.c
139rpc_test_LDADD = $(APPS_LDADD)
140test_fastset_SOURCES = test-fastset.c
141test_fastset_LDADD = $(APPS_LDADD)
142test_peer_id_SOURCES = test-peer-id.c
143test_peer_id_LDADD = $(APPS_LDADD)
144utils_test_SOURCES = utils-test.c
145utils_test_LDADD = $(APPS_LDADD)
146
147
148clean-local:
149        if test -d .svn; then rm version.h; fi;
150
151EXTRA_libtransmission_a_SOURCES = \
152    version.h
153
154BUILT_SOURCES = \
155    version.h
156
157version.h:
158        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
159        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
160        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
161        echo '#define SVN_REVISION_NUM      '`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'' >> version.h
162        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
163        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.