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