1 | SUBDIRS = icons |
---|
2 | |
---|
3 | if TR_UNSTABLE |
---|
4 | GTK_EXTRA_CPPFLAGS=-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED |
---|
5 | endif |
---|
6 | |
---|
7 | # these should go in GTK_EXTRA_CPPFLAGS at some point, but not yet because it breaks libnotify's headers |
---|
8 | # -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES |
---|
9 | |
---|
10 | sexy-marshal.h: marshal.list |
---|
11 | glib-genmarshal --prefix=sexy_marshal ./marshal.list --header > sexy-marshal.h |
---|
12 | |
---|
13 | sexy-marshal.c: marshal.list |
---|
14 | echo '#include "sexy-marshal.h"' > sexy-marshal.c |
---|
15 | glib-genmarshal --prefix=sexy_marshal ./marshal.list --body >> sexy-marshal.c |
---|
16 | |
---|
17 | AM_CPPFLAGS = \ |
---|
18 | -I$(top_srcdir) \ |
---|
19 | -DTRANSMISSIONLOCALEDIR=\""$(transmissionlocaledir)"\" \ |
---|
20 | $(GTK_EXTRA_CPPFLAGS) |
---|
21 | |
---|
22 | AM_CFLAGS = \ |
---|
23 | @LIBAPPINDICATOR_CFLAGS@ \ |
---|
24 | @LIBEVENT_CFLAGS@ \ |
---|
25 | @LIBCANBERRA_CFLAGS@ \ |
---|
26 | @LIBGCONF_CFLAGS@ \ |
---|
27 | @GTK_CFLAGS@ \ |
---|
28 | @LIBCURL_CFLAGS@ \ |
---|
29 | @GIO_CFLAGS@ \ |
---|
30 | @LIBNOTIFY_CFLAGS@ \ |
---|
31 | @DBUS_GLIB_CFLAGS@ \ |
---|
32 | @OPENSSL_CFLAGS@ \ |
---|
33 | @ZLIB_CFLAGS@ \ |
---|
34 | @PTHREAD_CFLAGS@ |
---|
35 | |
---|
36 | AM_LDFLAGS = \ |
---|
37 | @ZLIB_LDFLAGS@ |
---|
38 | |
---|
39 | noinst_HEADERS = \ |
---|
40 | actions.h \ |
---|
41 | add-dialog.h \ |
---|
42 | conf.h \ |
---|
43 | details.h \ |
---|
44 | dialogs.h \ |
---|
45 | hig.h \ |
---|
46 | icons.h \ |
---|
47 | file-list.h \ |
---|
48 | lock.h \ |
---|
49 | logo-24.h \ |
---|
50 | logo-48.h \ |
---|
51 | makemeta-ui.h \ |
---|
52 | msgwin.h \ |
---|
53 | notify.h \ |
---|
54 | options-icon.h \ |
---|
55 | ratio-icon.h \ |
---|
56 | relocate.h \ |
---|
57 | stats.h \ |
---|
58 | sexy-icon-entry.h \ |
---|
59 | sexy-marshal.h \ |
---|
60 | torrent-cell-renderer.h \ |
---|
61 | tracker-list.h \ |
---|
62 | tr-core.h \ |
---|
63 | tr-core-dbus.h \ |
---|
64 | tr-icon.h \ |
---|
65 | tr-prefs.h \ |
---|
66 | tr-torrent.h \ |
---|
67 | tr-window.h \ |
---|
68 | turtles.h \ |
---|
69 | ui.h \ |
---|
70 | util.h |
---|
71 | |
---|
72 | bin_PROGRAMS = transmission |
---|
73 | |
---|
74 | dbus_generated_sources = tr-core-dbus.h |
---|
75 | |
---|
76 | transmission_SOURCES = \ |
---|
77 | actions.c \ |
---|
78 | add-dialog.c \ |
---|
79 | conf.c \ |
---|
80 | details.c \ |
---|
81 | dialogs.c \ |
---|
82 | file-list.c \ |
---|
83 | hig.c \ |
---|
84 | icons.c \ |
---|
85 | main.c \ |
---|
86 | makemeta-ui.c \ |
---|
87 | msgwin.c \ |
---|
88 | notify.c \ |
---|
89 | relocate.c \ |
---|
90 | sexy-icon-entry.c \ |
---|
91 | sexy-marshal.c \ |
---|
92 | stats.c \ |
---|
93 | torrent-cell-renderer.c \ |
---|
94 | tracker-list.c \ |
---|
95 | tr-core.c \ |
---|
96 | tr-icon.c \ |
---|
97 | tr-prefs.c \ |
---|
98 | tr-torrent.c \ |
---|
99 | tr-window.c \ |
---|
100 | util.c \ |
---|
101 | $(dbus_generated_sources) |
---|
102 | |
---|
103 | dist_man_MANS = transmission.1 |
---|
104 | |
---|
105 | transmission_LDADD = \ |
---|
106 | $(top_builddir)/libtransmission/libtransmission.a \ |
---|
107 | $(top_builddir)/third-party/miniupnp/libminiupnp.a \ |
---|
108 | $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ |
---|
109 | @LIBCANBERRA_LIBS@ \ |
---|
110 | @LIBGCONF_LIBS@ \ |
---|
111 | @DHT_LIBS@ \ |
---|
112 | @GTK_LIBS@ \ |
---|
113 | @GIO_LIBS@ \ |
---|
114 | @LIBAPPINDICATOR_LIBS@ \ |
---|
115 | @LIBNOTIFY_LIBS@ \ |
---|
116 | @LIBEVENT_LIBS@ \ |
---|
117 | @DBUS_GLIB_LIBS@ \ |
---|
118 | @LIBCURL_LIBS@ \ |
---|
119 | @OPENSSL_LIBS@ \ |
---|
120 | @ZLIB_LIBS@ \ |
---|
121 | @PTHREAD_LIBS@ |
---|
122 | |
---|
123 | DESKTOP_IN_FILES=transmission.desktop.in |
---|
124 | DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop) |
---|
125 | @INTLTOOL_DESKTOP_RULE@ |
---|
126 | |
---|
127 | Productivitydir = $(datadir)/applications |
---|
128 | Productivity_DATA = $(DESKTOP_FILES) |
---|
129 | |
---|
130 | icon_DATA = transmission.png |
---|
131 | icondir = $(datadir)/pixmaps |
---|
132 | |
---|
133 | EXTRA_DIST = \ |
---|
134 | $(DESKTOP_IN_FILES) \ |
---|
135 | marshal.list \ |
---|
136 | tr-core-dbus.xml \ |
---|
137 | transmission.png |
---|
138 | |
---|
139 | DISTCLEANFILES = \ |
---|
140 | transmission.desktop |
---|
141 | |
---|
142 | CLEANFILES = $(dbus_generated_sources) |
---|
143 | |
---|
144 | $(srcdir)/tr-core.c: tr-core-dbus.h |
---|
145 | |
---|
146 | tr-core-dbus.h: $(srcdir)/tr-core-dbus.xml |
---|
147 | $(DBUS_BINDING_TOOL) --mode=glib-server --prefix=tr_core $< > $(@F) |
---|
148 | |
---|
149 | if WIN32 |
---|
150 | |
---|
151 | transmission.res: transmission.rc |
---|
152 | $(WINDRES) -J rc -i transmission.rc -O coff -o transmission.res |
---|
153 | |
---|
154 | BUILT_SOURCES = \ |
---|
155 | sexy-marshal.h \ |
---|
156 | sexy-marshal.c \ |
---|
157 | setransmission.res |
---|
158 | |
---|
159 | CLEANFILES += \ |
---|
160 | transmission.res |
---|
161 | |
---|
162 | transmission_LDADD += \ |
---|
163 | transmission.res |
---|
164 | |
---|
165 | transmission_LDFLAGS = \ |
---|
166 | -mwindows |
---|
167 | |
---|
168 | else |
---|
169 | |
---|
170 | BUILT_SOURCES = \ |
---|
171 | sexy-marshal.h \ |
---|
172 | sexy-marshal.c |
---|
173 | |
---|
174 | endif |
---|