5 -DDATADIR=\""$(datadir)"\" \
12 empathy-marshal.list \
13 empathy-enum-types.h \
16 lib_LTLIBRARIES = libempathy.la
18 libempathy_la_SOURCES = \
20 empathy-status-presets.c \
24 empathy-chatroom-manager.c \
27 empathy-contact-groups.c \
28 empathy-contact-list.c \
29 empathy-contact-manager.c \
30 empathy-contact-factory.c \
31 empathy-tp-contact-factory.c \
33 empathy-tp-contact-list.c \
35 empathy-tp-roomlist.c \
39 empathy-log-manager.c \
40 empathy-irc-network-manager.c \
41 empathy-irc-network.c \
42 empathy-irc-server.c \
43 empathy-tube-handler.c \
46 # do not distribute generated files
47 nodist_libempathy_la_SOURCES =\
50 libempathy_la_LIBADD = \
51 $(top_builddir)/extensions/libemp-extensions.la \
54 libempathy_la_LDFLAGS = \
55 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
56 -export-symbols-regex ^empathy_
58 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-roomlist.h \
79 empathy-log-manager.h \
80 empathy-irc-network-manager.h \
81 empathy-irc-network.h \
82 empathy-irc-server.h \
83 empathy-tube-handler.h \
86 libempathy_includedir = $(includedir)/libempathy/
87 libempathy_include_HEADERS = \
88 $(libempathy_headers) \
91 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
93 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
94 $(libempathy_la_SOURCES) ) \
95 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
96 if cmp -s $@.tmp $@; then \
102 %-marshal.h: %-marshal.list Makefile
103 $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
105 %-marshal.c: %-marshal.list Makefile
106 echo "#include \"empathy-marshal.h\"" > $@ && \
107 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
109 empathy-enum-types.h: stamp-empathy-enum-types.h
111 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
114 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
115 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
116 --fhead "#include <glib-object.h>\n\n" \
117 --fhead "G_BEGIN_DECLS\n\n" \
118 --ftail "G_END_DECLS\n\n" \
119 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
120 --fprod "#include <libempathy/@filename@>\n" \
121 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
122 --eprod "GType @enum_name@_get_type (void);\n" \
123 $(libempathy_headers) ) > xgen-gth \
124 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
126 && echo timestamp > $(@F)
128 empathy-enum-types.c: $(libempathy_headers) Makefile
131 --fhead "#include <config.h>\n" \
132 --fhead "#include <glib-object.h>\n" \
133 --fhead "#include \"empathy-enum-types.h\"\n\n" \
134 --fprod "\n/* enumerations from \"@filename@\" */" \
135 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
136 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
137 --vtail " { 0, NULL, NULL }\n};\n\n" \
138 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
139 --vtail " static GType type = 0;\n\n" \
140 --vtail " if (!type)\n" \
141 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
142 --vtail " return type;\n}\n\n" \
143 $(libempathy_headers) ) > xgen-gtc \
144 && cp xgen-gtc $(@F) \
147 dtddir = $(datadir)/empathy
149 empathy-status-presets.dtd \
150 empathy-contact-groups.dtd \
151 empathy-chatroom-manager.dtd \
152 empathy-irc-networks.dtd
154 stylesheetdir = $(datadir)/empathy
156 empathy-log-manager.xsl
158 ircnetworksdir = $(datadir)/empathy
162 pkgconfigdir = $(libdir)/pkgconfig
163 pkgconfig_DATA = libempathy.pc
166 empathy-marshal.list \
173 stamp-empathy-enum-types.h