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 \
26 $(LIBCHAMPLAIN_LIBS) \
29 noinst_LTLIBRARIES = libempathy-accounts-common.la
31 libempathy_accounts_common_la_SOURCES = \
32 empathy-accounts-common.c empathy-accounts-common.h \
33 empathy-account-assistant.c empathy-account-assistant.h \
34 empathy-accounts-dialog.c empathy-accounts-dialog.h \
35 empathy-auto-salut-account-helper.c empathy-auto-salut-account-helper.h \
36 empathy-import-dialog.c empathy-import-dialog.h \
37 empathy-import-pidgin.c empathy-import-pidgin.h \
38 empathy-import-widget.c empathy-import-widget.h \
39 empathy-import-utils.c empathy-import-utils.h \
42 libempathy_accounts_common_la_LIBADD = \
43 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
46 $(LIBCHAMPLAIN_LIBS) \
50 if HAVE_CONTROL_CENTER_EMBEDDING
51 ccmodulesdir = $(CONTROL_CENTER_EXTENSIONDIR)
52 ccmodules_LTLIBRARIES = libempathy-accounts-panel.la
54 libempathy_accounts_panel_la_SOURCES = \
55 empathy-accounts-module.c \
56 cc-empathy-accounts-panel.c \
57 cc-empathy-accounts-panel.h \
60 libempathy_accounts_panel_la_CPPFLAGS = \
62 $(CONTROL_CENTER_EMBEDDING_CFLAGS) \
63 -DLOCALEDIR=\""$(datadir)/locale"\" \
66 libempathy_accounts_panel_la_LDFLAGS = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)'
68 libempathy_accounts_panel_la_LIBADD = \
70 $(CONTROL_CENTER_EMBEDDING_LIBS) \
71 libempathy-accounts-common.la \
88 empathy_accounts_SOURCES = \
89 empathy-accounts.c empathy-accounts.h \
92 empathy_accounts_LDADD = \
94 libempathy-accounts-common.la \
97 empathy_debugger_SOURCES = \
98 empathy-debug-window.c empathy-debug-window.h \
102 empathy_handwritten_av_source = \
104 empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h \
105 empathy-call-window.c empathy-call-window.h \
108 empathy_av_SOURCES = \
109 $(empathy_handwritten_av_source) \
110 ev-sidebar.c ev-sidebar.h \
113 empathy_auth_client_SOURCES = \
114 empathy-auth-client.c \
117 empathy_chat_SOURCES = \
118 empathy-about-dialog.c empathy-about-dialog.h \
119 empathy-chat-manager.c empathy-chat-manager.h \
120 empathy-chat-window.c empathy-chat-window.h \
121 empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
125 empathy_handwritten_source = \
126 empathy-about-dialog.c empathy-about-dialog.h \
127 empathy-chat-window.c empathy-chat-window.h \
128 empathy-chatrooms-window.c empathy-chatrooms-window.h \
129 empathy-event-manager.c empathy-event-manager.h \
130 empathy-ft-manager.c empathy-ft-manager.h \
131 empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
132 empathy-main-window.c empathy-main-window.h \
133 empathy-migrate-butterfly-logs.c empathy-migrate-butterfly-logs.h \
134 empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h \
135 empathy-preferences.c empathy-preferences.h \
136 empathy-status-icon.c empathy-status-icon.h \
137 empathy-chat-manager.c empathy-chat-manager.h \
141 $(empathy_handwritten_source) \
145 libempathy-accounts-common.la \
146 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
147 $(top_builddir)/libempathy/libempathy.la \
148 $(top_builddir)/extensions/libemp-extensions.la \
150 $(LIBCHAMPLAIN_LIBS) \
154 nodist_empathy_SOURCES = $(BUILT_SOURCES)
157 $(empathy_handwritten_source) \
158 $(empathy_logs_SOURCES) \
159 $(empathy_handwritten_av_source)
161 include $(top_srcdir)/tools/check-coding-style.mk
162 check-local: check-coding-style
164 uidir = $(datadir)/empathy
166 empathy-accounts-dialog.ui \
167 empathy-call-window-fullscreen.ui \
168 empathy-call-window.ui \
169 empathy-chat-window.ui \
170 empathy-chatrooms-window.ui \
171 empathy-ft-manager.ui \
172 empathy-import-dialog.ui \
173 empathy-main-window.ui \
174 empathy-new-chatroom-dialog.ui \
175 empathy-preferences.ui \
176 empathy-status-icon.ui
183 empathy_handwritten_source += \
196 if !HAVE_CONTROL_CENTER_EMBEDDING
197 EXTRA_DIST += $(libempathy_accounts_panel_la_SOURCES)
199 check_c_sources += $(libempathy_accounts_panel_la_SOURCES)
206 # rules for making the glib enum objects
207 %-enumtypes.h: %.h Makefile.in
208 $(AM_V_GEN)glib-mkenums \
209 --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" \
210 --fprod "/* enumerations from \"@filename@\" */\n" \
211 --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
212 --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
215 %-enumtypes.c: %.h Makefile.in
216 $(AM_V_GEN)glib-mkenums \
217 --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
218 --fprod "\n/* enumerations from \"@filename@\" */" \
219 --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[] = {" \
220 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
221 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
224 CLEANFILES = $(BUILT_SOURCES)