source: trunk/gtk/Makefile.am @ 7087

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

#1443: check for zlib fails when providing a specific path

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