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 \
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 \
98 empathy-tp-roomlist.h \
100 empathy-tube-handler.h \
105 $(libempathy_la_SOURCES) \
106 $(libempathy_headers)
107 include $(top_srcdir)/tools/check-coding-style.mk
108 check-local: check-coding-style
110 libempathy_includedir = $(includedir)/libempathy/
111 libempathy_include_HEADERS = \
112 $(libempathy_headers) \
115 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
116 $(QUIET_GEN)( cd $(srcdir) && \
117 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
118 $(libempathy_la_SOURCES) ) \
119 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
120 if cmp -s $@.tmp $@; then \
126 %-marshal.h: %-marshal.list Makefile
127 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
129 %-marshal.c: %-marshal.list Makefile
130 $(QUIET_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
131 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
133 empathy-enum-types.h: stamp-empathy-enum-types.h
135 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
136 $(QUIET_GEN)(cd $(srcdir) \
138 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
139 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
140 --fhead "#include <glib-object.h>\n\n" \
141 --fhead "G_BEGIN_DECLS\n\n" \
142 --ftail "G_END_DECLS\n\n" \
143 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
144 --fprod "#include <libempathy/@filename@>\n" \
145 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
146 --eprod "GType @enum_name@_get_type (void);\n" \
147 $(libempathy_headers) ) > xgen-gth \
148 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
150 && echo timestamp > $(@F)
152 empathy-enum-types.c: $(libempathy_headers) Makefile
153 $(QUIET_GEN)(cd $(srcdir) \
155 --fhead "#include <config.h>\n" \
156 --fhead "#include <glib-object.h>\n" \
157 --fhead "#include \"empathy-enum-types.h\"\n\n" \
158 --fprod "\n/* enumerations from \"@filename@\" */" \
159 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
160 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
161 --vtail " { 0, NULL, NULL }\n};\n\n" \
162 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
163 --vtail " static GType type = 0;\n\n" \
164 --vtail " if (!type)\n" \
165 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
166 --vtail " return type;\n}\n\n" \
167 $(libempathy_headers) ) > xgen-gtc \
168 && cp xgen-gtc $(@F) \
171 dtddir = $(datadir)/empathy
173 empathy-status-presets.dtd \
174 empathy-contact-groups.dtd \
175 empathy-chatroom-manager.dtd \
176 empathy-irc-networks.dtd
178 stylesheetdir = $(datadir)/empathy
180 empathy-log-manager.xsl
182 ircnetworksdir = $(datadir)/empathy
186 pkgconfigdir = $(libdir)/pkgconfig
187 pkgconfig_DATA = libempathy.pc
190 empathy-marshal.list \
197 stamp-empathy-enum-types.h