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 -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES |
---|
5 | endif |
---|
6 | |
---|
7 | sexy-marshal.h: marshal.list |
---|
8 | glib-genmarshal --prefix=sexy_marshal ./marshal.list --header > sexy-marshal.h |
---|
9 | |
---|
10 | sexy-marshal.c: marshal.list |
---|
11 | echo '#include "sexy-marshal.h"' > sexy-marshal.c |
---|
12 | glib-genmarshal --prefix=sexy_marshal ./marshal.list --body >> sexy-marshal.c |
---|
13 | |
---|
14 | AM_CPPFLAGS = \ |
---|
15 | -I$(top_srcdir) \ |
---|
16 | -I$(top_srcdir)/third-party/ \ |
---|
17 | $(LIBEVENT_CPPFLAGS) \ |
---|
18 | -DTRANSMISSIONLOCALEDIR=\""$(transmissionlocaledir)"\" \ |
---|
19 | $(GTK_EXTRA_CPPFLAGS) |
---|
20 | |
---|
21 | AM_CFLAGS = \ |
---|
22 | $(GTK_CFLAGS) \ |
---|
23 | $(OPENSSL_CFLAGS) \ |
---|
24 | $(LIBCURL_CFLAGS) \ |
---|
25 | $(PTHREAD_CFLAGS) \ |
---|
26 | $(GIO_CFLAGS) \ |
---|
27 | $(DBUS_GLIB_CFLAGS) \ |
---|
28 | $(LIBNOTIFY_CFLAGS) |
---|
29 | |
---|
30 | noinst_HEADERS = \ |
---|
31 | actions.h \ |
---|
32 | add-dialog.h \ |
---|
33 | blocklist.h \ |
---|
34 | conf.h \ |
---|
35 | details.h \ |
---|
36 | dialogs.h \ |
---|
37 | hig.h \ |
---|
38 | file-list.h \ |
---|
39 | lock.h \ |
---|
40 | logo.h \ |
---|
41 | makemeta-ui.h \ |
---|
42 | msgwin.h \ |
---|
43 | notify.h \ |
---|
44 | stats.h \ |
---|
45 | sexy-icon-entry.h \ |
---|
46 | sexy-marshal.h \ |
---|
47 | torrent-cell-renderer.h \ |
---|
48 | tracker-list.h \ |
---|
49 | tr-core.h \ |
---|
50 | tr-core-dbus.h \ |
---|
51 | tr-icon.h \ |
---|
52 | tr-prefs.h \ |
---|
53 | tr-torrent.h \ |
---|
54 | tr-window.h \ |
---|
55 | ui.h \ |
---|
56 | util.h |
---|
57 | |
---|
58 | bin_PROGRAMS = transmission |
---|
59 | |
---|
60 | dbus_generated_sources = tr-core-dbus.h |
---|
61 | |
---|
62 | transmission_SOURCES = \ |
---|
63 | actions.c \ |
---|
64 | add-dialog.c \ |
---|
65 | blocklist.c \ |
---|
66 | conf.c \ |
---|
67 | details.c \ |
---|
68 | dialogs.c \ |
---|
69 | file-list.c \ |
---|
70 | hig.c \ |
---|
71 | main.c \ |
---|
72 | makemeta-ui.c \ |
---|
73 | msgwin.c \ |
---|
74 | notify.c \ |
---|
75 | sexy-icon-entry.c \ |
---|
76 | sexy-marshal.c \ |
---|
77 | stats.c \ |
---|
78 | torrent-cell-renderer.c \ |
---|
79 | tracker-list.c \ |
---|
80 | tr-core.c \ |
---|
81 | tr-icon.c \ |
---|
82 | tr-prefs.c \ |
---|
83 | tr-torrent.c \ |
---|
84 | tr-window.c \ |
---|
85 | util.c \ |
---|
86 | $(dbus_generated_sources) |
---|
87 | |
---|
88 | dist_man_MANS = transmission.1 |
---|
89 | |
---|
90 | transmission_LDADD = \ |
---|
91 | $(top_builddir)/libtransmission/libtransmission.a \ |
---|
92 | $(top_builddir)/third-party/libevent/libevent.la \ |
---|
93 | $(top_builddir)/third-party/miniupnp/libminiupnp.a \ |
---|
94 | $(top_builddir)/third-party/libnatpmp/libnatpmp.a \ |
---|
95 | $(GTK_LIBS) \ |
---|
96 | $(GIO_LIBS) \ |
---|
97 | $(LIBNOTIFY_LIBS) \ |
---|
98 | $(DBUS_GLIB_LIBS) \ |
---|
99 | $(OPENSSL_LIBS) \ |
---|
100 | $(LIBCURL_LIBS) \ |
---|
101 | $(PTHREAD_LIBS) -lm |
---|
102 | |
---|
103 | DESKTOP_IN_FILES=transmission.desktop.in |
---|
104 | DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop) |
---|
105 | @INTLTOOL_DESKTOP_RULE@ |
---|
106 | |
---|
107 | Productivitydir = $(datadir)/applications |
---|
108 | Productivity_DATA = $(DESKTOP_FILES) |
---|
109 | |
---|
110 | icon_DATA = transmission.png |
---|
111 | icondir = $(datadir)/pixmaps |
---|
112 | |
---|
113 | EXTRA_DIST = \ |
---|
114 | $(DESKTOP_IN_FILES) \ |
---|
115 | marshal.list \ |
---|
116 | tr-core-dbus.xml \ |
---|
117 | transmission.png |
---|
118 | |
---|
119 | DISTCLEANFILES = \ |
---|
120 | transmission.desktop |
---|
121 | |
---|
122 | CLEANFILES = $(dbus_generated_sources) |
---|
123 | |
---|
124 | $(srcdir)/tr-core.c: tr-core-dbus.h |
---|
125 | |
---|
126 | tr-core-dbus.h: $(srcdir)/tr-core-dbus.xml |
---|
127 | $(DBUS_BINDING_TOOL) --mode=glib-server --prefix=tr_core $< > $(@F) |
---|
128 | |
---|
129 | if WIN32 |
---|
130 | |
---|
131 | transmission.res: transmission.rc |
---|
132 | $(WINDRES) -J rc -i transmission.rc -O coff -o transmission.res |
---|
133 | |
---|
134 | BUILT_SOURCES = \ |
---|
135 | sexy-marshal.h \ |
---|
136 | sexy-marshal.c \ |
---|
137 | setransmission.res |
---|
138 | |
---|
139 | CLEANFILES += \ |
---|
140 | transmission.res |
---|
141 | |
---|
142 | transmission_LDADD += \ |
---|
143 | transmission.res |
---|
144 | |
---|
145 | transmission_LDFLAGS = \ |
---|
146 | -mwindows |
---|
147 | |
---|
148 | else |
---|
149 | |
---|
150 | BUILT_SOURCES = \ |
---|
151 | sexy-marshal.h \ |
---|
152 | sexy-marshal.c |
---|
153 | |
---|
154 | endif |
---|