5 -DDATADIR=\""$(datadir)"\" \
12 empathy-marshal.list \
13 empathy-enum-types.h \
16 lib_LTLIBRARIES = libempathy.la
18 libempathy_la_SOURCES = \
21 empathy-status-presets.c \
25 empathy-chatroom-manager.c \
28 empathy-contact-groups.c \
29 empathy-contact-list.c \
30 empathy-contact-manager.c \
31 empathy-contact-factory.c \
32 empathy-tp-contact-factory.c \
34 empathy-tp-contact-list.c \
36 empathy-tp-roomlist.c \
40 empathy-log-manager.c \
41 empathy-irc-network-manager.c \
42 empathy-irc-network.c \
43 empathy-irc-server.c \
44 empathy-tube-handler.c \
47 # do not distribute generated files
48 nodist_libempathy_la_SOURCES =\
51 libempathy_la_LIBADD = \
52 $(top_builddir)/extensions/libemp-extensions.la \
55 libempathy_la_LDFLAGS = \
56 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
57 -export-symbols-regex ^empathy_
59 libempathy_headers = \
62 empathy-status-presets.h \
66 empathy-chatroom-manager.h \
69 empathy-contact-groups.h \
70 empathy-contact-list.h \
71 empathy-contact-manager.h \
72 empathy-contact-factory.h \
73 empathy-tp-contact-factory.h \
75 empathy-tp-contact-list.h \
77 empathy-tp-roomlist.h \
81 empathy-log-manager.h \
82 empathy-irc-network-manager.h \
83 empathy-irc-network.h \
84 empathy-irc-server.h \
85 empathy-tube-handler.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-enum-types.h: stamp-empathy-enum-types.h
113 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
116 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
117 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
118 --fhead "#include <glib-object.h>\n\n" \
119 --fhead "G_BEGIN_DECLS\n\n" \
120 --ftail "G_END_DECLS\n\n" \
121 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
122 --fprod "#include <libempathy/@filename@>\n" \
123 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
124 --eprod "GType @enum_name@_get_type (void);\n" \
125 $(libempathy_headers) ) > xgen-gth \
126 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
128 && echo timestamp > $(@F)
130 empathy-enum-types.c: $(libempathy_headers) Makefile
133 --fhead "#include <config.h>\n" \
134 --fhead "#include <glib-object.h>\n" \
135 --fhead "#include \"empathy-enum-types.h\"\n\n" \
136 --fprod "\n/* enumerations from \"@filename@\" */" \
137 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
138 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
139 --vtail " { 0, NULL, NULL }\n};\n\n" \
140 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
141 --vtail " static GType type = 0;\n\n" \
142 --vtail " if (!type)\n" \
143 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
144 --vtail " return type;\n}\n\n" \
145 $(libempathy_headers) ) > xgen-gtc \
146 && cp xgen-gtc $(@F) \
149 dtddir = $(datadir)/empathy
151 empathy-status-presets.dtd \
152 empathy-contact-groups.dtd \
153 empathy-chatroom-manager.dtd \
154 empathy-irc-networks.dtd
156 stylesheetdir = $(datadir)/empathy
158 empathy-log-manager.xsl
160 ircnetworksdir = $(datadir)/empathy
164 pkgconfigdir = $(libdir)/pkgconfig
165 pkgconfig_DATA = libempathy.pc
168 empathy-marshal.list \
175 stamp-empathy-enum-types.h