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 \
37 empathy-ft-factory.c \
38 empathy-ft-handler.c \
40 empathy-irc-network.c \
41 empathy-irc-network-manager.c \
42 empathy-irc-server.c \
43 empathy-log-manager.c \
45 empathy-log-store-empathy.c \
47 empathy-status-presets.c \
51 empathy-tp-contact-factory.c \
52 empathy-tp-contact-list.c \
54 empathy-tp-roomlist.c \
56 empathy-tube-handler.c \
59 # do not distribute generated files
60 nodist_libempathy_la_SOURCES =\
63 libempathy_la_LIBADD = \
64 $(top_builddir)/extensions/libemp-extensions.la \
68 libempathy_la_LDFLAGS = \
69 -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
70 -export-symbols-regex ^empathy_
72 libempathy_headers = \
73 empathy-account-manager.h \
75 empathy-chatroom-manager.h \
76 empathy-call-factory.h \
77 empathy-call-handler.h \
79 empathy-contact-groups.h \
80 empathy-contact-list.h \
81 empathy-contact-manager.h \
82 empathy-contact-monitor.h \
84 empathy-dispatcher.h \
85 empathy-dispatch-operation.h \
86 empathy-ft-factory.h \
87 empathy-ft-handler.h \
89 empathy-irc-network.h \
90 empathy-irc-network-manager.h \
91 empathy-irc-server.h \
93 empathy-log-manager.h \
95 empathy-log-store-empathy.h \
97 empathy-status-presets.h \
101 empathy-tp-contact-factory.h \
102 empathy-tp-contact-list.h \
104 empathy-tp-roomlist.h \
106 empathy-tube-handler.h \
111 $(libempathy_la_SOURCES) \
112 $(libempathy_headers)
113 include $(top_srcdir)/tools/check-coding-style.mk
114 check-local: check-coding-style
116 libempathy_includedir = $(includedir)/libempathy/
117 libempathy_include_HEADERS = \
118 $(libempathy_headers) \
121 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
122 $(QUIET_GEN)( cd $(srcdir) && \
123 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
124 $(libempathy_la_SOURCES) ) \
125 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
126 if cmp -s $@.tmp $@; then \
132 %-marshal.h: %-marshal.list Makefile
133 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
135 %-marshal.c: %-marshal.list Makefile
136 $(QUIET_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
137 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
139 empathy-enum-types.h: stamp-empathy-enum-types.h
141 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
142 $(QUIET_GEN)(cd $(srcdir) \
144 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
145 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
146 --fhead "#include <glib-object.h>\n\n" \
147 --fhead "G_BEGIN_DECLS\n\n" \
148 --ftail "G_END_DECLS\n\n" \
149 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
150 --fprod "#include <libempathy/@filename@>\n" \
151 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
152 --eprod "GType @enum_name@_get_type (void);\n" \
153 $(libempathy_headers) ) > xgen-gth \
154 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
156 && echo timestamp > $(@F)
158 empathy-enum-types.c: $(libempathy_headers) Makefile
159 $(QUIET_GEN)(cd $(srcdir) \
161 --fhead "#include <config.h>\n" \
162 --fhead "#include <glib-object.h>\n" \
163 --fhead "#include \"empathy-enum-types.h\"\n\n" \
164 --fprod "\n/* enumerations from \"@filename@\" */" \
165 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
166 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
167 --vtail " { 0, NULL, NULL }\n};\n\n" \
168 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
169 --vtail " static GType type = 0;\n\n" \
170 --vtail " if (!type)\n" \
171 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
172 --vtail " return type;\n}\n\n" \
173 $(libempathy_headers) ) > xgen-gtc \
174 && cp xgen-gtc $(@F) \
177 dtddir = $(datadir)/empathy
179 empathy-status-presets.dtd \
180 empathy-contact-groups.dtd \
181 empathy-chatroom-manager.dtd \
182 empathy-irc-networks.dtd
184 stylesheetdir = $(datadir)/empathy
186 empathy-log-manager.xsl
188 ircnetworksdir = $(datadir)/empathy
192 pkgconfigdir = $(libdir)/pkgconfig
193 pkgconfig_DATA = libempathy.pc
196 empathy-marshal.list \
203 stamp-empathy-enum-types.h