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