1 include $(top_srcdir)/tools/shave.mk
7 -DDATADIR=\""$(datadir)"\" \
8 -DLOCALEDIR=\""$(datadir)/locale"\" \
16 empathy-marshal.list \
17 empathy-enum-types.h \
20 lib_LTLIBRARIES = libempathy.la
22 libempathy_la_SOURCES = \
23 empathy-account-manager.c \
25 empathy-chatroom-manager.c \
26 empathy-call-factory.c \
27 empathy-call-handler.c \
29 empathy-contact-groups.c \
30 empathy-contact-list.c \
31 empathy-contact-manager.c \
32 empathy-contact-monitor.c \
34 empathy-dispatcher.c \
35 empathy-dispatch-operation.c \
37 empathy-irc-network.c \
38 empathy-irc-network-manager.c \
39 empathy-irc-server.c \
40 empathy-log-manager.c \
42 empathy-log-store-empathy.c \
44 empathy-status-presets.c \
48 empathy-tp-contact-factory.c \
49 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-groups.h \
76 empathy-contact-list.h \
77 empathy-contact-manager.h \
78 empathy-contact-monitor.h \
80 empathy-dispatcher.h \
81 empathy-dispatch-operation.h \
83 empathy-irc-network.h \
84 empathy-irc-network-manager.h \
85 empathy-irc-server.h \
86 empathy-log-manager.h \
88 empathy-log-store-empathy.h \
90 empathy-status-presets.h \
94 empathy-tp-contact-factory.h \
95 empathy-tp-contact-list.h \
97 empathy-tp-roomlist.h \
99 empathy-tube-handler.h \
103 libempathy_includedir = $(includedir)/libempathy/
104 libempathy_include_HEADERS = \
105 $(libempathy_headers) \
108 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
109 $(QUIET_GEN)( cd $(srcdir) && \
110 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
111 $(libempathy_la_SOURCES) ) \
112 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
113 if cmp -s $@.tmp $@; then \
119 %-marshal.h: %-marshal.list Makefile
120 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
122 %-marshal.c: %-marshal.list Makefile
123 $(QUIET_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
124 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
126 empathy-enum-types.h: stamp-empathy-enum-types.h
128 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
129 $(QUIET_GEN)(cd $(srcdir) \
131 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
132 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
133 --fhead "#include <glib-object.h>\n\n" \
134 --fhead "G_BEGIN_DECLS\n\n" \
135 --ftail "G_END_DECLS\n\n" \
136 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
137 --fprod "#include <libempathy/@filename@>\n" \
138 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
139 --eprod "GType @enum_name@_get_type (void);\n" \
140 $(libempathy_headers) ) > xgen-gth \
141 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
143 && echo timestamp > $(@F)
145 empathy-enum-types.c: $(libempathy_headers) Makefile
146 $(QUIET_GEN)(cd $(srcdir) \
148 --fhead "#include <config.h>\n" \
149 --fhead "#include <glib-object.h>\n" \
150 --fhead "#include \"empathy-enum-types.h\"\n\n" \
151 --fprod "\n/* enumerations from \"@filename@\" */" \
152 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
153 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
154 --vtail " { 0, NULL, NULL }\n};\n\n" \
155 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
156 --vtail " static GType type = 0;\n\n" \
157 --vtail " if (!type)\n" \
158 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
159 --vtail " return type;\n}\n\n" \
160 $(libempathy_headers) ) > xgen-gtc \
161 && cp xgen-gtc $(@F) \
164 dtddir = $(datadir)/empathy
166 empathy-status-presets.dtd \
167 empathy-contact-groups.dtd \
168 empathy-chatroom-manager.dtd \
169 empathy-irc-networks.dtd
171 stylesheetdir = $(datadir)/empathy
173 empathy-log-manager.xsl
175 ircnetworksdir = $(datadir)/empathy
179 pkgconfigdir = $(libdir)/pkgconfig
180 pkgconfig_DATA = libempathy.pc
183 empathy-marshal.list \
190 stamp-empathy-enum-types.h