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