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) \
20 empathy-marshal.list \
21 empathy-enum-types.h \
24 lib_LTLIBRARIES = libempathy.la
26 libempathy_la_SOURCES = \
28 empathy-account-priv.h \
29 empathy-account-manager.c \
31 empathy-chatroom-manager.c \
32 empathy-call-factory.c \
33 empathy-call-handler.c \
34 empathy-connectivity.c \
36 empathy-contact-groups.c \
37 empathy-contact-list.c \
38 empathy-contact-manager.c \
39 empathy-contact-monitor.c \
42 empathy-dispatcher.c \
43 empathy-dispatch-operation.c \
44 empathy-ft-factory.c \
45 empathy-ft-handler.c \
47 empathy-irc-network.c \
48 empathy-irc-network-manager.c \
49 empathy-irc-server.c \
50 empathy-log-manager.c \
52 empathy-log-store-empathy.c \
54 empathy-status-presets.c \
58 empathy-tp-contact-factory.c \
59 empathy-tp-contact-list.c \
61 empathy-tp-roomlist.c \
62 empathy-tube-handler.c \
65 # do not distribute generated files
66 nodist_libempathy_la_SOURCES =\
69 libempathy_la_LIBADD = \
70 $(top_builddir)/extensions/libemp-extensions.la \
73 $(NETWORK_MANAGER_LIBS)
75 libempathy_la_LDFLAGS = \
76 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
77 -export-symbols-regex ^empathy_
79 libempathy_headers = \
81 empathy-account-manager.h \
83 empathy-chatroom-manager.h \
84 empathy-call-factory.h \
85 empathy-call-handler.h \
86 empathy-connectivity.h \
88 empathy-contact-groups.h \
89 empathy-contact-list.h \
90 empathy-contact-manager.h \
91 empathy-contact-monitor.h \
94 empathy-dispatcher.h \
95 empathy-dispatch-operation.h \
96 empathy-ft-factory.h \
97 empathy-ft-handler.h \
99 empathy-irc-network.h \
100 empathy-irc-network-manager.h \
101 empathy-irc-server.h \
103 empathy-log-manager.h \
104 empathy-log-store.h \
105 empathy-log-store-empathy.h \
107 empathy-status-presets.h \
111 empathy-tp-contact-factory.h \
112 empathy-tp-contact-list.h \
114 empathy-tp-roomlist.h \
115 empathy-tube-handler.h \
120 $(libempathy_la_SOURCES) \
121 $(libempathy_headers)
122 include $(top_srcdir)/tools/check-coding-style.mk
123 check-local: check-coding-style
125 libempathy_includedir = $(includedir)/libempathy/
126 libempathy_include_HEADERS = \
127 $(libempathy_headers) \
130 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
131 $(QUIET_GEN)( cd $(srcdir) && \
132 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
133 $(libempathy_la_SOURCES) ) \
134 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
135 if cmp -s $@.tmp $@; then \
141 %-marshal.h: %-marshal.list Makefile
142 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
144 %-marshal.c: %-marshal.list Makefile
145 $(QUIET_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
146 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
148 empathy-enum-types.h: stamp-empathy-enum-types.h
150 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
151 $(QUIET_GEN)(cd $(srcdir) \
153 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
154 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
155 --fhead "#include <glib-object.h>\n\n" \
156 --fhead "G_BEGIN_DECLS\n\n" \
157 --ftail "G_END_DECLS\n\n" \
158 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
159 --fprod "#include <libempathy/@filename@>\n" \
160 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
161 --eprod "GType @enum_name@_get_type (void);\n" \
162 $(libempathy_headers) ) > xgen-gth \
163 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
165 && echo timestamp > $(@F)
167 empathy-enum-types.c: $(libempathy_headers) Makefile
168 $(QUIET_GEN)(cd $(srcdir) \
170 --fhead "#include <config.h>\n" \
171 --fhead "#include <glib-object.h>\n" \
172 --fhead "#include \"empathy-enum-types.h\"\n\n" \
173 --fprod "\n/* enumerations from \"@filename@\" */" \
174 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
175 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
176 --vtail " { 0, NULL, NULL }\n};\n\n" \
177 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
178 --vtail " static GType type = 0;\n\n" \
179 --vtail " if (!type)\n" \
180 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
181 --vtail " return type;\n}\n\n" \
182 $(libempathy_headers) ) > xgen-gtc \
183 && cp xgen-gtc $(@F) \
186 dtddir = $(datadir)/empathy
188 empathy-status-presets.dtd \
189 empathy-contact-groups.dtd \
190 empathy-chatroom-manager.dtd \
191 empathy-irc-networks.dtd
193 stylesheetdir = $(datadir)/empathy
195 empathy-log-manager.xsl
197 ircnetworksdir = $(datadir)/empathy
201 pkgconfigdir = $(libdir)/pkgconfig
202 pkgconfig_DATA = libempathy.pc
205 empathy-marshal.list \
212 stamp-empathy-enum-types.h