1 include $(top_srcdir)/tools/flymake.mk
8 -DG_LOG_DOMAIN=\"empathy\" \
9 -DBIN_DIR=\"$(bindir)\" \
10 $(DISABLE_DEPRECATED) \
17 $(LIBCHAMPLAIN_CFLAGS) \
22 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
23 $(top_builddir)/libempathy/libempathy.la \
24 $(top_builddir)/extensions/libemp-extensions.la \
27 $(LIBCHAMPLAIN_LIBS) \
30 noinst_LTLIBRARIES = libempathy-accounts-common.la
32 libempathy_accounts_common_la_SOURCES = \
33 empathy-accounts-common.c empathy-accounts-common.h \
34 empathy-account-assistant.c empathy-account-assistant.h \
35 empathy-accounts-dialog.c empathy-accounts-dialog.h \
36 empathy-auto-salut-account-helper.c empathy-auto-salut-account-helper.h \
37 empathy-import-dialog.c empathy-import-dialog.h \
38 empathy-import-pidgin.c empathy-import-pidgin.h \
39 empathy-import-widget.c empathy-import-widget.h \
40 empathy-import-utils.c empathy-import-utils.h \
43 libempathy_accounts_common_la_LIBADD = \
44 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
47 $(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-streamed-media-factory.c \
109 empathy-streamed-media-factory.h \
110 empathy-streamed-media-handler.c \
111 empathy-streamed-media-handler.h \
112 empathy-streamed-media-window-fullscreen.c \
113 empathy-streamed-media-window-fullscreen.h \
114 empathy-streamed-media-window.c \
115 empathy-streamed-media-window.h \
120 nodist_empathy_av_SOURCES = $(BUILT_SOURCES)
122 empathy_av_CFLAGS = $(EMPATHY_AV_CFLAGS)
123 empathy_av_LDFLAGS = $(EMPATHY_AV_LIBS)
125 empathy_auth_client_SOURCES = \
126 empathy-auth-client.c \
129 empathy_chat_SOURCES = \
130 empathy-about-dialog.c empathy-about-dialog.h \
131 empathy-chat-manager.c empathy-chat-manager.h \
132 empathy-chat-window.c empathy-chat-window.h \
133 empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
137 empathy_handwritten_source = \
138 empathy-about-dialog.c empathy-about-dialog.h \
139 empathy-chat-window.c empathy-chat-window.h \
140 empathy-chatrooms-window.c empathy-chatrooms-window.h \
141 empathy-event-manager.c empathy-event-manager.h \
142 empathy-ft-manager.c empathy-ft-manager.h \
143 empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
144 empathy-main-window.c empathy-main-window.h \
145 empathy-migrate-butterfly-logs.c empathy-migrate-butterfly-logs.h \
146 empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h \
147 empathy-notifications-approver.c empathy-notifications-approver.h \
148 empathy-preferences.c empathy-preferences.h \
149 empathy-status-icon.c empathy-status-icon.h \
150 empathy-chat-manager.c empathy-chat-manager.h \
154 $(empathy_handwritten_source) \
158 libempathy-accounts-common.la \
159 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
160 $(top_builddir)/libempathy/libempathy.la \
161 $(top_builddir)/extensions/libemp-extensions.la \
163 $(LIBCHAMPLAIN_LIBS) \
167 nodist_empathy_SOURCES = $(BUILT_SOURCES)
170 $(empathy_handwritten_source) \
171 $(empathy_logs_SOURCES) \
172 $(empathy_handwritten_av_source)
174 include $(top_srcdir)/tools/check-coding-style.mk
175 check-local: check-coding-style
177 uidir = $(datadir)/empathy
179 empathy-accounts-dialog.ui \
180 empathy-call-window-fullscreen.ui \
181 empathy-call-window.ui \
182 empathy-chat-window.ui \
183 empathy-chatrooms-window.ui \
184 empathy-ft-manager.ui \
185 empathy-import-dialog.ui \
186 empathy-main-window.ui \
187 empathy-new-chatroom-dialog.ui \
188 empathy-preferences.ui \
189 empathy-status-icon.ui
196 empathy_handwritten_source += \
209 if !HAVE_CONTROL_CENTER_EMBEDDING
210 EXTRA_DIST += $(libempathy_accounts_panel_la_SOURCES)
212 check_c_sources += $(libempathy_accounts_panel_la_SOURCES)
219 src-marshal.list: $(empathy_SOURCES) Makefile.am
220 $(AM_V_GEN)( cd $(srcdir) && \
221 sed -n -e 's/.*src_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
223 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
224 @if cmp -s $@.tmp $@; then \
230 %-marshal.h: %-marshal.list Makefile
231 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
233 %-marshal.c: %-marshal.list Makefile
234 $(AM_V_GEN)echo "#include \"src-marshal.h\"" > $@ && \
235 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
237 # rules for making the glib enum objects
238 %-enumtypes.h: %.h Makefile.in
239 $(AM_V_GEN)glib-mkenums \
240 --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" \
241 --fprod "/* enumerations from \"@filename@\" */\n" \
242 --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
243 --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
246 %-enumtypes.c: %.h Makefile.in
247 $(AM_V_GEN)glib-mkenums \
248 --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
249 --fprod "\n/* enumerations from \"@filename@\" */" \
250 --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[] = {" \
251 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
252 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
255 CLEANFILES = $(BUILT_SOURCES)