1 include $(top_srcdir)/tools/shave.mk
2 include $(top_srcdir)/tools/flymake.mk
8 -DDATADIR=\""$(datadir)"\" \
9 -DLOCALEDIR=\""$(datadir)/locale"\" \
10 $(LIBEMPATHY_CFLAGS) \
18 empathy-marshal.list \
19 empathy-enum-types.h \
22 lib_LTLIBRARIES = libempathy.la
24 libempathy_la_SOURCES = \
25 empathy-account-manager.c \
27 empathy-chatroom-manager.c \
28 empathy-call-factory.c \
29 empathy-call-handler.c \
31 empathy-contact-groups.c \
32 empathy-contact-list.c \
33 empathy-contact-manager.c \
34 empathy-contact-monitor.c \
36 empathy-dispatcher.c \
37 empathy-dispatch-operation.c \
38 empathy-ft-factory.c \
39 empathy-ft-handler.c \
41 empathy-irc-network.c \
42 empathy-irc-network-manager.c \
43 empathy-irc-server.c \
44 empathy-log-manager.c \
46 empathy-log-store-empathy.c \
48 empathy-status-presets.c \
52 empathy-tp-contact-factory.c \
53 empathy-tp-contact-list.c \
55 empathy-tp-roomlist.c \
57 empathy-tube-handler.c \
60 # do not distribute generated files
61 nodist_libempathy_la_SOURCES =\
64 libempathy_la_LIBADD = \
65 $(top_builddir)/extensions/libemp-extensions.la \
69 libempathy_la_LDFLAGS = \
70 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
71 -export-symbols-regex ^empathy_
73 libempathy_headers = \
74 empathy-account-manager.h \
76 empathy-chatroom-manager.h \
77 empathy-call-factory.h \
78 empathy-call-handler.h \
80 empathy-contact-groups.h \
81 empathy-contact-list.h \
82 empathy-contact-manager.h \
83 empathy-contact-monitor.h \
85 empathy-dispatcher.h \
86 empathy-dispatch-operation.h \
87 empathy-ft-factory.h \
88 empathy-ft-handler.h \
90 empathy-irc-network.h \
91 empathy-irc-network-manager.h \
92 empathy-irc-server.h \
94 empathy-log-manager.h \
96 empathy-log-store-empathy.h \
98 empathy-status-presets.h \
102 empathy-tp-contact-factory.h \
103 empathy-tp-contact-list.h \
105 empathy-tp-roomlist.h \
107 empathy-tube-handler.h \
112 $(libempathy_la_SOURCES) \
113 $(libempathy_headers)
114 include $(top_srcdir)/tools/check-coding-style.mk
115 check-local: check-coding-style
117 libempathy_includedir = $(includedir)/libempathy/
118 libempathy_include_HEADERS = \
119 $(libempathy_headers) \
122 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
123 $(QUIET_GEN)( cd $(srcdir) && \
124 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
125 $(libempathy_la_SOURCES) ) \
126 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
127 if cmp -s $@.tmp $@; then \
133 %-marshal.h: %-marshal.list Makefile
134 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
136 %-marshal.c: %-marshal.list Makefile
137 $(QUIET_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
138 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
140 empathy-enum-types.h: stamp-empathy-enum-types.h
142 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
143 $(QUIET_GEN)(cd $(srcdir) \
145 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
146 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
147 --fhead "#include <glib-object.h>\n\n" \
148 --fhead "G_BEGIN_DECLS\n\n" \
149 --ftail "G_END_DECLS\n\n" \
150 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
151 --fprod "#include <libempathy/@filename@>\n" \
152 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
153 --eprod "GType @enum_name@_get_type (void);\n" \
154 $(libempathy_headers) ) > xgen-gth \
155 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
157 && echo timestamp > $(@F)
159 empathy-enum-types.c: $(libempathy_headers) Makefile
160 $(QUIET_GEN)(cd $(srcdir) \
162 --fhead "#include <config.h>\n" \
163 --fhead "#include <glib-object.h>\n" \
164 --fhead "#include \"empathy-enum-types.h\"\n\n" \
165 --fprod "\n/* enumerations from \"@filename@\" */" \
166 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
167 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
168 --vtail " { 0, NULL, NULL }\n};\n\n" \
169 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
170 --vtail " static GType type = 0;\n\n" \
171 --vtail " if (!type)\n" \
172 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
173 --vtail " return type;\n}\n\n" \
174 $(libempathy_headers) ) > xgen-gtc \
175 && cp xgen-gtc $(@F) \
178 dtddir = $(datadir)/empathy
180 empathy-status-presets.dtd \
181 empathy-contact-groups.dtd \
182 empathy-chatroom-manager.dtd \
183 empathy-irc-networks.dtd
185 stylesheetdir = $(datadir)/empathy
187 empathy-log-manager.xsl
189 ircnetworksdir = $(datadir)/empathy
193 pkgconfigdir = $(libdir)/pkgconfig
194 pkgconfig_DATA = libempathy.pc
197 empathy-marshal.list \
204 stamp-empathy-enum-types.h