]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Updated Polish translation
[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.c
119
120 empathy_SOURCES =                                                       \
121         $(empathy_handwritten_source)                                   \
122         $(NULL)
123
124 empathy_LDADD =                                                         \
125         libempathy-accounts-common.la                                   \
126         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
127         $(top_builddir)/libempathy/libempathy.la                        \
128         $(top_builddir)/extensions/libemp-extensions.la                 \
129         $(LIBNOTIFY_LIBS)                                               \
130         $(EMPATHY_LIBS)                                                 \
131         $(LIBCHAMPLAIN_LIBS)                                            \
132         $(WEBKIT_LIBS)                                                  \
133         $(NULL)
134
135 nodist_empathy_SOURCES = $(BUILT_SOURCES)
136
137 check_c_sources = \
138     $(empathy_handwritten_source) \
139     $(empathy_logs_SOURCES)
140
141 include $(top_srcdir)/tools/check-coding-style.mk
142 check-local: check-coding-style
143
144 uidir = $(datadir)/empathy
145 ui_DATA =                                       \
146         empathy-accounts-dialog.ui              \
147         empathy-call-window-fullscreen.ui       \
148         empathy-call-window.ui                  \
149         empathy-chat-window.ui                  \
150         empathy-chatrooms-window.ui             \
151         empathy-ft-manager.ui                   \
152         empathy-import-dialog.ui                \
153         empathy-main-window.ui                  \
154         empathy-new-chatroom-dialog.ui          \
155         empathy-preferences.ui                  \
156         empathy-status-icon.ui
157
158 EXTRA_DIST =                    \
159         $(autostart_DATA)       \
160         $(ui_DATA)
161
162 if HAVE_LIBCHAMPLAIN
163 empathy_handwritten_source +=                           \
164         empathy-map-view.c                      \
165         empathy-map-view.h
166
167 ui_DATA +=                                      \
168         empathy-map-view.ui
169 else
170 EXTRA_DIST +=                                   \
171         empathy-map-view.c                      \
172         empathy-map-view.h                      \
173         empathy-map-view.ui
174 endif
175
176 if !HAVE_CONTROL_CENTER_EMBEDDING
177 EXTRA_DIST += $(libempathy_accounts_panel_la_SOURCES)
178 else
179 check_c_sources += $(libempathy_accounts_panel_la_SOURCES)
180 endif
181
182 dist_man_MANS =                 \
183         empathy.1
184
185 # rules for making the glib enum objects
186 %-enumtypes.h: %.h Makefile.in
187         $(AM_V_GEN)glib-mkenums \
188         --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" \
189         --fprod "/* enumerations from \"@filename@\" */\n" \
190         --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
191         --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
192         $< > $@
193
194 %-enumtypes.c: %.h Makefile.in
195         $(AM_V_GEN)glib-mkenums \
196         --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
197         --fprod "\n/* enumerations from \"@filename@\" */" \
198         --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[] = {"     \
199         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
200         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
201         $< > $@
202
203 CLEANFILES = $(BUILT_SOURCES)
204