1 include $(top_srcdir)/tools/flymake.mk
7 -DG_LOG_DOMAIN=\"empathy\" \
8 -DBIN_DIR=\"$(bindir)\" \
9 $(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-mc4-accounts.c empathy-import-mc4-accounts.h \
39 empathy-import-pidgin.c empathy-import-pidgin.h \
40 empathy-import-widget.c empathy-import-widget.h \
41 empathy-import-utils.c empathy-import-utils.h \
44 libempathy_accounts_common_la_LIBADD = \
45 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
48 $(LIBCHAMPLAIN_LIBS) \
52 if HAVE_CONTROL_CENTER_EMBEDDING
53 ccmodulesdir = $(CONTROL_CENTER_EXTENSIONDIR)
54 ccmodules_LTLIBRARIES = libempathy-accounts-panel.la
56 libempathy_accounts_panel_la_SOURCES = \
57 empathy-accounts-module.c \
58 cc-empathy-accounts-page.c \
59 cc-empathy-accounts-page.h \
60 cc-empathy-accounts-panel.c \
61 cc-empathy-accounts-panel.h \
64 libempathy_accounts_panel_la_CPPFLAGS = \
66 $(CONTROL_CENTER_EMBEDDING_CFLAGS) \
67 -DLOCALEDIR=\""$(datadir)/locale"\" \
70 libempathy_accounts_panel_la_LDFLAGS = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)'
72 libempathy_accounts_panel_la_LIBADD = \
74 $(CONTROL_CENTER_EMBEDDING_LIBS) \
75 libempathy-accounts-common.la \
87 empathy_accounts_SOURCES = \
88 empathy-accounts.c empathy-accounts.h \
91 empathy_accounts_LDADD = \
93 libempathy-accounts-common.la \
96 empathy_debugger_SOURCES = \
97 empathy-debug-window.c empathy-debug-window.h \
101 empathy_handwritten_source = \
102 empathy-about-dialog.c empathy-about-dialog.h \
103 empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h \
104 empathy-call-window.c empathy-call-window.h \
105 empathy-chat-window.c empathy-chat-window.h \
106 empathy-chatrooms-window.c empathy-chatrooms-window.h \
107 empathy-event-manager.c empathy-event-manager.h \
108 empathy-ft-manager.c empathy-ft-manager.h \
109 empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
110 empathy-main-window.c empathy-main-window.h \
111 empathy-migrate-butterfly-logs.c empathy-migrate-butterfly-logs.h \
112 empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h \
113 empathy-preferences.c empathy-preferences.h \
114 empathy-sidebar.c empathy-sidebar.h \
115 empathy-status-icon.c empathy-status-icon.h \
116 empathy-chat-manager.c empathy-chat-manager.h \
120 $(empathy_handwritten_source) \
124 libempathy-accounts-common.la \
125 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
126 $(top_builddir)/libempathy/libempathy.la \
127 $(top_builddir)/extensions/libemp-extensions.la \
130 $(LIBCHAMPLAIN_LIBS) \
134 nodist_empathy_SOURCES = $(BUILT_SOURCES)
137 $(empathy_handwritten_source) \
138 $(empathy_logs_SOURCES)
140 include $(top_srcdir)/tools/check-coding-style.mk
141 check-local: check-coding-style
143 uidir = $(datadir)/empathy
145 empathy-accounts-dialog.ui \
146 empathy-call-window-fullscreen.ui \
147 empathy-call-window.ui \
148 empathy-chat-window.ui \
149 empathy-chatrooms-window.ui \
150 empathy-ft-manager.ui \
151 empathy-import-dialog.ui \
152 empathy-main-window.ui \
153 empathy-new-chatroom-dialog.ui \
154 empathy-preferences.ui \
155 empathy-status-icon.ui
162 empathy_handwritten_source += \
175 if !HAVE_CONTROL_CENTER_EMBEDDING
176 EXTRA_DIST += $(libempathy_accounts_panel_la_SOURCES)
178 check_c_sources += $(libempathy_accounts_panel_la_SOURCES)
184 # rules for making the glib enum objects
185 %-enumtypes.h: %.h Makefile.in
186 $(AM_V_GEN)glib-mkenums \
187 --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" \
188 --fprod "/* enumerations from \"@filename@\" */\n" \
189 --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
190 --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
193 %-enumtypes.c: %.h Makefile.in
194 $(AM_V_GEN)glib-mkenums \
195 --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
196 --fprod "\n/* enumerations from \"@filename@\" */" \
197 --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[] = {" \
198 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
199 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
202 CLEANFILES = $(BUILT_SOURCES)