source: trunk/libtransmission/Makefile.am @ 6425

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

minor text cleanup

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