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