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