]> git.0d.be Git - empathy.git/blob - src/Makefile.am
auth-client: move the password dialog into a new file
[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         $(EMPATHY_LIBS)                                         \
26         $(LIBCHAMPLAIN_LIBS)                                    \
27         $(WEBKIT_LIBS)
28
29 noinst_LTLIBRARIES = libempathy-accounts-common.la
30
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                   \
40         $(NULL)
41
42 libempathy_accounts_common_la_LIBADD =                                  \
43         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
44         $(EDS_LIBS)                                                     \
45         $(EMPATHY_LIBS)                                                 \
46         $(LIBCHAMPLAIN_LIBS)                                            \
47         $(WEBKIT_LIBS)                                                  \
48         $(NULL)
49
50 if HAVE_CONTROL_CENTER_EMBEDDING
51 ccmodulesdir = $(CONTROL_CENTER_EXTENSIONDIR)
52 ccmodules_LTLIBRARIES = libempathy-accounts-panel.la
53
54 libempathy_accounts_panel_la_SOURCES =                          \
55         empathy-accounts-module.c                               \
56         cc-empathy-accounts-panel.c                             \
57         cc-empathy-accounts-panel.h                             \
58         $(NULL)
59
60 libempathy_accounts_panel_la_CPPFLAGS =                         \
61         $(CPPFLAGS_COMMON)                                      \
62         $(CONTROL_CENTER_EMBEDDING_CFLAGS)                      \
63         -DLOCALEDIR=\""$(datadir)/locale"\"                     \
64         $(NULL)
65
66 libempathy_accounts_panel_la_LDFLAGS = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)'
67
68 libempathy_accounts_panel_la_LIBADD =                           \
69         $(EMPATHY_LIBS)                                         \
70         $(CONTROL_CENTER_EMBEDDING_LIBS)                        \
71         libempathy-accounts-common.la                           \
72         $(NULL)
73 endif
74
75 bin_PROGRAMS =                  \
76         empathy                 \
77         empathy-accounts        \
78         empathy-debugger        \
79         $(NULL)
80
81 libexec_PROGRAMS = \
82         empathy-av \
83         empathy-auth-client \
84         empathy-chat
85
86 BUILT_SOURCES=
87
88 empathy_accounts_SOURCES =                                              \
89         empathy-accounts.c empathy-accounts.h                           \
90         $(NULL)
91
92 empathy_accounts_LDADD =                                                \
93         $(LDADD)                                                        \
94         libempathy-accounts-common.la                                   \
95         $(NULL)
96
97 empathy_debugger_SOURCES =                                              \
98         empathy-debug-window.c empathy-debug-window.h                   \
99         empathy-debugger.c                                              \
100         $(NULL)
101
102 empathy_handwritten_av_source = \
103         empathy-av.c \
104         empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h \
105         empathy-call-window.c empathy-call-window.h      \
106         $(NULL)
107
108 empathy_av_SOURCES =                                            \
109         $(empathy_handwritten_av_source) \
110         ev-sidebar.c ev-sidebar.h \
111         $(NULL)
112
113 empathy_auth_client_SOURCES =                                           \
114         empathy-auth-client.c \
115         $(NULL)
116
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 \
122         empathy-chat.c \
123         $(NULL)
124
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-notifications-approver.c empathy-notifications-approver.h \
136         empathy-preferences.c empathy-preferences.h                     \
137         empathy-status-icon.c empathy-status-icon.h                     \
138         empathy-chat-manager.c empathy-chat-manager.h                   \
139         empathy.c
140
141 empathy_SOURCES =                                                       \
142         $(empathy_handwritten_source)                                   \
143         $(NULL)
144
145 empathy_LDADD =                                                         \
146         libempathy-accounts-common.la                                   \
147         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
148         $(top_builddir)/libempathy/libempathy.la                        \
149         $(top_builddir)/extensions/libemp-extensions.la                 \
150         $(EMPATHY_LIBS)                                                 \
151         $(LIBCHAMPLAIN_LIBS)                                            \
152         $(WEBKIT_LIBS)                                                  \
153         $(NULL)
154
155 nodist_empathy_SOURCES = $(BUILT_SOURCES)
156
157 check_c_sources = \
158     $(empathy_handwritten_source) \
159     $(empathy_logs_SOURCES) \
160     $(empathy_handwritten_av_source)
161
162 include $(top_srcdir)/tools/check-coding-style.mk
163 check-local: check-coding-style
164
165 uidir = $(datadir)/empathy
166 ui_DATA =                                       \
167         empathy-accounts-dialog.ui              \
168         empathy-call-window-fullscreen.ui       \
169         empathy-call-window.ui                  \
170         empathy-chat-window.ui                  \
171         empathy-chatrooms-window.ui             \
172         empathy-ft-manager.ui                   \
173         empathy-import-dialog.ui                \
174         empathy-main-window.ui                  \
175         empathy-new-chatroom-dialog.ui          \
176         empathy-preferences.ui                  \
177         empathy-status-icon.ui
178
179 EXTRA_DIST =                    \
180         $(autostart_DATA)       \
181         $(ui_DATA)
182
183 if HAVE_LIBCHAMPLAIN
184 empathy_handwritten_source +=                           \
185         empathy-map-view.c                      \
186         empathy-map-view.h
187
188 ui_DATA +=                                      \
189         empathy-map-view.ui
190 else
191 EXTRA_DIST +=                                   \
192         empathy-map-view.c                      \
193         empathy-map-view.h                      \
194         empathy-map-view.ui
195 endif
196
197 if !HAVE_CONTROL_CENTER_EMBEDDING
198 EXTRA_DIST += $(libempathy_accounts_panel_la_SOURCES)
199 else
200 check_c_sources += $(libempathy_accounts_panel_la_SOURCES)
201 endif
202
203 dist_man_MANS =                 \
204         empathy.1 \
205         empathy-accounts.1
206
207 # rules for making the glib enum objects
208 %-enumtypes.h: %.h Makefile.in
209         $(AM_V_GEN)glib-mkenums \
210         --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" \
211         --fprod "/* enumerations from \"@filename@\" */\n" \
212         --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
213         --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
214         $< > $@
215
216 %-enumtypes.c: %.h Makefile.in
217         $(AM_V_GEN)glib-mkenums \
218         --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
219         --fprod "\n/* enumerations from \"@filename@\" */" \
220         --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[] = {"     \
221         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
222         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
223         $< > $@
224
225 CLEANFILES = $(BUILT_SOURCES)
226