]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Add missing libm linking (#610751)
[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         ephy-spinner.c ephy-spinner.h                                   \
43         $(NULL)
44
45 libempathy_accounts_common_la_LIBADD =                                  \
46         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
47         $(LIBNOTIFY_LIBS)                                               \
48         $(EMPATHY_LIBS)                                                 \
49         $(LIBCHAMPLAIN_LIBS)                                            \
50         $(WEBKIT_LIBS)                                                  \
51         $(NULL)
52
53 if HAVE_CONTROL_CENTER_EMBEDDING
54 ccmodulesdir = $(CONTROL_CENTER_EXTENSIONDIR)
55 ccmodules_LTLIBRARIES = libempathy-accounts-panel.la
56
57 libempathy_accounts_panel_la_SOURCES =                          \
58         empathy-accounts-module.c                               \
59         cc-empathy-accounts-page.c                              \
60         cc-empathy-accounts-page.h                              \
61         cc-empathy-accounts-panel.c                             \
62         cc-empathy-accounts-panel.h                             \
63         $(NULL)
64
65 libempathy_accounts_panel_la_CPPFLAGS =                         \
66         $(CPPFLAGS_COMMON)                                      \
67         $(CONTROL_CENTER_EMBEDDING_CFLAGS)                      \
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         $(NULL)
83
84 BUILT_SOURCES=
85
86 empathy_accounts_SOURCES =                                              \
87         empathy-accounts.c empathy-accounts.h                           \
88         $(NULL)
89
90 empathy_accounts_LDADD =                                                \
91         $(LDADD)                                                        \
92         libempathy-accounts-common.la                                   \
93         $(NULL)
94
95 empathy_handwritten_source = \
96         empathy-about-dialog.c empathy-about-dialog.h                   \
97         empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h \
98         empathy-call-window.c empathy-call-window.h                     \
99         empathy-chat-window.c empathy-chat-window.h                     \
100         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
101         empathy-debug-window.c empathy-debug-window.h                   \
102         empathy-event-manager.c empathy-event-manager.h                 \
103         empathy-ft-manager.c empathy-ft-manager.h                       \
104         empathy-invite-participant-dialog.c empathy-invite-participant-dialog.h \
105         empathy-main-window.c empathy-main-window.h                     \
106         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
107         empathy-preferences.c empathy-preferences.h                     \
108         empathy-sidebar.c empathy-sidebar.h                             \
109         empathy-status-icon.c empathy-status-icon.h                     \
110         empathy.c
111
112 empathy_SOURCES =                                                       \
113         $(empathy_handwritten_source)                                   \
114         $(NULL)
115
116 empathy_LDADD =                                                         \
117         libempathy-accounts-common.la                                   \
118         $(top_builddir)/libempathy-gtk/libempathy-gtk.la                \
119         $(top_builddir)/libempathy/libempathy.la                        \
120         $(top_builddir)/extensions/libemp-extensions.la                 \
121         $(LIBNOTIFY_LIBS)                                               \
122         $(EMPATHY_LIBS)                                                 \
123         $(LIBCHAMPLAIN_LIBS)                                            \
124         $(WEBKIT_LIBS)                                                  \
125         $(NULL)
126
127 nodist_empathy_SOURCES = $(BUILT_SOURCES)
128
129 check_c_sources = \
130     $(empathy_handwritten_source) \
131     $(empathy_logs_SOURCES)
132
133 include $(top_srcdir)/tools/check-coding-style.mk
134 check-local: check-coding-style
135
136 uidir = $(datadir)/empathy
137 ui_DATA =                                       \
138         empathy-accounts-dialog.ui              \
139         empathy-call-window-fullscreen.ui       \
140         empathy-call-window.ui                  \
141         empathy-chat-window.ui                  \
142         empathy-chatrooms-window.ui             \
143         empathy-ft-manager.ui                   \
144         empathy-import-dialog.ui                \
145         empathy-main-window.ui                  \
146         empathy-new-chatroom-dialog.ui          \
147         empathy-preferences.ui                  \
148         empathy-status-icon.ui
149
150 EXTRA_DIST =                    \
151         $(autostart_DATA)       \
152         $(ui_DATA)
153
154 if HAVE_LIBCHAMPLAIN
155 empathy_handwritten_source +=                           \
156         empathy-map-view.c                      \
157         empathy-map-view.h
158
159 ui_DATA +=                                      \
160         empathy-map-view.ui
161 else
162 EXTRA_DIST +=                                   \
163         empathy-map-view.c                      \
164         empathy-map-view.h                      \
165         empathy-map-view.ui
166 endif
167
168 if !HAVE_CONTROL_CENTER_EMBEDDING
169 EXTRA_DIST += $(libempathy_accounts_panel_la_SOURCES)
170 else
171 check_c_sources += $(libempathy_accounts_panel_la_SOURCES)
172 endif
173
174 dist_man_MANS =                 \
175         empathy.1
176
177 # rules for making the glib enum objects
178 %-enumtypes.h: %.h Makefile.in
179         $(AM_V_GEN)glib-mkenums \
180         --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" \
181         --fprod "/* enumerations from \"@filename@\" */\n" \
182         --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
183         --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
184         $< > $@
185
186 %-enumtypes.c: %.h Makefile.in
187         $(AM_V_GEN)glib-mkenums \
188         --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
189         --fprod "\n/* enumerations from \"@filename@\" */" \
190         --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[] = {"     \
191         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
192         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
193         $< > $@
194
195 CLEANFILES = $(BUILT_SOURCES)
196