]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Merge branch 'undo-close-tab'
[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         $(TPL_CFLAGS)                                   \
17         $(LIBNOTIFY_CFLAGS)                             \
18         $(LIBCHAMPLAIN_CFLAGS)                          \
19         $(WEBKIT_CFLAGS)                                \
20         $(NULL)
21
22 LDADD =                                                         \
23         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
24         $(top_builddir)/libempathy/libempathy.la                \
25         $(top_builddir)/extensions/libemp-extensions.la         \
26         $(TPL_LIBS)                                             \
27         $(LIBNOTIFY_LIBS)                                       \
28         $(EMPATHY_LIBS)                                         \
29         $(LIBCHAMPLAIN_LIBS)                                    \
30         $(WEBKIT_LIBS)
31
32 noinst_LTLIBRARIES = libempathy-accounts-common.la
33
34 libempathy_accounts_common_la_SOURCES =                                 \
35         empathy-accounts-common.c empathy-accounts-common.h             \
36         empathy-account-assistant.c empathy-account-assistant.h         \
37         empathy-accounts-dialog.c empathy-accounts-dialog.h             \
38         empathy-auto-salut-account-helper.c empathy-auto-salut-account-helper.h \
39         empathy-import-dialog.c empathy-import-dialog.h                 \
40         empathy-import-mc4-accounts.c empathy-import-mc4-accounts.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         ephy-spinner.c ephy-spinner.h                                   \
45         $(NULL)
46
47 libempathy_accounts_common_la_LIBADD =                                  \
48         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
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-page.c                              \
62         cc-empathy-accounts-page.h                              \
63         cc-empathy-accounts-panel.c                             \
64         cc-empathy-accounts-panel.h                             \
65         $(NULL)
66
67 libempathy_accounts_panel_la_CPPFLAGS =                         \
68         $(CPPFLAGS_COMMON)                                      \
69         $(CONTROL_CENTER_EMBEDDING_CFLAGS)                      \
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 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_source = \
104         empathy-about-dialog.c empathy-about-dialog.h                   \
105         empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h \
106         empathy-call-window.c empathy-call-window.h                     \
107         empathy-chat-window.c empathy-chat-window.h                     \
108         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
109         empathy-event-manager.c empathy-event-manager.h                 \
110         empathy-ft-manager.c empathy-ft-manager.h                       \
111         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
112         empathy-main-window.c empathy-main-window.h                     \
113         empathy-migrate-butterfly-logs.c empathy-migrate-butterfly-logs.h \
114         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
115         empathy-preferences.c empathy-preferences.h                     \
116         empathy-sidebar.c empathy-sidebar.h                             \
117         empathy-status-icon.c empathy-status-icon.h                     \
118         empathy-chat-manager.c empathy-chat-manager.h                   \
119         empathy.c
120
121 empathy_SOURCES =                                                       \
122         $(empathy_handwritten_source)                                   \
123         $(NULL)
124
125 empathy_LDADD =                                                         \
126         libempathy-accounts-common.la                                   \
127         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
128         $(top_builddir)/libempathy/libempathy.la                        \
129         $(top_builddir)/extensions/libemp-extensions.la                 \
130         $(LIBNOTIFY_LIBS)                                               \
131         $(EMPATHY_LIBS)                                                 \
132         $(LIBCHAMPLAIN_LIBS)                                            \
133         $(WEBKIT_LIBS)                                                  \
134         $(NULL)
135
136 nodist_empathy_SOURCES = $(BUILT_SOURCES)
137
138 check_c_sources = \
139     $(empathy_handwritten_source) \
140     $(empathy_logs_SOURCES)
141
142 include $(top_srcdir)/tools/check-coding-style.mk
143 check-local: check-coding-style
144
145 uidir = $(datadir)/empathy
146 ui_DATA =                                       \
147         empathy-accounts-dialog.ui              \
148         empathy-call-window-fullscreen.ui       \
149         empathy-call-window.ui                  \
150         empathy-chat-window.ui                  \
151         empathy-chatrooms-window.ui             \
152         empathy-ft-manager.ui                   \
153         empathy-import-dialog.ui                \
154         empathy-main-window.ui                  \
155         empathy-new-chatroom-dialog.ui          \
156         empathy-preferences.ui                  \
157         empathy-status-icon.ui
158
159 EXTRA_DIST =                    \
160         $(autostart_DATA)       \
161         $(ui_DATA)
162
163 if HAVE_LIBCHAMPLAIN
164 empathy_handwritten_source +=                           \
165         empathy-map-view.c                      \
166         empathy-map-view.h
167
168 ui_DATA +=                                      \
169         empathy-map-view.ui
170 else
171 EXTRA_DIST +=                                   \
172         empathy-map-view.c                      \
173         empathy-map-view.h                      \
174         empathy-map-view.ui
175 endif
176
177 if !HAVE_CONTROL_CENTER_EMBEDDING
178 EXTRA_DIST += $(libempathy_accounts_panel_la_SOURCES)
179 else
180 check_c_sources += $(libempathy_accounts_panel_la_SOURCES)
181 endif
182
183 dist_man_MANS =                 \
184         empathy.1
185
186 # rules for making the glib enum objects
187 %-enumtypes.h: %.h Makefile.in
188         $(AM_V_GEN)glib-mkenums \
189         --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" \
190         --fprod "/* enumerations from \"@filename@\" */\n" \
191         --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
192         --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
193         $< > $@
194
195 %-enumtypes.c: %.h Makefile.in
196         $(AM_V_GEN)glib-mkenums \
197         --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
198         --fprod "\n/* enumerations from \"@filename@\" */" \
199         --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[] = {"     \
200         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
201         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
202         $< > $@
203
204 CLEANFILES = $(BUILT_SOURCES)
205