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 \
38 empathy-connection-managers.c \
41 empathy-dispatcher.c \
42 empathy-dispatch-operation.c \
43 empathy-ft-factory.c \
44 empathy-ft-handler.c \
46 empathy-irc-network.c \
47 empathy-irc-network-manager.c \
48 empathy-irc-server.c \
49 empathy-log-manager.c \
51 empathy-log-store-empathy.c \
53 empathy-status-presets.c \
57 empathy-tp-contact-factory.c \
58 empathy-tp-contact-list.c \
60 empathy-tp-roomlist.c \
61 empathy-tube-handler.c \
64 # do not distribute generated files
65 nodist_libempathy_la_SOURCES =\
68 libempathy_la_LIBADD = \
69 $(top_builddir)/extensions/libemp-extensions.la \
72 $(NETWORK_MANAGER_LIBS)
74 libempathy_la_LDFLAGS = \
75 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
76 -export-symbols-regex ^empathy_
78 libempathy_headers = \
80 empathy-account-manager.h \
82 empathy-chatroom-manager.h \
83 empathy-call-factory.h \
84 empathy-call-handler.h \
86 empathy-contact-groups.h \
87 empathy-contact-list.h \
88 empathy-contact-manager.h \
89 empathy-contact-monitor.h \
90 empathy-connection-managers.h \
93 empathy-dispatcher.h \
94 empathy-dispatch-operation.h \
95 empathy-ft-factory.h \
96 empathy-ft-handler.h \
98 empathy-irc-network.h \
99 empathy-irc-network-manager.h \
100 empathy-irc-server.h \
102 empathy-log-manager.h \
103 empathy-log-store.h \
104 empathy-log-store-empathy.h \
106 empathy-status-presets.h \
110 empathy-tp-contact-factory.h \
111 empathy-tp-contact-list.h \
113 empathy-tp-roomlist.h \
114 empathy-tube-handler.h \
119 $(libempathy_la_SOURCES) \
120 $(libempathy_headers)
121 include $(top_srcdir)/tools/check-coding-style.mk
122 check-local: check-coding-style
124 libempathy_includedir = $(includedir)/libempathy/
125 libempathy_include_HEADERS = \
126 $(libempathy_headers) \
129 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
130 $(QUIET_GEN)( cd $(srcdir) && \
131 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
132 $(libempathy_la_SOURCES) ) \
133 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
134 if cmp -s $@.tmp $@; then \
140 %-marshal.h: %-marshal.list Makefile
141 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
143 %-marshal.c: %-marshal.list Makefile
144 $(QUIET_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
145 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
147 empathy-enum-types.h: stamp-empathy-enum-types.h
149 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
150 $(QUIET_GEN)(cd $(srcdir) \
152 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
153 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
154 --fhead "#include <glib-object.h>\n\n" \
155 --fhead "G_BEGIN_DECLS\n\n" \
156 --ftail "G_END_DECLS\n\n" \
157 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
158 --fprod "#include <libempathy/@filename@>\n" \
159 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
160 --eprod "GType @enum_name@_get_type (void);\n" \
161 $(libempathy_headers) ) > xgen-gth \
162 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
164 && echo timestamp > $(@F)
166 empathy-enum-types.c: $(libempathy_headers) Makefile
167 $(QUIET_GEN)(cd $(srcdir) \
169 --fhead "#include <config.h>\n" \
170 --fhead "#include <glib-object.h>\n" \
171 --fhead "#include \"empathy-enum-types.h\"\n\n" \
172 --fprod "\n/* enumerations from \"@filename@\" */" \
173 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
174 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
175 --vtail " { 0, NULL, NULL }\n};\n\n" \
176 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
177 --vtail " static GType type = 0;\n\n" \
178 --vtail " if (!type)\n" \
179 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
180 --vtail " return type;\n}\n\n" \
181 $(libempathy_headers) ) > xgen-gtc \
182 && cp xgen-gtc $(@F) \
185 dtddir = $(datadir)/empathy
187 empathy-status-presets.dtd \
188 empathy-contact-groups.dtd \
189 empathy-chatroom-manager.dtd \
190 empathy-irc-networks.dtd
192 stylesheetdir = $(datadir)/empathy
194 empathy-log-manager.xsl
196 ircnetworksdir = $(datadir)/empathy
200 pkgconfigdir = $(libdir)/pkgconfig
201 pkgconfig_DATA = libempathy.pc
204 empathy-marshal.list \
211 stamp-empathy-enum-types.h