source: trunk/gtk/Makefile.am @ 8149

Last change on this file since 8149 was 8149, checked in by charles, 12 years ago

(trunk) If avahi's zeroconf implementation is available, use it to advertise our web ui

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    $(AVAHI_LIBS) \
113    $(PTHREAD_LIBS) -lm
114
115DESKTOP_IN_FILES=transmission.desktop.in
116DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop)
117@INTLTOOL_DESKTOP_RULE@
118
119Productivitydir = $(datadir)/applications
120Productivity_DATA = $(DESKTOP_FILES)
121
122icon_DATA = transmission.png
123icondir = $(datadir)/pixmaps
124
125EXTRA_DIST = \
126    $(DESKTOP_IN_FILES) \
127    marshal.list \
128    tr-core-dbus.xml \
129    transmission.png
130
131DISTCLEANFILES = \
132    transmission.desktop
133
134CLEANFILES = $(dbus_generated_sources)
135
136$(srcdir)/tr-core.c: tr-core-dbus.h
137
138tr-core-dbus.h: $(srcdir)/tr-core-dbus.xml
139        $(DBUS_BINDING_TOOL) --mode=glib-server --prefix=tr_core $< > $(@F)
140
141if WIN32
142
143transmission.res: transmission.rc
144        $(WINDRES) -J rc -i transmission.rc -O coff -o transmission.res
145
146BUILT_SOURCES = \
147        sexy-marshal.h \
148        sexy-marshal.c \
149        setransmission.res
150
151CLEANFILES += \
152        transmission.res
153
154transmission_LDADD += \
155        transmission.res
156
157transmission_LDFLAGS = \
158        -mwindows
159
160else
161
162BUILT_SOURCES = \
163        sexy-marshal.h \
164        sexy-marshal.c
165
166endif
Note: See TracBrowser for help on using the repository browser.