1 include $(top_srcdir)/tools/shave.mk
7 -DDATADIR=\""$(datadir)"\" \
8 -DLOCALEDIR=\""$(datadir)/locale"\" \
17 empathy-marshal.list \
18 empathy-enum-types.h \
21 lib_LTLIBRARIES = libempathy.la
23 libempathy_la_SOURCES = \
24 empathy-account-manager.c \
26 empathy-chatroom-manager.c \
27 empathy-call-factory.c \
28 empathy-call-handler.c \
30 empathy-contact-groups.c \
31 empathy-contact-list.c \
32 empathy-contact-manager.c \
33 empathy-contact-monitor.c \
35 empathy-dispatcher.c \
36 empathy-dispatch-operation.c \
38 empathy-irc-network.c \
39 empathy-irc-network-manager.c \
40 empathy-irc-server.c \
41 empathy-log-manager.c \
43 empathy-log-store-empathy.c \
45 empathy-status-presets.c \
49 empathy-tp-contact-factory.c \
50 empathy-tp-contact-list.c \
52 empathy-tp-roomlist.c \
54 empathy-tube-handler.c \
57 # do not distribute generated files
58 nodist_libempathy_la_SOURCES =\
61 libempathy_la_LIBADD = \
62 $(top_builddir)/extensions/libemp-extensions.la \
66 libempathy_la_LDFLAGS = \
67 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
68 -export-symbols-regex ^empathy_
70 libempathy_headers = \
71 empathy-account-manager.h \
73 empathy-chatroom-manager.h \
74 empathy-call-factory.h \
75 empathy-call-handler.h \
77 empathy-contact-groups.h \
78 empathy-contact-list.h \
79 empathy-contact-manager.h \
80 empathy-contact-monitor.h \
82 empathy-dispatcher.h \
83 empathy-dispatch-operation.h \
85 empathy-irc-network.h \
86 empathy-irc-network-manager.h \
87 empathy-irc-server.h \
89 empathy-log-manager.h \
91 empathy-log-store-empathy.h \
93 empathy-status-presets.h \
97 empathy-tp-contact-factory.h \
98 empathy-tp-contact-list.h \
100 empathy-tp-roomlist.h \
102 empathy-tube-handler.h \
107 $(libempathy_la_SOURCES) \
108 $(libempathy_headers)
109 include $(top_srcdir)/tools/check-coding-style.mk
110 check-local: check-coding-style
112 libempathy_includedir = $(includedir)/libempathy/
113 libempathy_include_HEADERS = \
114 $(libempathy_headers) \
117 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
118 $(QUIET_GEN)( cd $(srcdir) && \
119 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
120 $(libempathy_la_SOURCES) ) \
121 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
122 if cmp -s $@.tmp $@; then \
128 %-marshal.h: %-marshal.list Makefile
129 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
131 %-marshal.c: %-marshal.list Makefile
132 $(QUIET_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
133 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
135 empathy-enum-types.h: stamp-empathy-enum-types.h
137 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
138 $(QUIET_GEN)(cd $(srcdir) \
140 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
141 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
142 --fhead "#include <glib-object.h>\n\n" \
143 --fhead "G_BEGIN_DECLS\n\n" \
144 --ftail "G_END_DECLS\n\n" \
145 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
146 --fprod "#include <libempathy/@filename@>\n" \
147 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
148 --eprod "GType @enum_name@_get_type (void);\n" \
149 $(libempathy_headers) ) > xgen-gth \
150 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
152 && echo timestamp > $(@F)
154 empathy-enum-types.c: $(libempathy_headers) Makefile
155 $(QUIET_GEN)(cd $(srcdir) \
157 --fhead "#include <config.h>\n" \
158 --fhead "#include <glib-object.h>\n" \
159 --fhead "#include \"empathy-enum-types.h\"\n\n" \
160 --fprod "\n/* enumerations from \"@filename@\" */" \
161 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
162 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
163 --vtail " { 0, NULL, NULL }\n};\n\n" \
164 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
165 --vtail " static GType type = 0;\n\n" \
166 --vtail " if (!type)\n" \
167 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
168 --vtail " return type;\n}\n\n" \
169 $(libempathy_headers) ) > xgen-gtc \
170 && cp xgen-gtc $(@F) \
173 dtddir = $(datadir)/empathy
175 empathy-status-presets.dtd \
176 empathy-contact-groups.dtd \
177 empathy-chatroom-manager.dtd \
178 empathy-irc-networks.dtd
180 stylesheetdir = $(datadir)/empathy
182 empathy-log-manager.xsl
184 ircnetworksdir = $(datadir)/empathy
188 pkgconfigdir = $(libdir)/pkgconfig
189 pkgconfig_DATA = libempathy.pc
192 empathy-marshal.list \
199 stamp-empathy-enum-types.h