1 include $(top_srcdir)/tools/flymake.mk
9 -DG_LOG_DOMAIN=\"empathy\" \
10 -DBIN_DIR=\"$(bindir)\" \
11 $(DISABLE_DEPRECATED) \
18 $(LIBCHAMPLAIN_CFLAGS) \
23 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
24 $(top_builddir)/libempathy/libempathy.la \
25 $(top_builddir)/extensions/libemp-extensions.la \
29 $(LIBCHAMPLAIN_LIBS) \
32 noinst_LTLIBRARIES = libempathy-accounts-common.la
34 libempathy_accounts_common_la_SOURCES = \
35 empathy-accounts-common.c empathy-accounts-common.h \
36 empathy-account-assistant.c empathy-account-assistant.h \
37 empathy-accounts-dialog.c empathy-accounts-dialog.h \
38 empathy-auto-salut-account-helper.c empathy-auto-salut-account-helper.h \
39 empathy-import-dialog.c empathy-import-dialog.h \
40 empathy-import-pidgin.c empathy-import-pidgin.h \
41 empathy-import-widget.c empathy-import-widget.h \
42 empathy-import-utils.c empathy-import-utils.h \
45 libempathy_accounts_common_la_LIBADD = \
46 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
49 $(LIBCHAMPLAIN_LIBS) \
53 if HAVE_CONTROL_CENTER_EMBEDDING
54 ccmodulesdir = $(CONTROL_CENTER_EXTENSIONDIR)
55 ccmodules_LTLIBRARIES = libempathy-accounts-panel.la
57 libempathy_accounts_panel_la_SOURCES = \
58 empathy-accounts-module.c \
59 cc-empathy-accounts-panel.c \
60 cc-empathy-accounts-panel.h \
63 libempathy_accounts_panel_la_CPPFLAGS = \
65 $(CONTROL_CENTER_EMBEDDING_CFLAGS) \
66 -DLOCALEDIR=\""$(datadir)/locale"\" \
69 libempathy_accounts_panel_la_LDFLAGS = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)'
71 libempathy_accounts_panel_la_LIBADD = \
73 $(CONTROL_CENTER_EMBEDDING_LIBS) \
74 libempathy-accounts-common.la \
94 empathy_accounts_SOURCES = \
95 empathy-accounts.c empathy-accounts.h \
98 empathy_accounts_LDADD = \
100 libempathy-accounts-common.la \
103 empathy_debugger_SOURCES = \
104 empathy-debug-window.c empathy-debug-window.h \
108 empathy_av_SOURCES = \
110 empathy-audio-sink.c \
111 empathy-audio-sink.h \
112 empathy-audio-src.c \
113 empathy-audio-src.h \
114 empathy-streamed-media-factory.c \
115 empathy-streamed-media-factory.h \
116 empathy-streamed-media-handler.c \
117 empathy-streamed-media-handler.h \
118 empathy-streamed-media-window-fullscreen.c \
119 empathy-streamed-media-window-fullscreen.h \
120 empathy-streamed-media-window.c \
121 empathy-streamed-media-window.h \
122 empathy-video-src.c \
123 empathy-video-src.h \
124 empathy-video-widget.c \
125 empathy-video-widget.h \
130 nodist_empathy_av_SOURCES = $(BUILT_SOURCES)
132 empathy_av_CFLAGS = $(EMPATHY_AV_CFLAGS)
133 empathy_av_LDFLAGS = $(EMPATHY_AV_LIBS)
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-audio-sink.c \
163 empathy-audio-sink.h \
164 empathy-audio-src.c \
165 empathy-audio-src.h \
166 empathy-video-src.c \
167 empathy-video-src.h \
168 empathy-video-widget.c \
169 empathy-video-widget.h \
173 nodist_empathy_call_SOURCES = $(BUILT_SOURCES)
175 empathy_call_CFLAGS = $(EMPATHY_CALL_CFLAGS)
176 empathy_call_LDFLAGS = $(EMPATHY_CALL_LIBS)
180 empathy_handwritten_source = \
181 empathy-about-dialog.c empathy-about-dialog.h \
182 empathy-chat-window.c empathy-chat-window.h \
183 empathy-chatrooms-window.c empathy-chatrooms-window.h \
184 empathy-event-manager.c empathy-event-manager.h \
185 empathy-ft-manager.c empathy-ft-manager.h \
186 empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
187 empathy-main-window.c empathy-main-window.h \
188 empathy-migrate-butterfly-logs.c empathy-migrate-butterfly-logs.h \
189 empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h \
190 empathy-notifications-approver.c empathy-notifications-approver.h \
191 empathy-call-observer.c empathy-call-observer.h \
192 empathy-preferences.c empathy-preferences.h \
193 empathy-status-icon.c empathy-status-icon.h \
194 empathy-chat-manager.c empathy-chat-manager.h \
195 gedit-close-button.c gedit-close-button.h \
199 $(empathy_handwritten_source) \
203 libempathy-accounts-common.la \
204 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
205 $(top_builddir)/libempathy/libempathy.la \
206 $(top_builddir)/extensions/libemp-extensions.la \
208 $(LIBCHAMPLAIN_LIBS) \
212 nodist_empathy_SOURCES = $(BUILT_SOURCES)
215 $(empathy_handwritten_source) \
216 $(empathy_logs_SOURCES) \
217 $(empathy_handwritten_av_source)
219 include $(top_srcdir)/tools/check-coding-style.mk
220 check-local: check-coding-style
222 uidir = $(datadir)/empathy
224 empathy-accounts-dialog.ui \
225 empathy-call-window-fullscreen.ui \
226 empathy-call-window.ui \
227 empathy-streamed-media-window.ui \
228 empathy-chat-window.ui \
229 empathy-chatrooms-window.ui \
230 empathy-ft-manager.ui \
231 empathy-import-dialog.ui \
232 empathy-main-window.ui \
233 empathy-new-chatroom-dialog.ui \
234 empathy-preferences.ui \
235 empathy-status-icon.ui
242 empathy_handwritten_source += \
255 if !HAVE_CONTROL_CENTER_EMBEDDING
256 EXTRA_DIST += $(libempathy_accounts_panel_la_SOURCES)
258 check_c_sources += $(libempathy_accounts_panel_la_SOURCES)
265 src-marshal.list: $(empathy_SOURCES) Makefile.am
266 $(AM_V_GEN)( cd $(srcdir) && \
267 sed -n -e 's/.*src_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
268 $(empathy_SOURCES) $(empathy_av_SOURCES) ) \
269 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
270 @if cmp -s $@.tmp $@; then \
276 %-marshal.h: %-marshal.list Makefile
277 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
279 %-marshal.c: %-marshal.list Makefile
280 $(AM_V_GEN)echo "#include \"src-marshal.h\"" > $@ && \
281 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
283 # rules for making the glib enum objects
284 %-enumtypes.h: %.h Makefile.in
285 $(AM_V_GEN)glib-mkenums \
286 --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" \
287 --fprod "/* enumerations from \"@filename@\" */\n" \
288 --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
289 --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
292 %-enumtypes.c: %.h Makefile.in
293 $(AM_V_GEN)glib-mkenums \
294 --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
295 --fprod "\n/* enumerations from \"@filename@\" */" \
296 --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[] = {" \
297 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
298 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
301 CLEANFILES = $(BUILT_SOURCES)