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_auth_client_SOURCES = \
123 empathy-auth-client.c \
126 empathy_chat_SOURCES = \
127 empathy-about-dialog.c empathy-about-dialog.h \
128 empathy-chat-manager.c empathy-chat-manager.h \
129 empathy-chat-window.c empathy-chat-window.h \
130 empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
134 empathy_handwritten_source = \
135 empathy-about-dialog.c empathy-about-dialog.h \
136 empathy-chat-window.c empathy-chat-window.h \
137 empathy-chatrooms-window.c empathy-chatrooms-window.h \
138 empathy-event-manager.c empathy-event-manager.h \
139 empathy-ft-manager.c empathy-ft-manager.h \
140 empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
141 empathy-main-window.c empathy-main-window.h \
142 empathy-migrate-butterfly-logs.c empathy-migrate-butterfly-logs.h \
143 empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h \
144 empathy-notifications-approver.c empathy-notifications-approver.h \
145 empathy-preferences.c empathy-preferences.h \
146 empathy-status-icon.c empathy-status-icon.h \
147 empathy-chat-manager.c empathy-chat-manager.h \
151 $(empathy_handwritten_source) \
155 libempathy-accounts-common.la \
156 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
157 $(top_builddir)/libempathy/libempathy.la \
158 $(top_builddir)/extensions/libemp-extensions.la \
160 $(LIBCHAMPLAIN_LIBS) \
164 nodist_empathy_SOURCES = $(BUILT_SOURCES)
167 $(empathy_handwritten_source) \
168 $(empathy_logs_SOURCES) \
169 $(empathy_handwritten_av_source)
171 include $(top_srcdir)/tools/check-coding-style.mk
172 check-local: check-coding-style
174 uidir = $(datadir)/empathy
176 empathy-accounts-dialog.ui \
177 empathy-call-window-fullscreen.ui \
178 empathy-call-window.ui \
179 empathy-chat-window.ui \
180 empathy-chatrooms-window.ui \
181 empathy-ft-manager.ui \
182 empathy-import-dialog.ui \
183 empathy-main-window.ui \
184 empathy-new-chatroom-dialog.ui \
185 empathy-preferences.ui \
186 empathy-status-icon.ui
193 empathy_handwritten_source += \
206 if !HAVE_CONTROL_CENTER_EMBEDDING
207 EXTRA_DIST += $(libempathy_accounts_panel_la_SOURCES)
209 check_c_sources += $(libempathy_accounts_panel_la_SOURCES)
216 src-marshal.list: $(empathy_SOURCES) Makefile.am
217 $(AM_V_GEN)( cd $(srcdir) && \
218 sed -n -e 's/.*src_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
220 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
221 @if cmp -s $@.tmp $@; then \
227 %-marshal.h: %-marshal.list Makefile
228 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
230 %-marshal.c: %-marshal.list Makefile
231 $(AM_V_GEN)echo "#include \"src-marshal.h\"" > $@ && \
232 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
234 # rules for making the glib enum objects
235 %-enumtypes.h: %.h Makefile.in
236 $(AM_V_GEN)glib-mkenums \
237 --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" \
238 --fprod "/* enumerations from \"@filename@\" */\n" \
239 --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
240 --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
243 %-enumtypes.c: %.h Makefile.in
244 $(AM_V_GEN)glib-mkenums \
245 --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
246 --fprod "\n/* enumerations from \"@filename@\" */" \
247 --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[] = {" \
248 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
249 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
252 CLEANFILES = $(BUILT_SOURCES)