3 include $(top_srcdir)/tools/flymake.mk
7 -I$(top_srcdir)/libempathy \
8 -I$(top_srcdir)/extensions \
9 -DDATADIR=\""$(datadir)"\" \
10 -DPKGDATADIR=\""$(pkgdatadir)"\" \
11 -DGCR_API_SUBJECT_TO_CHANGE \
15 $(LIBCHAMPLAIN_CFLAGS) \
20 $(EGGLISTBOX_CFLAGS) \
25 empathy-account-widgets-resources.c \
26 empathy-account-widgets-resources.h \
27 empathy-gtk-enum-types.h \
28 empathy-gtk-enum-types.c
30 libempathy_gtk_handwritten_source = \
31 empathy-account-chooser.c \
32 empathy-account-selector-dialog.c \
33 empathy-account-widget-irc.c \
34 empathy-account-widget-private.h \
35 empathy-account-widget-sip.c \
36 empathy-account-widget.c \
37 empathy-avatar-chooser.c \
38 empathy-avatar-image.c \
39 empathy-bad-password-dialog.c \
40 empathy-base-password-dialog.c \
41 empathy-calendar-button.c \
42 empathy-call-utils.c \
43 empathy-cell-renderer-activatable.c \
44 empathy-cell-renderer-expander.c \
45 empathy-cell-renderer-text.c \
47 empathy-contact-blocking-dialog.c \
48 empathy-contact-chooser.c \
49 empathy-contactinfo-utils.c \
50 empathy-live-search.c \
51 empathy-contact-search-dialog.c \
52 empathy-contact-widget.c \
53 empathy-dialpad-widget.c \
54 empathy-dialpad-button.c \
56 empathy-groups-widget.c \
57 empathy-individual-dialogs.c \
58 empathy-individual-edit-dialog.c \
59 empathy-individual-information-dialog.c \
60 empathy-individual-menu.c \
61 empathy-individual-store.c \
62 empathy-individual-store-channel.c \
63 empathy-individual-store-manager.c \
64 empathy-individual-view.c \
65 empathy-individual-widget.c \
66 empathy-input-text-view.c \
67 empathy-irc-network-chooser.c \
68 empathy-irc-network-chooser-dialog.c \
69 empathy-irc-network-dialog.c \
70 empathy-local-xmpp-assistant-widget.c \
71 empathy-log-window.c \
72 empathy-new-account-dialog.c \
73 empathy-new-message-dialog.c \
74 empathy-new-call-dialog.c \
75 empathy-notify-manager.c \
76 empathy-password-dialog.c \
77 empathy-presence-chooser.c \
78 empathy-protocol-chooser.c \
79 empathy-roster-contact.c \
80 empathy-roster-group.c \
81 empathy-roster-model.c \
82 empathy-roster-model-aggregator.c \
83 empathy-roster-model-manager.c \
84 empathy-roster-view.c \
85 empathy-search-bar.c \
86 empathy-share-my-desktop.c \
87 empathy-smiley-manager.c \
88 empathy-sound-manager.c \
90 empathy-status-preset-dialog.c \
91 empathy-string-parser.c \
92 empathy-subscription-dialog.c \
93 empathy-theme-manager.c \
94 empathy-tls-dialog.c \
98 empathy-theme-adium.c \
99 empathy-webkit-utils.c \
102 libempathy_gtk_headers = \
103 empathy-account-chooser.h \
104 empathy-account-selector-dialog.h \
105 empathy-account-widget-irc.h \
106 empathy-account-widget-sip.h \
107 empathy-account-widget.h \
108 empathy-avatar-chooser.h \
109 empathy-avatar-image.h \
110 empathy-bad-password-dialog.h \
111 empathy-base-password-dialog.h \
112 empathy-calendar-button.h \
113 empathy-call-utils.h \
114 empathy-cell-renderer-activatable.h \
115 empathy-cell-renderer-expander.h \
116 empathy-cell-renderer-text.h \
118 empathy-contact-blocking-dialog.h \
119 empathy-contact-chooser.h \
120 empathy-live-search.h \
121 empathy-contact-search-dialog.h \
122 empathy-contact-widget.h \
123 empathy-contactinfo-utils.h \
124 empathy-dialpad-widget.h \
125 empathy-dialpad-button.h \
127 empathy-groups-widget.h \
129 empathy-individual-dialogs.h \
130 empathy-individual-edit-dialog.h \
131 empathy-individual-information-dialog.h \
132 empathy-individual-menu.h \
133 empathy-individual-store.h \
134 empathy-individual-store-channel.h \
135 empathy-individual-store-manager.h \
136 empathy-individual-view.h \
137 empathy-individual-widget.h \
138 empathy-input-text-view.h \
139 empathy-irc-network-chooser.h \
140 empathy-irc-network-chooser-dialog.h \
141 empathy-irc-network-dialog.h \
142 empathy-local-xmpp-assistant-widget.h \
143 empathy-log-window.h \
144 empathy-new-account-dialog.h \
145 empathy-new-message-dialog.h \
146 empathy-new-call-dialog.h \
147 empathy-notify-manager.h \
148 empathy-password-dialog.h \
149 empathy-presence-chooser.h \
150 empathy-protocol-chooser.h \
151 empathy-roster-contact.h \
152 empathy-roster-group.h \
153 empathy-roster-model.h \
154 empathy-roster-model-aggregator.h \
155 empathy-roster-model-manager.h \
156 empathy-roster-view.h \
157 empathy-search-bar.h \
158 empathy-share-my-desktop.h \
159 empathy-smiley-manager.h \
160 empathy-sound-manager.h \
162 empathy-status-preset-dialog.h \
163 empathy-string-parser.h \
164 empathy-subscription-dialog.h \
165 empathy-theme-manager.h \
166 empathy-tls-dialog.h \
168 empathy-user-info.h \
170 empathy-theme-adium.h \
171 empathy-webkit-utils.h \
174 pkglib_LTLIBRARIES = libempathy-gtk.la
176 # libempathy-gtk's API is not stable and will never be, so use -release to make the
177 # SONAME of the plugin library change with every Empathy release.
178 libempathy_gtk_la_LDFLAGS = \
180 -release $(VERSION) \
183 libempathy_gtk_la_SOURCES = \
184 $(libempathy_gtk_handwritten_source) \
185 $(libempathy_gtk_headers) \
186 totem-subtitle-encoding.c totem-subtitle-encoding.h
188 # do not distribute generated files
189 nodist_libempathy_gtk_la_SOURCES =\
192 libempathy_gtk_la_LIBADD = \
199 $(LIBCHAMPLAIN_LIBS) \
205 $(top_builddir)/libempathy-gtk/egg-list-box/libegglistbox.la \
206 $(top_builddir)/libempathy/libempathy.la
209 $(libempathy_gtk_handwritten_source) \
210 $(libempathy_gtk_headers)
211 include $(top_srcdir)/tools/check-coding-style.mk
212 check-local: check-coding-style
214 account_widgets_ui_files = \
215 empathy-account-widget-generic.ui \
216 empathy-account-widget-jabber.ui \
217 empathy-account-widget-msn.ui \
218 empathy-account-widget-sip.ui \
219 empathy-account-widget-local-xmpp.ui \
220 empathy-account-widget-irc.ui \
221 empathy-account-widget-icq.ui \
222 empathy-account-widget-yahoo.ui \
223 empathy-account-widget-groupwise.ui \
224 empathy-account-widget-aim.ui \
227 uidir = $(datadir)/empathy
229 empathy-contact-widget.ui \
230 empathy-contact-blocking-dialog.ui \
231 empathy-status-preset-dialog.ui \
232 empathy-log-window.ui \
234 empathy-search-bar.ui \
235 empathy-individual-widget.ui
237 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
239 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
240 $(AM_V_GEN)(cd $(srcdir) \
242 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
243 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
244 --fhead "#include <glib-object.h>\n\n" \
245 --fhead "G_BEGIN_DECLS\n\n" \
246 --ftail "G_END_DECLS\n\n" \
247 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
248 --fprod '#include "@filename@"\n' \
249 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
250 --eprod "GType @enum_name@_get_type (void);\n" \
251 $(libempathy_gtk_headers) ) > xgen-gth \
252 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
254 && echo timestamp > $(@F)
256 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
257 $(AM_V_GEN)(cd $(srcdir) \
259 --fhead "#include <config.h>\n" \
260 --fhead "#include <glib-object.h>\n" \
261 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
262 --fprod "\n/* enumerations from \"@filename@\" */" \
263 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
264 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
265 --vtail " { 0, NULL, NULL }\n};\n\n" \
266 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
267 --vtail " static GType type = 0;\n\n" \
268 --vtail " if (!type)\n" \
269 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
270 --vtail " return type;\n}\n\n" \
271 $(libempathy_gtk_headers) ) > xgen-gtc \
272 && cp xgen-gtc $(@F) \
275 account_widgets_resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir=$(srcdir) $(srcdir)/empathy-account-widgets.gresource.xml)
277 empathy-account-widgets-resources.c: empathy-account-widgets.gresource.xml $(account_widgets_resource_files)
278 $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $<
280 empathy-account-widgets-resources.h: empathy-account-widgets.gresource.xml $(account_widgets_resource_files)
281 $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-header $<
284 empathy-account-widgets.gresource.xml \
285 $(account_widgets_ui_files) \
289 libempathy_gtk_handwritten_source += \
290 empathy-location-manager.c
292 libempathy_gtk_headers += \
293 empathy-location-manager.h
296 empathy-location-manager.c \
297 empathy-location-manager.h
302 stamp-empathy-gtk-enum-types.h