1 include $(top_srcdir)/tools/flymake.mk
8 -DDATADIR=\""$(datadir)"\" \
9 -DLOCALEDIR=\""$(datadir)/locale"\" \
10 -DG_LOG_DOMAIN=\"empathy\" \
12 $(LIBEMPATHY_CFLAGS) \
14 $(NETWORK_MANAGER_CFLAGS) \
22 empathy-marshal.list \
23 empathy-enum-types.h \
26 noinst_LTLIBRARIES = libempathy.la
28 libempathy_headers = \
29 empathy-account-settings.h \
30 empathy-call-factory.h \
31 empathy-call-handler.h \
32 empathy-chatroom-manager.h \
34 empathy-connection-managers.h \
35 empathy-connectivity.h \
36 empathy-contact-groups.h \
37 empathy-contact-list.h \
38 empathy-contact-manager.h \
41 empathy-dispatch-operation.h \
42 empathy-dispatcher.h \
43 empathy-ft-factory.h \
44 empathy-ft-handler.h \
47 empathy-irc-network-manager.h \
48 empathy-irc-network.h \
49 empathy-irc-server.h \
52 empathy-status-presets.h \
56 empathy-tp-contact-factory.h \
57 empathy-tp-contact-list.h \
59 empathy-tp-roomlist.h \
64 libempathy_headers += \
65 empathy-log-manager.h \
66 empathy-log-store-empathy.h \
71 libempathy_la_SOURCES = \
72 $(libempathy_headers) \
73 empathy-account-settings.c \
74 empathy-call-factory.c \
75 empathy-call-handler.c \
76 empathy-chatroom-manager.c \
78 empathy-connection-managers.c \
79 empathy-connectivity.c \
80 empathy-contact-groups.c \
81 empathy-contact-list.c \
82 empathy-contact-manager.c \
85 empathy-dispatch-operation.c \
86 empathy-dispatcher.c \
87 empathy-ft-factory.c \
88 empathy-ft-handler.c \
91 empathy-irc-network-manager.c \
92 empathy-irc-network.c \
93 empathy-irc-server.c \
95 empathy-status-presets.c \
99 empathy-tp-contact-factory.c \
100 empathy-tp-contact-list.c \
102 empathy-tp-roomlist.c \
106 libempathy_la_SOURCES += \
107 empathy-log-manager.c \
108 empathy-log-store-empathy.c \
109 empathy-log-store.c \
113 # do not distribute generated files
114 nodist_libempathy_la_SOURCES =\
117 libempathy_la_LIBADD = \
118 $(top_builddir)/extensions/libemp-extensions.la \
122 $(NETWORK_MANAGER_LIBS) \
126 $(libempathy_la_SOURCES) \
127 $(libempathy_headers)
128 include $(top_srcdir)/tools/check-coding-style.mk
129 check-local: check-coding-style
131 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
132 $(AM_V_GEN)( cd $(srcdir) && \
133 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
134 $(libempathy_la_SOURCES) ) \
135 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
136 @if cmp -s $@.tmp $@; then \
142 %-marshal.h: %-marshal.list Makefile
143 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
145 %-marshal.c: %-marshal.list Makefile
146 $(AM_V_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
147 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
149 empathy-enum-types.h: stamp-empathy-enum-types.h
151 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
152 $(AM_V_GEN)(cd $(srcdir) \
154 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
155 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
156 --fhead "#include <glib-object.h>\n\n" \
157 --fhead "G_BEGIN_DECLS\n\n" \
158 --ftail "G_END_DECLS\n\n" \
159 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
160 --fprod "#include <libempathy/@filename@>\n" \
161 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
162 --eprod "GType @enum_name@_get_type (void);\n" \
163 $(libempathy_headers) ) > xgen-gth \
164 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
166 && echo timestamp > $(@F)
168 empathy-enum-types.c: $(libempathy_headers) Makefile
169 $(AM_V_GEN)(cd $(srcdir) \
171 --fhead "#include <config.h>\n" \
172 --fhead "#include <glib-object.h>\n" \
173 --fhead "#include \"empathy-enum-types.h\"\n\n" \
174 --fprod "\n/* enumerations from \"@filename@\" */" \
175 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
176 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
177 --vtail " { 0, NULL, NULL }\n};\n\n" \
178 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
179 --vtail " static GType type = 0;\n\n" \
180 --vtail " if (!type)\n" \
181 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
182 --vtail " return type;\n}\n\n" \
183 $(libempathy_headers) ) > xgen-gtc \
184 && cp xgen-gtc $(@F) \
187 dtddir = $(datadir)/empathy
189 empathy-status-presets.dtd \
190 empathy-contact-groups.dtd \
191 empathy-chatroom-manager.dtd \
192 empathy-irc-networks.dtd
195 stylesheetdir = $(datadir)/empathy
196 stylesheet_DATA = empathy-log-manager.xsl
199 ircnetworksdir = $(datadir)/empathy
204 empathy-marshal.list \
209 EXTRA_DIST += $(stylesheet_DATA)
214 stamp-empathy-enum-types.h