1 include $(top_srcdir)/tools/shave.mk
2 include $(top_srcdir)/tools/flymake.mk
8 -DDATADIR=\""$(datadir)"\" \
9 -DLOCALEDIR=\""$(datadir)/locale"\" \
10 -DG_LOG_DOMAIN=\"empathy\" \
11 $(LIBEMPATHY_CFLAGS) \
13 $(NETWORK_MANAGER_CFLAGS) \
20 empathy-marshal.list \
21 empathy-enum-types.h \
24 lib_LTLIBRARIES = libempathy.la
26 libempathy_la_SOURCES = \
28 empathy-account-manager.c \
30 empathy-chatroom-manager.c \
31 empathy-call-factory.c \
32 empathy-call-handler.c \
34 empathy-contact-groups.c \
35 empathy-contact-list.c \
36 empathy-contact-manager.c \
37 empathy-contact-monitor.c \
40 empathy-dispatcher.c \
41 empathy-dispatch-operation.c \
42 empathy-ft-factory.c \
43 empathy-ft-handler.c \
45 empathy-irc-network.c \
46 empathy-irc-network-manager.c \
47 empathy-irc-server.c \
48 empathy-log-manager.c \
50 empathy-log-store-empathy.c \
52 empathy-status-presets.c \
56 empathy-tp-contact-factory.c \
57 empathy-tp-contact-list.c \
59 empathy-tp-roomlist.c \
60 empathy-tube-handler.c \
63 # do not distribute generated files
64 nodist_libempathy_la_SOURCES =\
67 libempathy_la_LIBADD = \
68 $(top_builddir)/extensions/libemp-extensions.la \
71 $(NETWORK_MANAGER_LIBS)
73 libempathy_la_LDFLAGS = \
74 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
75 -export-symbols-regex ^empathy_
77 libempathy_headers = \
79 empathy-account-manager.h \
81 empathy-chatroom-manager.h \
82 empathy-call-factory.h \
83 empathy-call-handler.h \
85 empathy-contact-groups.h \
86 empathy-contact-list.h \
87 empathy-contact-manager.h \
88 empathy-contact-monitor.h \
91 empathy-dispatcher.h \
92 empathy-dispatch-operation.h \
93 empathy-ft-factory.h \
94 empathy-ft-handler.h \
96 empathy-irc-network.h \
97 empathy-irc-network-manager.h \
98 empathy-irc-server.h \
100 empathy-log-manager.h \
101 empathy-log-store.h \
102 empathy-log-store-empathy.h \
104 empathy-status-presets.h \
108 empathy-tp-contact-factory.h \
109 empathy-tp-contact-list.h \
111 empathy-tp-roomlist.h \
112 empathy-tube-handler.h \
117 $(libempathy_la_SOURCES) \
118 $(libempathy_headers)
119 include $(top_srcdir)/tools/check-coding-style.mk
120 check-local: check-coding-style
122 libempathy_includedir = $(includedir)/libempathy/
123 libempathy_include_HEADERS = \
124 $(libempathy_headers) \
127 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
128 $(QUIET_GEN)( cd $(srcdir) && \
129 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
130 $(libempathy_la_SOURCES) ) \
131 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
132 if cmp -s $@.tmp $@; then \
138 %-marshal.h: %-marshal.list Makefile
139 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
141 %-marshal.c: %-marshal.list Makefile
142 $(QUIET_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
143 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
145 empathy-enum-types.h: stamp-empathy-enum-types.h
147 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
148 $(QUIET_GEN)(cd $(srcdir) \
150 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
151 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
152 --fhead "#include <glib-object.h>\n\n" \
153 --fhead "G_BEGIN_DECLS\n\n" \
154 --ftail "G_END_DECLS\n\n" \
155 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
156 --fprod "#include <libempathy/@filename@>\n" \
157 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
158 --eprod "GType @enum_name@_get_type (void);\n" \
159 $(libempathy_headers) ) > xgen-gth \
160 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
162 && echo timestamp > $(@F)
164 empathy-enum-types.c: $(libempathy_headers) Makefile
165 $(QUIET_GEN)(cd $(srcdir) \
167 --fhead "#include <config.h>\n" \
168 --fhead "#include <glib-object.h>\n" \
169 --fhead "#include \"empathy-enum-types.h\"\n\n" \
170 --fprod "\n/* enumerations from \"@filename@\" */" \
171 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
172 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
173 --vtail " { 0, NULL, NULL }\n};\n\n" \
174 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
175 --vtail " static GType type = 0;\n\n" \
176 --vtail " if (!type)\n" \
177 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
178 --vtail " return type;\n}\n\n" \
179 $(libempathy_headers) ) > xgen-gtc \
180 && cp xgen-gtc $(@F) \
183 dtddir = $(datadir)/empathy
185 empathy-status-presets.dtd \
186 empathy-contact-groups.dtd \
187 empathy-chatroom-manager.dtd \
188 empathy-irc-networks.dtd
190 stylesheetdir = $(datadir)/empathy
192 empathy-log-manager.xsl
194 ircnetworksdir = $(datadir)/empathy
198 pkgconfigdir = $(libdir)/pkgconfig
199 pkgconfig_DATA = libempathy.pc
202 empathy-marshal.list \
209 stamp-empathy-enum-types.h