source: trunk/libtransmission/Makefile.am @ 6514

Last change on this file since 6514 was 6514, checked in by muks, 13 years ago

Respect non-standard install paths for web interface files

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