]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Create 'empathy-chat' handling text channels (#631946)
[empathy.git] / src / Makefile.am
1 include $(top_srcdir)/tools/flymake.mk
2
3 CPPFLAGS_COMMON =                                       \
4         $(EMPATHY_CFLAGS)                               \
5         $(EDS_CFLAGS)                                   \
6         $(GTK_CFLAGS)                                   \
7         $(ERROR_CFLAGS)                                 \
8         -I$(top_srcdir)                                 \
9         -DG_LOG_DOMAIN=\"empathy\"                      \
10         -DBIN_DIR=\"$(bindir)\"                         \
11         $(DISABLE_DEPRECATED)                           \
12         $(WARN_CFLAGS)                                  \
13         $(NULL)
14
15 AM_LDFLAGS = -lm
16 AM_CPPFLAGS =                                           \
17         $(CPPFLAGS_COMMON)                              \
18         $(LIBNOTIFY_CFLAGS)                             \
19         $(LIBCHAMPLAIN_CFLAGS)                          \
20         $(WEBKIT_CFLAGS)                                \
21         $(NULL)
22
23 LDADD =                                                         \
24         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
25         $(top_builddir)/libempathy/libempathy.la                \
26         $(top_builddir)/extensions/libemp-extensions.la         \
27         $(LIBNOTIFY_LIBS)                                       \
28         $(EMPATHY_LIBS)                                         \
29         $(GTK_LIBS)                                             \
30         $(LIBCHAMPLAIN_LIBS)                                    \
31         $(WEBKIT_LIBS)
32
33 noinst_LTLIBRARIES = libempathy-accounts-common.la
34
35 libempathy_accounts_common_la_SOURCES =                                 \
36         empathy-accounts-common.c empathy-accounts-common.h             \
37         empathy-account-assistant.c empathy-account-assistant.h         \
38         empathy-accounts-dialog.c empathy-accounts-dialog.h             \
39         empathy-auto-salut-account-helper.c empathy-auto-salut-account-helper.h \
40         empathy-import-dialog.c empathy-import-dialog.h                 \
41         empathy-import-pidgin.c empathy-import-pidgin.h                 \
42         empathy-import-widget.c empathy-import-widget.h                 \
43         empathy-import-utils.c empathy-import-utils.h                   \
44         $(NULL)
45
46 libempathy_accounts_common_la_LIBADD =                                  \
47         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
48         $(EDS_LIBS)                                                     \
49         $(LIBNOTIFY_LIBS)                                               \
50         $(EMPATHY_LIBS)                                                 \
51         $(LIBCHAMPLAIN_LIBS)                                            \
52         $(WEBKIT_LIBS)                                                  \
53         $(NULL)
54
55 if HAVE_CONTROL_CENTER_EMBEDDING
56 ccmodulesdir = $(CONTROL_CENTER_EXTENSIONDIR)
57 ccmodules_LTLIBRARIES = libempathy-accounts-panel.la
58
59 libempathy_accounts_panel_la_SOURCES =                          \
60         empathy-accounts-module.c                               \
61         cc-empathy-accounts-panel.c                             \
62         cc-empathy-accounts-panel.h                             \
63         $(NULL)
64
65 libempathy_accounts_panel_la_CPPFLAGS =                         \
66         $(CPPFLAGS_COMMON)                                      \
67         $(CONTROL_CENTER_EMBEDDING_CFLAGS)                      \
68         -DLOCALEDIR=\""$(datadir)/locale"\"                     \
69         $(NULL)
70
71 libempathy_accounts_panel_la_LDFLAGS = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)'
72
73 libempathy_accounts_panel_la_LIBADD =                           \
74         $(EMPATHY_LIBS)                                         \
75         $(CONTROL_CENTER_EMBEDDING_LIBS)                        \
76         libempathy-accounts-common.la                           \
77         $(NULL)
78 endif
79
80 bin_PROGRAMS =                  \
81         empathy                 \
82         empathy-accounts        \
83         empathy-debugger        \
84         $(NULL)
85
86 libexec_PROGRAMS = \
87         empathy-av \
88         empathy-auth-client \
89         empathy-chat
90
91 BUILT_SOURCES=
92
93 empathy_accounts_SOURCES =                                              \
94         empathy-accounts.c empathy-accounts.h                           \
95         $(NULL)
96
97 empathy_accounts_LDADD =                                                \
98         $(LDADD)                                                        \
99         libempathy-accounts-common.la                                   \
100         $(NULL)
101
102 empathy_debugger_SOURCES =                                              \
103         empathy-debug-window.c empathy-debug-window.h                   \
104         empathy-debugger.c                                              \
105         $(NULL)
106
107 empathy_handwritten_av_source = \
108         empathy-av.c \
109         empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h \
110         empathy-call-window.c empathy-call-window.h      \
111         $(NULL)
112
113 empathy_av_SOURCES =                                            \
114         $(empathy_handwritten_av_source) \
115         ev-sidebar.c ev-sidebar.h
116
117 empathy_auth_client_SOURCES =                                           \
118         empathy-auth-client.c
119
120 empathy_chat_SOURCES =                                          \
121         empathy-about-dialog.c empathy-about-dialog.h                   \
122         empathy-chat-manager.c empathy-chat-manager.h           \
123         empathy-chat-window.c empathy-chat-window.h             \
124         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
125         empathy-chat.c
126
127 empathy_handwritten_source = \
128         empathy-about-dialog.c empathy-about-dialog.h                   \
129         empathy-chat-window.c empathy-chat-window.h                     \
130         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
131         empathy-event-manager.c empathy-event-manager.h                 \
132         empathy-ft-manager.c empathy-ft-manager.h                       \
133         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
134         empathy-main-window.c empathy-main-window.h                     \
135         empathy-migrate-butterfly-logs.c empathy-migrate-butterfly-logs.h \
136         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
137         empathy-preferences.c empathy-preferences.h                     \
138         empathy-status-icon.c empathy-status-icon.h                     \
139         empathy-chat-manager.c empathy-chat-manager.h                   \
140         empathy.c
141
142 empathy_SOURCES =                                                       \
143         $(empathy_handwritten_source)                                   \
144         $(NULL)
145
146 empathy_LDADD =                                                         \
147         libempathy-accounts-common.la                                   \
148         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
149         $(top_builddir)/libempathy/libempathy.la                        \
150         $(top_builddir)/extensions/libemp-extensions.la                 \
151         $(LIBNOTIFY_LIBS)                                               \
152         $(EMPATHY_LIBS)                                                 \
153         $(LIBCHAMPLAIN_LIBS)                                            \
154         $(WEBKIT_LIBS)                                                  \
155         $(NULL)
156
157 nodist_empathy_SOURCES = $(BUILT_SOURCES)
158
159 check_c_sources = \
160     $(empathy_handwritten_source) \
161     $(empathy_logs_SOURCES) \
162     $(empathy_handwritten_av_source)
163
164 include $(top_srcdir)/tools/check-coding-style.mk
165 check-local: check-coding-style
166
167 uidir = $(datadir)/empathy
168 ui_DATA =                                       \
169         empathy-accounts-dialog.ui              \
170         empathy-call-window-fullscreen.ui       \
171         empathy-call-window.ui                  \
172         empathy-chat-window.ui                  \
173         empathy-chatrooms-window.ui             \
174         empathy-ft-manager.ui                   \
175         empathy-import-dialog.ui                \
176         empathy-main-window.ui                  \
177         empathy-new-chatroom-dialog.ui          \
178         empathy-preferences.ui                  \
179         empathy-status-icon.ui
180
181 EXTRA_DIST =                    \
182         $(autostart_DATA)       \
183         $(ui_DATA)
184
185 if HAVE_LIBCHAMPLAIN
186 empathy_handwritten_source +=                           \
187         empathy-map-view.c                      \
188         empathy-map-view.h
189
190 ui_DATA +=                                      \
191         empathy-map-view.ui
192 else
193 EXTRA_DIST +=                                   \
194         empathy-map-view.c                      \
195         empathy-map-view.h                      \
196         empathy-map-view.ui
197 endif
198
199 if !HAVE_CONTROL_CENTER_EMBEDDING
200 EXTRA_DIST += $(libempathy_accounts_panel_la_SOURCES)
201 else
202 check_c_sources += $(libempathy_accounts_panel_la_SOURCES)
203 endif
204
205 dist_man_MANS =                 \
206         empathy.1 \
207         empathy-accounts.1
208
209 # rules for making the glib enum objects
210 %-enumtypes.h: %.h Makefile.in
211         $(AM_V_GEN)glib-mkenums \
212         --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" \
213         --fprod "/* enumerations from \"@filename@\" */\n" \
214         --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
215         --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
216         $< > $@
217
218 %-enumtypes.c: %.h Makefile.in
219         $(AM_V_GEN)glib-mkenums \
220         --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
221         --fprod "\n/* enumerations from \"@filename@\" */" \
222         --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[] = {"     \
223         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
224         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
225         $< > $@
226
227 CLEANFILES = $(BUILT_SOURCES)
228