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 | $(LIBEVENT_CFLAGS) \ |
---|
24 | $(GTK_CFLAGS) \ |
---|
25 | $(LIBCURL_CFLAGS) \ |
---|
26 | $(GIO_CFLAGS) \ |
---|
27 | $(DBUS_GLIB_CFLAGS) \ |
---|
28 | $(LIBNOTIFY_CFLAGS) \ |
---|
29 | $(OPENSSL_CFLAGS) \ |
---|
30 | $(ZLIB_CFLAGS) \ |
---|
31 | $(PTHREAD_CFLAGS) |
---|
32 | |
---|
33 | AM_LDFLAGS = \ |
---|
34 | $(ZLIB_LDFLAGS) |
---|
35 | |
---|
36 | noinst_HEADERS = \ |
---|
37 | actions.h \ |
---|
38 | add-dialog.h \ |
---|
39 | conf.h \ |
---|
40 | details.h \ |
---|
41 | dialogs.h \ |
---|
42 | hig.h \ |
---|
43 | icons.h \ |
---|
44 | file-list.h \ |
---|
45 | lock.h \ |
---|
46 | logo.h \ |
---|
47 | makemeta-ui.h \ |
---|
48 | msgwin.h \ |
---|
49 | notify.h \ |
---|
50 | options-icon.h \ |
---|
51 | relocate.h \ |
---|
52 | stats.h \ |
---|
53 | sexy-icon-entry.h \ |
---|
54 | sexy-marshal.h \ |
---|
55 | torrent-cell-renderer.h \ |
---|
56 | tracker-list.h \ |
---|
57 | tr-core.h \ |
---|
58 | tr-core-dbus.h \ |
---|
59 | tr-icon.h \ |
---|
60 | tr-prefs.h \ |
---|
61 | tr-torrent.h \ |
---|
62 | tr-window.h \ |
---|
63 | turtles.h \ |
---|
64 | ui.h \ |
---|
65 | util.h |
---|
66 | |
---|
67 | bin_PROGRAMS = transmission |
---|
68 | |
---|
69 | dbus_generated_sources = tr-core-dbus.h |
---|
70 | |
---|
71 | transmission_SOURCES = \ |
---|
72 | actions.c \ |
---|
73 | add-dialog.c \ |
---|
74 | conf.c \ |
---|
75 | details.c \ |
---|
76 | dialogs.c \ |
---|
77 | file-list.c \ |
---|
78 | hig.c \ |
---|
79 | icons.c \ |
---|
80 | main.c \ |
---|
81 | makemeta-ui.c \ |
---|
82 | msgwin.c \ |
---|
83 | notify.c \ |
---|
84 | relocate.c \ |
---|
85 | sexy-icon-entry.c \ |
---|
86 | sexy-marshal.c \ |
---|
87 | stats.c \ |
---|
88 | torrent-cell-renderer.c \ |
---|
89 | tracker-list.c \ |
---|
90 | tr-core.c \ |
---|
91 | tr-icon.c \ |
---|
92 | tr-prefs.c \ |
---|
93 | tr-torrent.c \ |
---|
94 | tr-window.c \ |
---|
95 | util.c \ |
---|
96 | $(dbus_generated_sources) |
---|
97 | |
---|
98 | dist_man_MANS = transmission.1 |
---|
99 | |
---|
100 | transmission_LDADD = \ |
---|
101 | $(top_builddir)/libtransmission/libtransmission.a \ |
---|
102 | $(top_builddir)/third-party/miniupnp/libminiupnp.a \ |
---|
103 | $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ |
---|
104 | $(DHT_LIBS) \ |
---|
105 | $(GTK_LIBS) \ |
---|
106 | $(GIO_LIBS) \ |
---|
107 | $(LIBNOTIFY_LIBS) \ |
---|
108 | $(LIBEVENT_LIBS) \ |
---|
109 | $(DBUS_GLIB_LIBS) \ |
---|
110 | $(OPENSSL_LIBS) \ |
---|
111 | $(LIBCURL_LIBS) \ |
---|
112 | $(ZLIB_LIBS) \ |
---|
113 | $(PTHREAD_LIBS) |
---|
114 | |
---|
115 | DESKTOP_IN_FILES=transmission.desktop.in |
---|
116 | DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop) |
---|
117 | @INTLTOOL_DESKTOP_RULE@ |
---|
118 | |
---|
119 | Productivitydir = $(datadir)/applications |
---|
120 | Productivity_DATA = $(DESKTOP_FILES) |
---|
121 | |
---|
122 | icon_DATA = transmission.png |
---|
123 | icondir = $(datadir)/pixmaps |
---|
124 | |
---|
125 | EXTRA_DIST = \ |
---|
126 | $(DESKTOP_IN_FILES) \ |
---|
127 | marshal.list \ |
---|
128 | tr-core-dbus.xml \ |
---|
129 | transmission.png |
---|
130 | |
---|
131 | DISTCLEANFILES = \ |
---|
132 | transmission.desktop |
---|
133 | |
---|
134 | CLEANFILES = $(dbus_generated_sources) |
---|
135 | |
---|
136 | $(srcdir)/tr-core.c: tr-core-dbus.h |
---|
137 | |
---|
138 | tr-core-dbus.h: $(srcdir)/tr-core-dbus.xml |
---|
139 | $(DBUS_BINDING_TOOL) --mode=glib-server --prefix=tr_core $< > $(@F) |
---|
140 | |
---|
141 | if WIN32 |
---|
142 | |
---|
143 | transmission.res: transmission.rc |
---|
144 | $(WINDRES) -J rc -i transmission.rc -O coff -o transmission.res |
---|
145 | |
---|
146 | BUILT_SOURCES = \ |
---|
147 | sexy-marshal.h \ |
---|
148 | sexy-marshal.c \ |
---|
149 | setransmission.res |
---|
150 | |
---|
151 | CLEANFILES += \ |
---|
152 | transmission.res |
---|
153 | |
---|
154 | transmission_LDADD += \ |
---|
155 | transmission.res |
---|
156 | |
---|
157 | transmission_LDFLAGS = \ |
---|
158 | -mwindows |
---|
159 | |
---|
160 | else |
---|
161 | |
---|
162 | BUILT_SOURCES = \ |
---|
163 | sexy-marshal.h \ |
---|
164 | sexy-marshal.c |
---|
165 | |
---|
166 | endif |
---|