source: trunk/libtransmission/Makefile.am @ 3539

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

use BUILT_SOURCES for version.h to ensure it gets built first

File size: 1.8 KB
Line 
1AM_CPPFLAGS = -I. -I$(top_srcdir) -D__TRANSMISSION__ $(LIBEVENT_CPPFLAGS)
2
3AM_CFLAGS = $(PTHREAD_CFLAGS)
4
5noinst_LIBRARIES = libtransmission.a
6
7libtransmission_a_SOURCES = \
8    basename.c \
9    bencode.c \
10    clients.c \
11    completion.c \
12    crypto.c \
13    dirname.c \
14    fastresume.c \
15    fdlimit.c \
16    handshake.c \
17    http.c \
18    inout.c \
19    ipcparse.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    ptrarray.c \
30    publish.c \
31    ratecontrol.c \
32    shared.c \
33    strlcat.c \
34    strlcpy.c \
35    torrent.c \
36    tracker.c \
37    transmission.c \
38    trevent.c \
39    upnp.c \
40    utils.c \
41    xml.c
42
43noinst_HEADERS = \
44    bencode.h \
45    bsdtree.h \
46    clients.h \
47    crypto.h \
48    completion.h \
49    fastresume.h \
50    fdlimit.h \
51    handshake.h \
52    http.h \
53    inout.h \
54    internal.h \
55    ipcparse.h \
56    list.h \
57    makemeta.h \
58    metainfo.h \
59    natpmp.h \
60    net.h \
61    peer-io.h \
62    peer-mgr.h \
63    peer-mgr-private.h \
64    peer-msgs.h \
65    platform.h \
66    ptrarray.h \
67    publish.h \
68    ratecontrol.h \
69    shared.h \
70    tracker.h \
71    transmission.h \
72    trcompat.h \
73    trevent.h \
74    upnp.h \
75    utils.h \
76    xml.h
77
78EXTRA_libtransmission_a_SOURCES = \
79    version.h
80
81BUILT_SOURCES = \
82    version.h
83
84version.h:
85        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
86        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
87        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
88        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
89        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.