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-groups.c \
28 empathy-contact-list.c \
29 empathy-contact-manager.c \
30 empathy-contact-monitor.c \
32 empathy-dispatcher.c \
33 empathy-dispatch-operation.c \
35 empathy-irc-network.c \
36 empathy-irc-network-manager.c \
37 empathy-irc-server.c \
38 empathy-log-manager.c \
40 empathy-log-store-empathy.c \
42 empathy-status-presets.c \
46 empathy-tp-contact-factory.c \
47 empathy-tp-contact-list.c \
49 empathy-tp-roomlist.c \
51 empathy-tube-handler.c \
54 # do not distribute generated files
55 nodist_libempathy_la_SOURCES =\
58 libempathy_la_LIBADD = \
59 $(top_builddir)/extensions/libemp-extensions.la \
62 libempathy_la_LDFLAGS = \
63 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
64 -export-symbols-regex ^empathy_
66 libempathy_headers = \
67 empathy-account-manager.h \
69 empathy-chatroom-manager.h \
70 empathy-call-factory.h \
71 empathy-call-handler.h \
73 empathy-contact-groups.h \
74 empathy-contact-list.h \
75 empathy-contact-manager.h \
76 empathy-contact-monitor.h \
78 empathy-dispatcher.h \
79 empathy-dispatch-operation.h \
81 empathy-irc-network.h \
82 empathy-irc-network-manager.h \
83 empathy-irc-server.h \
84 empathy-log-manager.h \
86 empathy-log-store-empathy.h \
88 empathy-status-presets.h \
92 empathy-tp-contact-factory.h \
93 empathy-tp-contact-list.h \
95 empathy-tp-roomlist.h \
97 empathy-tube-handler.h \
101 libempathy_includedir = $(includedir)/libempathy/
102 libempathy_include_HEADERS = \
103 $(libempathy_headers) \
106 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
108 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
109 $(libempathy_la_SOURCES) ) \
110 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
111 if cmp -s $@.tmp $@; then \
117 %-marshal.h: %-marshal.list Makefile
118 $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
120 %-marshal.c: %-marshal.list Makefile
121 echo "#include \"empathy-marshal.h\"" > $@ && \
122 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
124 empathy-enum-types.h: stamp-empathy-enum-types.h
126 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
129 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
130 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
131 --fhead "#include <glib-object.h>\n\n" \
132 --fhead "G_BEGIN_DECLS\n\n" \
133 --ftail "G_END_DECLS\n\n" \
134 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
135 --fprod "#include <libempathy/@filename@>\n" \
136 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
137 --eprod "GType @enum_name@_get_type (void);\n" \
138 $(libempathy_headers) ) > xgen-gth \
139 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
141 && echo timestamp > $(@F)
143 empathy-enum-types.c: $(libempathy_headers) Makefile
146 --fhead "#include <config.h>\n" \
147 --fhead "#include <glib-object.h>\n" \
148 --fhead "#include \"empathy-enum-types.h\"\n\n" \
149 --fprod "\n/* enumerations from \"@filename@\" */" \
150 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
151 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
152 --vtail " { 0, NULL, NULL }\n};\n\n" \
153 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
154 --vtail " static GType type = 0;\n\n" \
155 --vtail " if (!type)\n" \
156 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
157 --vtail " return type;\n}\n\n" \
158 $(libempathy_headers) ) > xgen-gtc \
159 && cp xgen-gtc $(@F) \
162 dtddir = $(datadir)/empathy
164 empathy-status-presets.dtd \
165 empathy-contact-groups.dtd \
166 empathy-chatroom-manager.dtd \
167 empathy-irc-networks.dtd
169 stylesheetdir = $(datadir)/empathy
171 empathy-log-manager.xsl
173 ircnetworksdir = $(datadir)/empathy
177 pkgconfigdir = $(libdir)/pkgconfig
178 pkgconfig_DATA = libempathy.pc
181 empathy-marshal.list \
188 stamp-empathy-enum-types.h