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 \
46 # do not distribute generated files
47 nodist_libempathy_la_SOURCES =\
50 libempathy_la_LIBADD = \
53 libempathy_la_LDFLAGS = \
54 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
55 -export-symbols-regex ^empathy_
57 libempathy_headers = \
60 empathy-status-presets.h \
64 empathy-chatroom-manager.h \
67 empathy-contact-groups.h \
68 empathy-contact-list.h \
69 empathy-contact-manager.h \
70 empathy-contact-factory.h \
71 empathy-tp-contact-factory.h \
73 empathy-tp-contact-list.h \
75 empathy-tp-chatroom.h \
76 empathy-tp-roomlist.h \
83 libempathy_includedir = $(includedir)/libempathy/
84 libempathy_include_HEADERS = \
85 $(libempathy_headers) \
88 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
90 sed -n -e 's/.*empathy_marshal_\([[:upper:]]*__[[:upper:]_]*\).*/\1/p' \
91 $(libempathy_la_SOURCES) ) \
92 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
93 if cmp -s $@.tmp $@; then \
99 %-marshal.h: %-marshal.list Makefile
100 $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
102 %-marshal.c: %-marshal.list Makefile
103 echo "#include \"empathy-marshal.h\"" > $@ && \
104 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
106 empathy-chandler-glue.h: empathy-chandler.xml Makefile
107 $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_chandler --mode=glib-server --output=$@ $<
108 empathy-filter-glue.h: empathy-filter.xml Makefile
109 $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_filter --mode=glib-server --output=$@ $<
111 tp-stream-engine-gen.h: tp-stream-engine.xml Makefile.am
112 $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=tp_stream_engine --mode=glib-client --output=$@ $<
115 empathy-enum-types.h: stamp-empathy-enum-types.h
117 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
120 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
121 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
122 --fhead "#include <glib-object.h>\n\n" \
123 --fhead "G_BEGIN_DECLS\n\n" \
124 --ftail "G_END_DECLS\n\n" \
125 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
126 --fprod "#include <libempathy/@filename@>\n" \
127 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
128 --eprod "GType @enum_name@_get_type (void);\n" \
129 $(libempathy_headers) ) > xgen-gth \
130 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
132 && echo timestamp > $(@F)
134 empathy-enum-types.c: $(libempathy_headers) Makefile
137 --fhead "#include <config.h>\n" \
138 --fhead "#include <glib-object.h>\n" \
139 --fhead "#include \"empathy-enum-types.h\"\n\n" \
140 --fprod "\n/* enumerations from \"@filename@\" */" \
141 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
142 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
143 --vtail " { 0, NULL, NULL }\n};\n\n" \
144 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
145 --vtail " static GType type = 0;\n\n" \
146 --vtail " if (!type)\n" \
147 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
148 --vtail " return type;\n}\n\n" \
149 $(libempathy_headers) ) > xgen-gtc \
150 && cp xgen-gtc $(@F) \
153 dtddir = $(datadir)/empathy
155 empathy-status-presets.dtd \
156 empathy-contact-groups.dtd \
157 empathy-chatroom-manager.dtd
159 stylesheetdir = $(datadir)/empathy
161 empathy-log-manager.xsl
163 pkgconfigdir = $(libdir)/pkgconfig
164 pkgconfig_DATA = libempathy.pc
167 empathy-marshal.list \
168 empathy-chandler.xml \
170 tp-stream-engine.xml \
176 stamp-empathy-enum-types.h