1 include $(top_srcdir)/tools/shave.mk
2 include $(top_srcdir)/tools/flymake.mk
8 -DDATADIR=\""$(datadir)"\" \
9 -DLOCALEDIR=\""$(datadir)/locale"\" \
10 -DG_LOG_DOMAIN=\"empathy\" \
11 $(LIBEMPATHY_CFLAGS) \
13 $(NETWORK_MANAGER_CFLAGS) \
21 empathy-marshal.list \
22 empathy-enum-types.h \
25 lib_LTLIBRARIES = libempathy.la
27 libempathy_la_SOURCES = \
29 empathy-account-settings.c \
30 empathy-account-manager.c \
32 empathy-chatroom-manager.c \
33 empathy-call-factory.c \
34 empathy-call-handler.c \
35 empathy-connectivity.c \
37 empathy-contact-groups.c \
38 empathy-contact-list.c \
39 empathy-contact-manager.c \
40 empathy-contact-monitor.c \
41 empathy-connection-managers.c \
44 empathy-dispatcher.c \
45 empathy-dispatch-operation.c \
46 empathy-ft-factory.c \
47 empathy-ft-handler.c \
50 empathy-irc-network.c \
51 empathy-irc-network-manager.c \
52 empathy-irc-server.c \
53 empathy-log-manager.c \
55 empathy-log-store-empathy.c \
57 empathy-status-presets.c \
61 empathy-tp-contact-factory.c \
62 empathy-tp-contact-list.c \
64 empathy-tp-roomlist.c \
65 empathy-tube-handler.c \
68 # do not distribute generated files
69 nodist_libempathy_la_SOURCES =\
72 libempathy_la_LIBADD = \
73 $(top_builddir)/extensions/libemp-extensions.la \
76 $(NETWORK_MANAGER_LIBS) \
79 libempathy_la_LDFLAGS = \
80 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
81 -export-symbols-regex ^empathy_
83 libempathy_headers = \
84 empathy-account-settings.h \
86 empathy-account-manager.h \
88 empathy-chatroom-manager.h \
89 empathy-call-factory.h \
90 empathy-call-handler.h \
91 empathy-connectivity.h \
93 empathy-contact-groups.h \
94 empathy-contact-list.h \
95 empathy-contact-manager.h \
96 empathy-contact-monitor.h \
97 empathy-connection-managers.h \
100 empathy-dispatcher.h \
101 empathy-dispatch-operation.h \
102 empathy-ft-factory.h \
103 empathy-ft-handler.h \
106 empathy-irc-network.h \
107 empathy-irc-network-manager.h \
108 empathy-irc-server.h \
110 empathy-log-manager.h \
111 empathy-log-store.h \
112 empathy-log-store-empathy.h \
114 empathy-status-presets.h \
118 empathy-tp-contact-factory.h \
119 empathy-tp-contact-list.h \
121 empathy-tp-roomlist.h \
122 empathy-tube-handler.h \
127 $(libempathy_la_SOURCES) \
128 $(libempathy_headers)
129 include $(top_srcdir)/tools/check-coding-style.mk
130 check-local: check-coding-style
132 libempathy_includedir = $(includedir)/libempathy/
133 libempathy_include_HEADERS = \
134 $(libempathy_headers) \
137 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
138 $(QUIET_GEN)( cd $(srcdir) && \
139 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
140 $(libempathy_la_SOURCES) ) \
141 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
142 if cmp -s $@.tmp $@; then \
148 %-marshal.h: %-marshal.list Makefile
149 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
151 %-marshal.c: %-marshal.list Makefile
152 $(QUIET_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
153 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
155 empathy-enum-types.h: stamp-empathy-enum-types.h
157 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
158 $(QUIET_GEN)(cd $(srcdir) \
160 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
161 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
162 --fhead "#include <glib-object.h>\n\n" \
163 --fhead "G_BEGIN_DECLS\n\n" \
164 --ftail "G_END_DECLS\n\n" \
165 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
166 --fprod "#include <libempathy/@filename@>\n" \
167 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
168 --eprod "GType @enum_name@_get_type (void);\n" \
169 $(libempathy_headers) ) > xgen-gth \
170 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
172 && echo timestamp > $(@F)
174 empathy-enum-types.c: $(libempathy_headers) Makefile
175 $(QUIET_GEN)(cd $(srcdir) \
177 --fhead "#include <config.h>\n" \
178 --fhead "#include <glib-object.h>\n" \
179 --fhead "#include \"empathy-enum-types.h\"\n\n" \
180 --fprod "\n/* enumerations from \"@filename@\" */" \
181 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
182 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
183 --vtail " { 0, NULL, NULL }\n};\n\n" \
184 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
185 --vtail " static GType type = 0;\n\n" \
186 --vtail " if (!type)\n" \
187 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
188 --vtail " return type;\n}\n\n" \
189 $(libempathy_headers) ) > xgen-gtc \
190 && cp xgen-gtc $(@F) \
193 dtddir = $(datadir)/empathy
195 empathy-status-presets.dtd \
196 empathy-contact-groups.dtd \
197 empathy-chatroom-manager.dtd \
198 empathy-irc-networks.dtd
200 stylesheetdir = $(datadir)/empathy
202 empathy-log-manager.xsl
204 ircnetworksdir = $(datadir)/empathy
208 pkgconfigdir = $(libdir)/pkgconfig
209 pkgconfig_DATA = libempathy.pc
212 empathy-marshal.list \
219 stamp-empathy-enum-types.h