source: trunk/libtransmission/Makefile.am @ 5812

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

remove benc2php, since we're going to be using json now.

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