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