5 -DDATADIR=\""$(datadir)"\" \
6 -DLOCALEDIR=\""$(datadir)/locale"\" \
13 empathy-marshal.list \
14 empathy-enum-types.h \
17 lib_LTLIBRARIES = libempathy.la
19 libempathy_la_SOURCES = \
20 empathy-account-manager.c \
22 empathy-chatroom-manager.c \
24 empathy-contact-factory.c \
25 empathy-contact-groups.c \
26 empathy-contact-list.c \
27 empathy-contact-manager.c \
29 empathy-dispatcher.c \
31 empathy-irc-network.c \
32 empathy-irc-network-manager.c \
33 empathy-irc-server.c \
34 empathy-log-manager.c \
36 empathy-status-presets.c \
40 empathy-tp-contact-factory.c \
41 empathy-tp-contact-list.c \
44 empathy-tp-roomlist.c \
46 empathy-tube-handler.c \
49 # do not distribute generated files
50 nodist_libempathy_la_SOURCES =\
53 libempathy_la_LIBADD = \
54 $(top_builddir)/extensions/libemp-extensions.la \
57 libempathy_la_LDFLAGS = \
58 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
59 -export-symbols-regex ^empathy_
61 libempathy_headers = \
62 empathy-account-manager.h \
64 empathy-chatroom-manager.h \
66 empathy-contact-factory.h \
67 empathy-contact-groups.h \
68 empathy-contact-list.h \
69 empathy-contact-manager.h \
71 empathy-dispatcher.h \
73 empathy-irc-network.h \
74 empathy-irc-network-manager.h \
75 empathy-irc-server.h \
76 empathy-log-manager.h \
78 empathy-status-presets.h \
82 empathy-tp-contact-factory.h \
83 empathy-tp-contact-list.h \
86 empathy-tp-roomlist.h \
88 empathy-tube-handler.h \
91 libempathy_includedir = $(includedir)/libempathy/
92 libempathy_include_HEADERS = \
93 $(libempathy_headers) \
96 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
98 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
99 $(libempathy_la_SOURCES) ) \
100 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
101 if cmp -s $@.tmp $@; then \
107 %-marshal.h: %-marshal.list Makefile
108 $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
110 %-marshal.c: %-marshal.list Makefile
111 echo "#include \"empathy-marshal.h\"" > $@ && \
112 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
114 empathy-enum-types.h: stamp-empathy-enum-types.h
116 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
119 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
120 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
121 --fhead "#include <glib-object.h>\n\n" \
122 --fhead "G_BEGIN_DECLS\n\n" \
123 --ftail "G_END_DECLS\n\n" \
124 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
125 --fprod "#include <libempathy/@filename@>\n" \
126 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
127 --eprod "GType @enum_name@_get_type (void);\n" \
128 $(libempathy_headers) ) > xgen-gth \
129 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
131 && echo timestamp > $(@F)
133 empathy-enum-types.c: $(libempathy_headers) Makefile
136 --fhead "#include <config.h>\n" \
137 --fhead "#include <glib-object.h>\n" \
138 --fhead "#include \"empathy-enum-types.h\"\n\n" \
139 --fprod "\n/* enumerations from \"@filename@\" */" \
140 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
141 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
142 --vtail " { 0, NULL, NULL }\n};\n\n" \
143 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
144 --vtail " static GType type = 0;\n\n" \
145 --vtail " if (!type)\n" \
146 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
147 --vtail " return type;\n}\n\n" \
148 $(libempathy_headers) ) > xgen-gtc \
149 && cp xgen-gtc $(@F) \
152 dtddir = $(datadir)/empathy
154 empathy-status-presets.dtd \
155 empathy-contact-groups.dtd \
156 empathy-chatroom-manager.dtd \
157 empathy-irc-networks.dtd
159 stylesheetdir = $(datadir)/empathy
161 empathy-log-manager.xsl
163 ircnetworksdir = $(datadir)/empathy
167 pkgconfigdir = $(libdir)/pkgconfig
168 pkgconfig_DATA = libempathy.pc
171 empathy-marshal.list \
178 stamp-empathy-enum-types.h