5 -DDATADIR=\""$(datadir)"\" \
6 -DLOCALEDIR=\""$(datadir)/locale"\" \
14 empathy-marshal.list \
15 empathy-enum-types.h \
18 lib_LTLIBRARIES = libempathy.la
20 libempathy_la_SOURCES = \
21 empathy-account-manager.c \
23 empathy-chatroom-manager.c \
24 empathy-call-factory.c \
25 empathy-call-handler.c \
27 empathy-contact-factory.c \
28 empathy-contact-groups.c \
29 empathy-contact-list.c \
30 empathy-contact-manager.c \
31 empathy-contact-monitor.c \
33 empathy-dispatcher.c \
34 empathy-dispatch-operation.c \
36 empathy-irc-network.c \
37 empathy-irc-network-manager.c \
38 empathy-irc-server.c \
39 empathy-log-manager.c \
41 empathy-log-store-empathy.c \
43 empathy-status-presets.c \
47 empathy-tp-contact-factory.c \
48 empathy-tp-contact-list.c \
51 empathy-tp-roomlist.c \
53 empathy-tube-handler.c \
56 # do not distribute generated files
57 nodist_libempathy_la_SOURCES =\
60 libempathy_la_LIBADD = \
61 $(top_builddir)/extensions/libemp-extensions.la \
64 libempathy_la_LDFLAGS = \
65 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
66 -export-symbols-regex ^empathy_
68 libempathy_headers = \
69 empathy-account-manager.h \
71 empathy-chatroom-manager.h \
72 empathy-call-factory.h \
73 empathy-call-handler.h \
75 empathy-contact-factory.h \
76 empathy-contact-groups.h \
77 empathy-contact-list.h \
78 empathy-contact-manager.h \
79 empathy-contact-monitor.h \
81 empathy-dispatcher.h \
82 empathy-dispatch-operation.h \
84 empathy-irc-network.h \
85 empathy-irc-network-manager.h \
86 empathy-irc-server.h \
87 empathy-log-manager.h \
89 empathy-log-store-empathy.h \
91 empathy-status-presets.h \
95 empathy-tp-contact-factory.h \
96 empathy-tp-contact-list.h \
99 empathy-tp-roomlist.h \
101 empathy-tube-handler.h \
105 libempathy_includedir = $(includedir)/libempathy/
106 libempathy_include_HEADERS = \
107 $(libempathy_headers) \
110 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
112 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
113 $(libempathy_la_SOURCES) ) \
114 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
115 if cmp -s $@.tmp $@; then \
121 %-marshal.h: %-marshal.list Makefile
122 $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
124 %-marshal.c: %-marshal.list Makefile
125 echo "#include \"empathy-marshal.h\"" > $@ && \
126 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
128 empathy-enum-types.h: stamp-empathy-enum-types.h
130 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
133 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
134 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
135 --fhead "#include <glib-object.h>\n\n" \
136 --fhead "G_BEGIN_DECLS\n\n" \
137 --ftail "G_END_DECLS\n\n" \
138 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
139 --fprod "#include <libempathy/@filename@>\n" \
140 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
141 --eprod "GType @enum_name@_get_type (void);\n" \
142 $(libempathy_headers) ) > xgen-gth \
143 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
145 && echo timestamp > $(@F)
147 empathy-enum-types.c: $(libempathy_headers) Makefile
150 --fhead "#include <config.h>\n" \
151 --fhead "#include <glib-object.h>\n" \
152 --fhead "#include \"empathy-enum-types.h\"\n\n" \
153 --fprod "\n/* enumerations from \"@filename@\" */" \
154 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
155 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
156 --vtail " { 0, NULL, NULL }\n};\n\n" \
157 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
158 --vtail " static GType type = 0;\n\n" \
159 --vtail " if (!type)\n" \
160 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
161 --vtail " return type;\n}\n\n" \
162 $(libempathy_headers) ) > xgen-gtc \
163 && cp xgen-gtc $(@F) \
166 dtddir = $(datadir)/empathy
168 empathy-status-presets.dtd \
169 empathy-contact-groups.dtd \
170 empathy-chatroom-manager.dtd \
171 empathy-irc-networks.dtd
173 stylesheetdir = $(datadir)/empathy
175 empathy-log-manager.xsl
177 ircnetworksdir = $(datadir)/empathy
181 pkgconfigdir = $(libdir)/pkgconfig
182 pkgconfig_DATA = libempathy.pc
185 empathy-marshal.list \
192 stamp-empathy-enum-types.h