1 include $(top_srcdir)/tools/flymake.mk
9 -DG_LOG_DOMAIN=\"empathy\" \
10 -DBIN_DIR=\"$(bindir)\" \
11 $(DISABLE_DEPRECATED) \
20 $(LIBCHAMPLAIN_CFLAGS) \
25 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
26 $(top_builddir)/libempathy/libempathy.la \
27 $(top_builddir)/extensions/libemp-extensions.la \
32 $(LIBCHAMPLAIN_LIBS) \
35 noinst_LTLIBRARIES = libempathy-accounts-common.la
37 libempathy_accounts_common_la_SOURCES = \
38 empathy-accounts-common.c empathy-accounts-common.h \
39 empathy-account-assistant.c empathy-account-assistant.h \
40 empathy-accounts-dialog.c empathy-accounts-dialog.h \
41 empathy-auto-salut-account-helper.c empathy-auto-salut-account-helper.h \
42 empathy-import-dialog.c empathy-import-dialog.h \
43 empathy-import-pidgin.c empathy-import-pidgin.h \
44 empathy-import-widget.c empathy-import-widget.h \
45 empathy-import-utils.c empathy-import-utils.h \
48 libempathy_accounts_common_la_LIBADD = \
49 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
54 $(LIBCHAMPLAIN_LIBS) \
58 if HAVE_CONTROL_CENTER_EMBEDDING
59 ccmodulesdir = $(CONTROL_CENTER_EXTENSIONDIR)
60 ccmodules_LTLIBRARIES = libempathy-accounts-panel.la
62 libempathy_accounts_panel_la_SOURCES = \
63 empathy-accounts-module.c \
64 cc-empathy-accounts-panel.c \
65 cc-empathy-accounts-panel.h \
68 libempathy_accounts_panel_la_CPPFLAGS = \
70 $(CONTROL_CENTER_EMBEDDING_CFLAGS) \
71 -DLOCALEDIR=\""$(datadir)/locale"\" \
74 libempathy_accounts_panel_la_LDFLAGS = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)'
76 libempathy_accounts_panel_la_LIBADD = \
78 $(CONTROL_CENTER_EMBEDDING_LIBS) \
79 libempathy-accounts-common.la \
95 empathy_accounts_SOURCES = \
96 empathy-accounts.c empathy-accounts.h \
99 empathy_accounts_LDADD = \
101 libempathy-accounts-common.la \
104 empathy_debugger_SOURCES = \
105 empathy-debug-window.c empathy-debug-window.h \
109 empathy_av_SOURCES = \
111 empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h \
112 empathy-call-window.c empathy-call-window.h \
113 empathy-sidebar.c empathy-sidebar.h \
116 empathy_auth_client_SOURCES = \
117 empathy-auth-client.c
119 empathy_handwritten_source = \
120 empathy-about-dialog.c empathy-about-dialog.h \
121 empathy-chat-window.c empathy-chat-window.h \
122 empathy-chatrooms-window.c empathy-chatrooms-window.h \
123 empathy-event-manager.c empathy-event-manager.h \
124 empathy-ft-manager.c empathy-ft-manager.h \
125 empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
126 empathy-main-window.c empathy-main-window.h \
127 empathy-migrate-butterfly-logs.c empathy-migrate-butterfly-logs.h \
128 empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h \
129 empathy-preferences.c empathy-preferences.h \
130 empathy-status-icon.c empathy-status-icon.h \
131 empathy-chat-manager.c empathy-chat-manager.h \
135 $(empathy_handwritten_source) \
139 libempathy-accounts-common.la \
140 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
141 $(top_builddir)/libempathy/libempathy.la \
142 $(top_builddir)/extensions/libemp-extensions.la \
146 $(LIBCHAMPLAIN_LIBS) \
150 nodist_empathy_SOURCES = $(BUILT_SOURCES)
153 $(empathy_handwritten_source) \
154 $(empathy_logs_SOURCES) \
155 $(empathy_av_SOURCES)
157 include $(top_srcdir)/tools/check-coding-style.mk
158 check-local: check-coding-style
160 uidir = $(datadir)/empathy
162 empathy-accounts-dialog.ui \
163 empathy-call-window-fullscreen.ui \
164 empathy-call-window.ui \
165 empathy-chat-window.ui \
166 empathy-chatrooms-window.ui \
167 empathy-ft-manager.ui \
168 empathy-import-dialog.ui \
169 empathy-main-window.ui \
170 empathy-new-chatroom-dialog.ui \
171 empathy-preferences.ui \
172 empathy-status-icon.ui
179 empathy_handwritten_source += \
192 if !HAVE_CONTROL_CENTER_EMBEDDING
193 EXTRA_DIST += $(libempathy_accounts_panel_la_SOURCES)
195 check_c_sources += $(libempathy_accounts_panel_la_SOURCES)
202 # rules for making the glib enum objects
203 %-enumtypes.h: %.h Makefile.in
204 $(AM_V_GEN)glib-mkenums \
205 --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" \
206 --fprod "/* enumerations from \"@filename@\" */\n" \
207 --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
208 --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
211 %-enumtypes.c: %.h Makefile.in
212 $(AM_V_GEN)glib-mkenums \
213 --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
214 --fprod "\n/* enumerations from \"@filename@\" */" \
215 --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[] = {" \
216 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
217 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
220 CLEANFILES = $(BUILT_SOURCES)