source: trunk/gtk/Makefile.am @ 8719

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

(trunk) autoconf/automake: move libdht.a into a DHT_LIBS variable

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    -DTRANSMISSIONLOCALEDIR=\""$(transmissionlocaledir)"\" \
20    $(GTK_EXTRA_CPPFLAGS)
21
22AM_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
33AM_LDFLAGS = \
34    $(ZLIB_LDFLAGS)
35
36noinst_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
67bin_PROGRAMS = transmission
68
69dbus_generated_sources = tr-core-dbus.h
70
71transmission_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
98dist_man_MANS = transmission.1
99
100transmission_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) -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.