source: trunk/gtk/Makefile.am @ 8097

Last change on this file since 8097 was 8097, checked in by charles, 13 years ago

(trunk) more speedlimit work

File size: 3.4 KB
Line 
1SUBDIRS = icons
2
3if TR_UNSTABLE
4GTK_EXTRA_CPPFLAGS=-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED
5endif
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
10sexy-marshal.h: marshal.list
11        glib-genmarshal --prefix=sexy_marshal ./marshal.list --header > sexy-marshal.h
12
13sexy-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
17AM_CPPFLAGS = \
18    -I$(top_srcdir) \
19    -I$(top_srcdir)/third-party/ \
20    $(LIBEVENT_CPPFLAGS) \
21    -DTRANSMISSIONLOCALEDIR=\""$(transmissionlocaledir)"\" \
22    $(GTK_EXTRA_CPPFLAGS)
23
24AM_CFLAGS = \
25    $(GTK_CFLAGS) \
26    $(LIBCURL_CFLAGS) \
27    $(GIO_CFLAGS) \
28    $(DBUS_GLIB_CFLAGS) \
29    $(LIBNOTIFY_CFLAGS) \
30    $(OPENSSL_CFLAGS) \
31    $(ZLIB_CFLAGS) \
32    $(PTHREAD_CFLAGS)
33
34AM_LDFLAGS = \
35    $(ZLIB_LDFLAGS)
36
37noinst_HEADERS = \
38    actions.h \
39    add-dialog.h \
40    blocklist.h \
41    conf.h \
42    details.h \
43    dialogs.h \
44    hig.h \
45    icons.h \
46    file-list.h \
47    lock.h \
48    logo.h \
49    makemeta-ui.h \
50    msgwin.h \
51    notify.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
67bin_PROGRAMS = transmission
68
69dbus_generated_sources = tr-core-dbus.h
70
71transmission_SOURCES = \
72    actions.c \
73    add-dialog.c \
74    blocklist.c \
75    conf.c \
76    details.c \
77    dialogs.c \
78    file-list.c \
79    hig.c \
80    icons.c \
81    main.c \
82    makemeta-ui.c \
83    msgwin.c \
84    notify.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
98dist_man_MANS = transmission.1
99
100transmission_LDADD = \
101    $(top_builddir)/libtransmission/libtransmission.a \
102    $(top_builddir)/third-party/libevent/libevent.la \
103    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
104    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
105    $(GTK_LIBS) \
106    $(GIO_LIBS) \
107    $(LIBNOTIFY_LIBS) \
108    $(DBUS_GLIB_LIBS) \
109    $(OPENSSL_LIBS) \
110    $(LIBCURL_LIBS) \
111    $(ZLIB_LIBS) \
112    $(PTHREAD_LIBS) -lm
113
114DESKTOP_IN_FILES=transmission.desktop.in
115DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop)
116@INTLTOOL_DESKTOP_RULE@
117
118Productivitydir = $(datadir)/applications
119Productivity_DATA = $(DESKTOP_FILES)
120
121icon_DATA = transmission.png
122icondir = $(datadir)/pixmaps
123
124EXTRA_DIST = \
125    $(DESKTOP_IN_FILES) \
126    marshal.list \
127    tr-core-dbus.xml \
128    transmission.png
129
130DISTCLEANFILES = \
131    transmission.desktop
132
133CLEANFILES = $(dbus_generated_sources)
134
135$(srcdir)/tr-core.c: tr-core-dbus.h
136
137tr-core-dbus.h: $(srcdir)/tr-core-dbus.xml
138        $(DBUS_BINDING_TOOL) --mode=glib-server --prefix=tr_core $< > $(@F)
139
140if WIN32
141
142transmission.res: transmission.rc
143        $(WINDRES) -J rc -i transmission.rc -O coff -o transmission.res
144
145BUILT_SOURCES = \
146        sexy-marshal.h \
147        sexy-marshal.c \
148        setransmission.res
149
150CLEANFILES += \
151        transmission.res
152
153transmission_LDADD += \
154        transmission.res
155
156transmission_LDFLAGS = \
157        -mwindows
158
159else
160
161BUILT_SOURCES = \
162        sexy-marshal.h \
163        sexy-marshal.c
164
165endif
Note: See TracBrowser for help on using the repository browser.