]> git.0d.be Git - empathy.git/blob - libempathy/Makefile.am
Remove EmpathyContactMonitor, it is not used anymore
[empathy.git] / libempathy / Makefile.am
1 include $(top_srcdir)/tools/flymake.mk
2
3 AM_CPPFLAGS =                                           \
4         $(ERROR_CFLAGS)                                 \
5         -I.                                             \
6         -I$(top_srcdir)                                 \
7         -I$(top_builddir)                               \
8         -DDATADIR=\""$(datadir)"\"                      \
9         -DLOCALEDIR=\""$(datadir)/locale"\"             \
10         -DG_LOG_DOMAIN=\"empathy\"                      \
11         $(TPL_CFLAGS)                                   \
12         $(LIBEMPATHY_CFLAGS)                            \
13         $(GEOCLUE_CFLAGS)                               \
14         $(NETWORK_MANAGER_CFLAGS)                       \
15         $(CONNMAN_CFLAGS)                               \
16         $(WARN_CFLAGS)                                  \
17         $(DISABLE_DEPRECATED)
18
19 BUILT_SOURCES =                                         \
20         empathy-marshal.h                               \
21         empathy-marshal.c                               \
22         empathy-marshal.list                            \
23         empathy-enum-types.h                            \
24         empathy-enum-types.c
25
26 noinst_LTLIBRARIES = libempathy.la
27
28 libempathy_headers =                            \
29         empathy-account-settings.h              \
30         empathy-call-factory.h                  \
31         empathy-call-handler.h                  \
32         empathy-chatroom-manager.h              \
33         empathy-chatroom.h                      \
34         empathy-connection-managers.h           \
35         empathy-connectivity.h                  \
36         empathy-contact-groups.h                \
37         empathy-contact-list.h                  \
38         empathy-contact-manager.h               \
39         empathy-contact.h                       \
40         empathy-debug.h                         \
41         empathy-dispatch-operation.h            \
42         empathy-dispatcher.h                    \
43         empathy-ft-factory.h                    \
44         empathy-ft-handler.h                    \
45         empathy-handler.h                       \
46         empathy-idle.h                          \
47         empathy-irc-network-manager.h           \
48         empathy-irc-network.h                   \
49         empathy-irc-server.h                    \
50         empathy-location.h                      \
51         empathy-message.h                       \
52         empathy-status-presets.h                \
53         empathy-time.h                          \
54         empathy-tp-call.h                       \
55         empathy-tp-chat.h                       \
56         empathy-tp-contact-factory.h            \
57         empathy-tp-contact-list.h               \
58         empathy-tp-file.h                       \
59         empathy-tp-roomlist.h                   \
60         empathy-types.h                         \
61         empathy-utils.h
62
63 if !ENABLE_TPL
64 libempathy_headers +=   \
65         empathy-log-manager.h                           \
66         empathy-log-store-empathy.h                     \
67         empathy-log-store.h                             \
68         $(NULL)
69 endif
70
71 libempathy_la_SOURCES =                                 \
72         $(libempathy_headers)                           \
73         empathy-account-settings.c                      \
74         empathy-call-factory.c                          \
75         empathy-call-handler.c                          \
76         empathy-chatroom-manager.c                      \
77         empathy-chatroom.c                              \
78         empathy-connection-managers.c                   \
79         empathy-connectivity.c                          \
80         empathy-contact-groups.c                        \
81         empathy-contact-list.c                          \
82         empathy-contact-manager.c                       \
83         empathy-contact.c                               \
84         empathy-debug.c                                 \
85         empathy-dispatch-operation.c                    \
86         empathy-dispatcher.c                            \
87         empathy-ft-factory.c                            \
88         empathy-ft-handler.c                            \
89         empathy-handler.c                               \
90         empathy-idle.c                                  \
91         empathy-irc-network-manager.c                   \
92         empathy-irc-network.c                           \
93         empathy-irc-server.c                            \
94         empathy-message.c                               \
95         empathy-status-presets.c                        \
96         empathy-time.c                                  \
97         empathy-tp-call.c                               \
98         empathy-tp-chat.c                               \
99         empathy-tp-contact-factory.c                    \
100         empathy-tp-contact-list.c                       \
101         empathy-tp-file.c                               \
102         empathy-tp-roomlist.c                           \
103         empathy-utils.c
104
105 if !ENABLE_TPL
106 libempathy_la_SOURCES += \
107         empathy-log-manager.c                           \
108         empathy-log-store-empathy.c                     \
109         empathy-log-store.c                             \
110         $(NULL)
111 endif
112
113 # do not distribute generated files
114 nodist_libempathy_la_SOURCES =\
115         $(BUILT_SOURCES)
116
117 libempathy_la_LIBADD =          \
118         $(top_builddir)/extensions/libemp-extensions.la \
119         $(LIBEMPATHY_LIBS) \
120         $(GEOCLUE_LIBS) \
121         $(TPL_LIBS) \
122         $(NETWORK_MANAGER_LIBS) \
123         $(CONNMAN_LIBS)
124
125 check_c_sources = \
126     $(libempathy_la_SOURCES) \
127     $(libempathy_headers)
128 include $(top_srcdir)/tools/check-coding-style.mk
129 check-local: check-coding-style
130
131 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
132         $(AM_V_GEN)( cd $(srcdir) && \
133         sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
134         $(libempathy_la_SOURCES) ) \
135         | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
136         @if cmp -s $@.tmp $@; then \
137                 rm $@.tmp; \
138         else \
139                 mv $@.tmp $@; \
140         fi
141
142 %-marshal.h: %-marshal.list Makefile
143         $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
144
145 %-marshal.c: %-marshal.list Makefile
146         $(AM_V_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
147         $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
148
149 empathy-enum-types.h: stamp-empathy-enum-types.h
150         $(AM_V_GEN)true
151 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
152         $(AM_V_GEN)(cd $(srcdir) \
153         && glib-mkenums \
154                         --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
155                         --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
156                         --fhead "#include <glib-object.h>\n\n" \
157                         --fhead "G_BEGIN_DECLS\n\n" \
158                         --ftail "G_END_DECLS\n\n" \
159                         --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
160                         --fprod "#include <libempathy/@filename@>\n" \
161                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
162                         --eprod "GType @enum_name@_get_type (void);\n" \
163                 $(libempathy_headers) ) > xgen-gth \
164         && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
165         && rm -f xgen-gth \
166         && echo timestamp > $(@F)
167
168 empathy-enum-types.c: $(libempathy_headers) Makefile
169         $(AM_V_GEN)(cd $(srcdir) \
170         && glib-mkenums \
171                         --fhead "#include <config.h>\n" \
172                         --fhead "#include <glib-object.h>\n" \
173                         --fhead "#include \"empathy-enum-types.h\"\n\n" \
174                         --fprod "\n/* enumerations from \"@filename@\" */" \
175                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
176                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
177                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
178                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
179                         --vtail "  static GType type = 0;\n\n" \
180                         --vtail "  if (!type)\n" \
181                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
182                         --vtail "  return type;\n}\n\n" \
183                 $(libempathy_headers) ) > xgen-gtc \
184         && cp xgen-gtc $(@F) \
185         && rm -f xgen-gtc
186
187 dtddir = $(datadir)/empathy
188 dtd_DATA =                                      \
189         empathy-status-presets.dtd              \
190         empathy-contact-groups.dtd              \
191         empathy-chatroom-manager.dtd            \
192         empathy-irc-networks.dtd
193
194 if !ENABLE_TPL
195 stylesheetdir = $(datadir)/empathy
196 stylesheet_DATA = empathy-log-manager.xsl
197 endif
198
199 ircnetworksdir = $(datadir)/empathy
200 ircnetworks_DATA =              \
201         irc-networks.xml
202
203 EXTRA_DIST =                    \
204         empathy-marshal.list    \
205         $(dtd_DATA)             \
206         $(ircnetworks_DATA)
207
208 if !ENABLE_TPL
209 EXTRA_DIST +=  $(stylesheet_DATA)
210 endif
211
212 CLEANFILES =                            \
213         $(BUILT_SOURCES)                \
214         stamp-empathy-enum-types.h