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