5 -DDATADIR=\""$(datadir)"\" \
12 empathy-marshal.list \
13 empathy-enum-types.h \
14 empathy-enum-types.c \
15 empathy-filter-glue.h \
16 empathy-chandler-glue.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-roomlist.c \
43 empathy-log-manager.c \
44 empathy-irc-network-manager.c \
45 empathy-irc-network.c \
48 # do not distribute generated files
49 nodist_libempathy_la_SOURCES =\
52 libempathy_la_LIBADD = \
53 $(top_builddir)/extensions/libemp-extensions.la \
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-roomlist.h \
83 empathy-log-manager.h \
84 empathy-irc-network-manager.h \
85 empathy-irc-network.h \
88 libempathy_includedir = $(includedir)/libempathy/
89 libempathy_include_HEADERS = \
90 $(libempathy_headers) \
93 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
95 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
96 $(libempathy_la_SOURCES) ) \
97 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
98 if cmp -s $@.tmp $@; then \
104 %-marshal.h: %-marshal.list Makefile
105 $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
107 %-marshal.c: %-marshal.list Makefile
108 echo "#include \"empathy-marshal.h\"" > $@ && \
109 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
111 empathy-chandler-glue.h: empathy-chandler.xml Makefile
112 $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_chandler --mode=glib-server --output=$@ $<
113 empathy-filter-glue.h: empathy-filter.xml Makefile
114 $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_filter --mode=glib-server --output=$@ $<
117 empathy-enum-types.h: stamp-empathy-enum-types.h
119 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
122 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
123 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
124 --fhead "#include <glib-object.h>\n\n" \
125 --fhead "G_BEGIN_DECLS\n\n" \
126 --ftail "G_END_DECLS\n\n" \
127 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
128 --fprod "#include <libempathy/@filename@>\n" \
129 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
130 --eprod "GType @enum_name@_get_type (void);\n" \
131 $(libempathy_headers) ) > xgen-gth \
132 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
134 && echo timestamp > $(@F)
136 empathy-enum-types.c: $(libempathy_headers) Makefile
139 --fhead "#include <config.h>\n" \
140 --fhead "#include <glib-object.h>\n" \
141 --fhead "#include \"empathy-enum-types.h\"\n\n" \
142 --fprod "\n/* enumerations from \"@filename@\" */" \
143 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
144 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
145 --vtail " { 0, NULL, NULL }\n};\n\n" \
146 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
147 --vtail " static GType type = 0;\n\n" \
148 --vtail " if (!type)\n" \
149 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
150 --vtail " return type;\n}\n\n" \
151 $(libempathy_headers) ) > xgen-gtc \
152 && cp xgen-gtc $(@F) \
155 dtddir = $(datadir)/empathy
157 empathy-status-presets.dtd \
158 empathy-contact-groups.dtd \
159 empathy-chatroom-manager.dtd \
160 empathy-irc-networks.dtd
162 stylesheetdir = $(datadir)/empathy
164 empathy-log-manager.xsl
166 ircnetworksdir = $(datadir)/empathy
170 pkgconfigdir = $(libdir)/pkgconfig
171 pkgconfig_DATA = libempathy.pc
174 empathy-marshal.list \
175 empathy-chandler.xml \
183 stamp-empathy-enum-types.h