4 -DDATADIR=\""$(datadir)"\" \
11 empathy-marshal.list \
12 empathy-enum-types.h \
13 empathy-enum-types.c \
14 empathy-filter-glue.h \
15 empathy-chandler-glue.h \
16 tp-stream-engine-gen.h
18 lib_LTLIBRARIES = libempathy.la
20 libempathy_la_SOURCES = \
23 empathy-status-presets.c \
27 empathy-chatroom-manager.c \
30 empathy-contact-groups.c \
31 empathy-contact-list.c \
32 empathy-contact-manager.c \
33 empathy-contact-factory.c \
34 empathy-tp-contact-factory.c \
36 empathy-tp-contact-list.c \
38 empathy-tp-chatroom.c \
39 empathy-tp-roomlist.c \
44 empathy-log-manager.c \
45 empathy-irc-network-manager.c \
46 empathy-irc-network.c \
49 # do not distribute generated files
50 nodist_libempathy_la_SOURCES =\
53 libempathy_la_LIBADD = \
56 libempathy_la_LDFLAGS = \
57 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
58 -export-symbols-regex ^empathy_
60 libempathy_headers = \
63 empathy-status-presets.h \
67 empathy-chatroom-manager.h \
70 empathy-contact-groups.h \
71 empathy-contact-list.h \
72 empathy-contact-manager.h \
73 empathy-contact-factory.h \
74 empathy-tp-contact-factory.h \
76 empathy-tp-contact-list.h \
78 empathy-tp-chatroom.h \
79 empathy-tp-roomlist.h \
84 empathy-log-manager.h \
85 empathy-irc-network-manager.h \
86 empathy-irc-network.h \
89 libempathy_includedir = $(includedir)/libempathy/
90 libempathy_include_HEADERS = \
91 $(libempathy_headers) \
94 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
96 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
97 $(libempathy_la_SOURCES) ) \
98 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
99 if cmp -s $@.tmp $@; then \
105 %-marshal.h: %-marshal.list Makefile
106 $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
108 %-marshal.c: %-marshal.list Makefile
109 echo "#include \"empathy-marshal.h\"" > $@ && \
110 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
112 empathy-chandler-glue.h: empathy-chandler.xml Makefile
113 $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_chandler --mode=glib-server --output=$@ $<
114 empathy-filter-glue.h: empathy-filter.xml Makefile
115 $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_filter --mode=glib-server --output=$@ $<
117 tp-stream-engine-gen.h: tp-stream-engine.xml Makefile.am
118 $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=tp_stream_engine --mode=glib-client --output=$@ $<
121 empathy-enum-types.h: stamp-empathy-enum-types.h
123 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
126 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
127 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
128 --fhead "#include <glib-object.h>\n\n" \
129 --fhead "G_BEGIN_DECLS\n\n" \
130 --ftail "G_END_DECLS\n\n" \
131 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
132 --fprod "#include <libempathy/@filename@>\n" \
133 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
134 --eprod "GType @enum_name@_get_type (void);\n" \
135 $(libempathy_headers) ) > xgen-gth \
136 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
138 && echo timestamp > $(@F)
140 empathy-enum-types.c: $(libempathy_headers) Makefile
143 --fhead "#include <config.h>\n" \
144 --fhead "#include <glib-object.h>\n" \
145 --fhead "#include \"empathy-enum-types.h\"\n\n" \
146 --fprod "\n/* enumerations from \"@filename@\" */" \
147 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
148 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
149 --vtail " { 0, NULL, NULL }\n};\n\n" \
150 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
151 --vtail " static GType type = 0;\n\n" \
152 --vtail " if (!type)\n" \
153 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
154 --vtail " return type;\n}\n\n" \
155 $(libempathy_headers) ) > xgen-gtc \
156 && cp xgen-gtc $(@F) \
159 dtddir = $(datadir)/empathy
161 empathy-status-presets.dtd \
162 empathy-contact-groups.dtd \
163 empathy-chatroom-manager.dtd \
164 empathy-irc-networks.dtd
166 stylesheetdir = $(datadir)/empathy
168 empathy-log-manager.xsl
170 ircnetworksdir = $(datadir)/empathy
174 pkgconfigdir = $(libdir)/pkgconfig
175 pkgconfig_DATA = libempathy.pc
178 empathy-marshal.list \
179 empathy-chandler.xml \
181 tp-stream-engine.xml \
188 stamp-empathy-enum-types.h