1 include $(top_srcdir)/tools/flymake.mk
9 -DG_LOG_DOMAIN=\"empathy\" \
10 -DBIN_DIR=\"$(bindir)\" \
11 $(DISABLE_DEPRECATED) \
18 $(LIBCHAMPLAIN_CFLAGS) \
22 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
23 $(top_builddir)/libempathy/libempathy.la \
24 $(top_builddir)/extensions/libemp-extensions.la \
28 $(LIBCHAMPLAIN_LIBS) \
31 noinst_LTLIBRARIES = libempathy-accounts-common.la
33 libempathy_accounts_common_la_SOURCES = \
34 empathy-accounts-common.c empathy-accounts-common.h \
35 empathy-account-assistant.c empathy-account-assistant.h \
36 empathy-accounts-dialog.c empathy-accounts-dialog.h \
37 empathy-auto-salut-account-helper.c empathy-auto-salut-account-helper.h \
38 empathy-import-dialog.c empathy-import-dialog.h \
39 empathy-import-pidgin.c empathy-import-pidgin.h \
40 empathy-import-widget.c empathy-import-widget.h \
41 empathy-import-utils.c empathy-import-utils.h \
44 libempathy_accounts_common_la_LIBADD = \
45 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
48 $(LIBCHAMPLAIN_LIBS) \
51 if HAVE_CONTROL_CENTER_EMBEDDING
52 ccmodulesdir = $(CONTROL_CENTER_EXTENSIONDIR)
53 ccmodules_LTLIBRARIES = libempathy-accounts-panel.la
55 libempathy_accounts_panel_la_SOURCES = \
56 empathy-accounts-module.c \
57 cc-empathy-accounts-panel.c \
58 cc-empathy-accounts-panel.h \
61 libempathy_accounts_panel_la_CPPFLAGS = \
63 $(CONTROL_CENTER_EMBEDDING_CFLAGS) \
64 -DLOCALEDIR=\""$(datadir)/locale"\" \
67 libempathy_accounts_panel_la_LDFLAGS = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)'
69 libempathy_accounts_panel_la_LIBADD = \
71 $(CONTROL_CENTER_EMBEDDING_LIBS) \
72 libempathy-accounts-common.la \
92 empathy_accounts_SOURCES = \
93 empathy-accounts.c empathy-accounts.h \
96 empathy_accounts_LDADD = \
98 libempathy-accounts-common.la \
101 empathy_debugger_SOURCES = \
102 empathy-debug-window.c empathy-debug-window.h \
106 empathy_av_SOURCES = \
108 empathy-audio-sink.c \
109 empathy-audio-sink.h \
110 empathy-audio-src.c \
111 empathy-audio-src.h \
112 empathy-streamed-media-factory.c \
113 empathy-streamed-media-factory.h \
114 empathy-streamed-media-handler.c \
115 empathy-streamed-media-handler.h \
116 empathy-streamed-media-window-fullscreen.c \
117 empathy-streamed-media-window-fullscreen.h \
118 empathy-streamed-media-window.c \
119 empathy-streamed-media-window.h \
120 empathy-video-src.c \
121 empathy-video-src.h \
122 empathy-video-widget.c \
123 empathy-video-widget.h \
126 empathy-mic-monitor.c \
127 empathy-mic-monitor.h
130 nodist_empathy_av_SOURCES = $(BUILT_SOURCES)
132 empathy_av_CFLAGS = $(EMPATHY_AV_CFLAGS)
133 empathy_av_LDFLAGS = $(EMPATHY_AV_LIBS) -lm
135 empathy_auth_client_SOURCES = \
136 empathy-auth-client.c \
139 empathy_chat_SOURCES = \
140 empathy-about-dialog.c empathy-about-dialog.h \
141 empathy-chat-manager.c empathy-chat-manager.h \
142 empathy-chat-window.c empathy-chat-window.h \
143 empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
145 gedit-close-button.c gedit-close-button.h \
150 libexec_PROGRAMS += empathy-call
152 empathy_call_SOURCES = \
154 empathy-call-factory.c \
155 empathy-call-factory.h \
156 empathy-call-handler.c \
157 empathy-call-handler.h \
158 empathy-call-window.c \
159 empathy-call-window.h \
160 empathy-call-window-fullscreen.c \
161 empathy-call-window-fullscreen.h \
162 empathy-about-dialog.c \
163 empathy-about-dialog.h \
164 empathy-audio-sink.c \
165 empathy-audio-sink.h \
166 empathy-audio-src.c \
167 empathy-audio-src.h \
168 empathy-video-src.c \
169 empathy-video-src.h \
170 empathy-video-widget.c \
171 empathy-video-widget.h \
172 empathy-preferences.c \
173 empathy-preferences.h \
176 empathy-camera-menu.c \
177 empathy-camera-menu.h \
180 empathy-rounded-actor.c \
181 empathy-rounded-actor.h \
182 empathy-rounded-rectangle.c \
183 empathy-rounded-rectangle.h \
184 empathy-rounded-texture.c \
185 empathy-rounded-texture.h \
186 empathy-mic-monitor.c \
187 empathy-mic-monitor.h
189 nodist_empathy_call_SOURCES = $(BUILT_SOURCES)
191 empathy_call_CFLAGS = $(EMPATHY_CALL_CFLAGS)
192 empathy_call_LDFLAGS = $(EMPATHY_CALL_LIBS)
196 empathy_handwritten_source = \
197 empathy-about-dialog.c empathy-about-dialog.h \
198 empathy-chat-window.c empathy-chat-window.h \
199 empathy-chatrooms-window.c empathy-chatrooms-window.h \
200 empathy-event-manager.c empathy-event-manager.h \
201 empathy-ft-manager.c empathy-ft-manager.h \
202 empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
203 empathy-main-window.c empathy-main-window.h \
204 empathy-migrate-butterfly-logs.c empathy-migrate-butterfly-logs.h \
205 empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h \
206 empathy-notifications-approver.c empathy-notifications-approver.h \
207 empathy-call-observer.c empathy-call-observer.h \
208 empathy-preferences.c empathy-preferences.h \
209 empathy-status-icon.c empathy-status-icon.h \
210 empathy-chat-manager.c empathy-chat-manager.h \
211 gedit-close-button.c gedit-close-button.h \
215 $(empathy_handwritten_source) \
219 libempathy-accounts-common.la \
220 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
221 $(top_builddir)/libempathy/libempathy.la \
222 $(top_builddir)/extensions/libemp-extensions.la \
224 $(LIBCHAMPLAIN_LIBS) \
227 nodist_empathy_SOURCES = $(BUILT_SOURCES)
230 $(empathy_handwritten_source) \
231 $(empathy_logs_SOURCES) \
232 $(empathy_handwritten_av_source)
234 include $(top_srcdir)/tools/check-coding-style.mk
235 check-local: check-coding-style
237 uidir = $(datadir)/empathy
239 empathy-accounts-dialog.ui \
240 empathy-call-window-fullscreen.ui \
241 empathy-call-window.ui \
242 empathy-streamed-media-window.ui \
243 empathy-chat-window.ui \
244 empathy-chatrooms-window.ui \
245 empathy-ft-manager.ui \
246 empathy-import-dialog.ui \
247 empathy-main-window.ui \
248 empathy-main-window-menubar.ui \
249 empathy-new-chatroom-dialog.ui \
250 empathy-preferences.ui \
251 empathy-status-icon.ui
258 empathy_handwritten_source += \
271 if !HAVE_CONTROL_CENTER_EMBEDDING
272 EXTRA_DIST += $(libempathy_accounts_panel_la_SOURCES)
274 check_c_sources += $(libempathy_accounts_panel_la_SOURCES)
281 src-marshal.list: $(empathy_SOURCES) $(empathy_call_SOURCES) Makefile.am
282 $(AM_V_GEN)( cd $(srcdir) && \
283 sed -n -e 's/.*src_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
284 $(empathy_SOURCES) $(empathy_av_SOURCES) $(empathy_call_SOURCES) ) \
285 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
286 @if cmp -s $@.tmp $@; then \
292 %-marshal.h: %-marshal.list Makefile
293 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
295 %-marshal.c: %-marshal.list Makefile
296 $(AM_V_GEN)echo "#include \"src-marshal.h\"" > $@ && \
297 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
299 # rules for making the glib enum objects
300 %-enumtypes.h: %.h Makefile.in
301 $(AM_V_GEN)glib-mkenums \
302 --fhead "#ifndef __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n#define __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
303 --fprod "/* enumerations from \"@filename@\" */\n" \
304 --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
305 --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
308 %-enumtypes.c: %.h Makefile.in
309 $(AM_V_GEN)glib-mkenums \
310 --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
311 --fprod "\n/* enumerations from \"@filename@\" */" \
312 --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
313 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
314 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
317 CLEANFILES = $(BUILT_SOURCES)