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