source: trunk/libtransmission/Makefile.am @ 5500

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

#837: portability patch submitted by naddy

File size: 2.6 KB
Line 
1AM_CPPFLAGS = -I. -I$(top_srcdir) -I$(top_srcdir)/third-party/ -D__TRANSMISSION__ $(LIBEVENT_CPPFLAGS)
2AM_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    crypto.c \
12    fastresume.c \
13    fdlimit.c \
14    ggets.c \
15    handshake.c \
16    inout.c \
17    ipcparse.c \
18    list.c \
19    makemeta.c \
20    metainfo.c \
21    natpmp.c \
22    net.c \
23    peer-io.c \
24    peer-mgr.c \
25    peer-msgs.c \
26    platform.c \
27    ptrarray.c \
28    publish.c \
29    ratecontrol.c \
30    shared.c \
31    stats.c \
32    torrent.c \
33    torrent-ctor.c \
34    tracker.c \
35    transmission.c \
36    trevent.c \
37    upnp.c \
38    utils.c \
39    verify.c
40
41noinst_HEADERS = \
42    bencode.h \
43    blocklist.h \
44    clients.h \
45    crypto.h \
46    completion.h \
47    fastresume.h \
48    fdlimit.h \
49    ggets.h \
50    handshake.h \
51    inout.h \
52    internal.h \
53    ipcparse.h \
54    list.h \
55    makemeta.h \
56    metainfo.h \
57    natpmp.h \
58    net.h \
59    peer-io.h \
60    peer-mgr.h \
61    peer-mgr-private.h \
62    peer-msgs.h \
63    platform.h \
64    ptrarray.h \
65    publish.h \
66    ratecontrol.h \
67    shared.h \
68    stats.h \
69    torrent.h \
70    tracker.h \
71    transmission.h \
72    trcompat.h \
73    trevent.h \
74    upnp.h \
75    utils.h \
76    verify.h
77
78bin_PROGRAMS = benc2php
79
80TESTS = \
81    blocklist-test \
82    bencode-test \
83    test-fastset \
84    test-peer-id
85
86noinst_PROGRAMS = $(TESTS)
87
88APPS_LDADD = \
89    ./libtransmission.a  \
90    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
91    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
92    $(top_builddir)/third-party/libevent/libevent.la \
93    $(INTLLIBS) $(OPENSSL_LIBS) $(PTHREAD_LIBS) -lm
94
95benc2php_SOURCES = benc2php.c
96benc2php_LDADD = $(APPS_LDADD)
97bencode_test_SOURCES = bencode-test.c
98bencode_test_LDADD = $(APPS_LDADD)
99blocklist_test_SOURCES = blocklist-test.c
100blocklist_test_LDADD = $(APPS_LDADD)
101test_fastset_SOURCES = test-fastset.c
102test_fastset_LDADD = $(APPS_LDADD)
103test_peer_id_SOURCES = test-peer-id.c
104test_peer_id_LDADD = $(APPS_LDADD)
105
106
107
108EXTRA_libtransmission_a_SOURCES = \
109    version.h
110
111BUILT_SOURCES = \
112    version.h
113
114version.h:
115        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
116        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
117        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
118        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
119        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.