]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Depend on telepathy-logger (#610956)
[empathy.git] / src / Makefile.am
1 include $(top_srcdir)/tools/flymake.mk
2
3 CPPFLAGS_COMMON =                                       \
4         $(EMPATHY_CFLAGS)                               \
5         $(ERROR_CFLAGS)                                 \
6         -I$(top_srcdir)                                 \
7         -DG_LOG_DOMAIN=\"empathy\"                      \
8         -DBIN_DIR=\"$(bindir)\"                         \
9         $(DISABLE_DEPRECATED)                           \
10         $(WARN_CFLAGS)                                  \
11         $(NULL)
12
13 AM_LDFLAGS = -lm
14 AM_CPPFLAGS =                                           \
15         $(CPPFLAGS_COMMON)                              \
16         $(LIBNOTIFY_CFLAGS)                             \
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         $(LIBNOTIFY_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-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                   \
42         $(NULL)
43
44 libempathy_accounts_common_la_LIBADD =                                  \
45         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
46         $(LIBNOTIFY_LIBS)                                               \
47         $(EMPATHY_LIBS)                                                 \
48         $(LIBCHAMPLAIN_LIBS)                                            \
49         $(WEBKIT_LIBS)                                                  \
50         $(NULL)
51
52 if HAVE_CONTROL_CENTER_EMBEDDING
53 ccmodulesdir = $(CONTROL_CENTER_EXTENSIONDIR)
54 ccmodules_LTLIBRARIES = libempathy-accounts-panel.la
55
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                             \
62         $(NULL)
63
64 libempathy_accounts_panel_la_CPPFLAGS =                         \
65         $(CPPFLAGS_COMMON)                                      \
66         $(CONTROL_CENTER_EMBEDDING_CFLAGS)                      \
67         -DLOCALEDIR=\""$(datadir)/locale"\"                     \
68         $(NULL)
69
70 libempathy_accounts_panel_la_LDFLAGS = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)'
71
72 libempathy_accounts_panel_la_LIBADD =                           \
73         $(EMPATHY_LIBS)                                         \
74         $(CONTROL_CENTER_EMBEDDING_LIBS)                        \
75         libempathy-accounts-common.la                           \
76         $(NULL)
77 endif
78
79 bin_PROGRAMS =                  \
80         empathy                 \
81         empathy-accounts        \
82         empathy-debugger        \
83         $(NULL)
84
85 BUILT_SOURCES=
86
87 empathy_accounts_SOURCES =                                              \
88         empathy-accounts.c empathy-accounts.h                           \
89         $(NULL)
90
91 empathy_accounts_LDADD =                                                \
92         $(LDADD)                                                        \
93         libempathy-accounts-common.la                                   \
94         $(NULL)
95
96 empathy_debugger_SOURCES =                                              \
97         empathy-debug-window.c empathy-debug-window.h                   \
98         empathy-debugger.c                                              \
99         $(NULL)
100
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                   \
117         empathy.c
118
119 empathy_SOURCES =                                                       \
120         $(empathy_handwritten_source)                                   \
121         $(NULL)
122
123 empathy_LDADD =                                                         \
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                 \
128         $(LIBNOTIFY_LIBS)                                               \
129         $(EMPATHY_LIBS)                                                 \
130         $(LIBCHAMPLAIN_LIBS)                                            \
131         $(WEBKIT_LIBS)                                                  \
132         $(NULL)
133
134 nodist_empathy_SOURCES = $(BUILT_SOURCES)
135
136 check_c_sources = \
137     $(empathy_handwritten_source) \
138     $(empathy_logs_SOURCES)
139
140 include $(top_srcdir)/tools/check-coding-style.mk
141 check-local: check-coding-style
142
143 uidir = $(datadir)/empathy
144 ui_DATA =                                       \
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
156
157 EXTRA_DIST =                    \
158         $(autostart_DATA)       \
159         $(ui_DATA)
160
161 if HAVE_LIBCHAMPLAIN
162 empathy_handwritten_source +=                           \
163         empathy-map-view.c                      \
164         empathy-map-view.h
165
166 ui_DATA +=                                      \
167         empathy-map-view.ui
168 else
169 EXTRA_DIST +=                                   \
170         empathy-map-view.c                      \
171         empathy-map-view.h                      \
172         empathy-map-view.ui
173 endif
174
175 if !HAVE_CONTROL_CENTER_EMBEDDING
176 EXTRA_DIST += $(libempathy_accounts_panel_la_SOURCES)
177 else
178 check_c_sources += $(libempathy_accounts_panel_la_SOURCES)
179 endif
180
181 dist_man_MANS =                 \
182         empathy.1
183
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__ */" \
191         $< > $@
192
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" \
200         $< > $@
201
202 CLEANFILES = $(BUILT_SOURCES)
203