1 include $(top_srcdir)/tools/flymake.mk
8 -DDATADIR=\""$(datadir)"\" \
9 -DLOCALEDIR=\""$(datadir)/locale"\" \
10 -DG_LOG_DOMAIN=\"empathy\" \
12 $(LIBEMPATHY_CFLAGS) \
13 $(FAVOURITE_CONTACTS_CFLAGS) \
15 $(NETWORK_MANAGER_CFLAGS) \
23 empathy-marshal.list \
24 empathy-enum-types.h \
27 noinst_LTLIBRARIES = libempathy.la
29 libempathy_headers = \
30 empathy-account-settings.h \
31 empathy-call-factory.h \
32 empathy-call-handler.h \
33 empathy-chatroom-manager.h \
35 empathy-connection-managers.h \
36 empathy-connectivity.h \
37 empathy-contact-groups.h \
38 empathy-contact-list.h \
39 empathy-contact-manager.h \
40 empathy-contact-monitor.h \
43 empathy-dispatch-operation.h \
44 empathy-dispatcher.h \
45 empathy-ft-factory.h \
46 empathy-ft-handler.h \
49 empathy-irc-network-manager.h \
50 empathy-irc-network.h \
51 empathy-irc-server.h \
54 empathy-status-presets.h \
58 empathy-tp-contact-factory.h \
59 empathy-tp-contact-list.h \
61 empathy-tp-roomlist.h \
66 libempathy_headers += \
67 empathy-log-manager.h \
68 empathy-log-store-empathy.h \
73 libempathy_la_SOURCES = \
74 $(libempathy_headers) \
75 empathy-account-settings.c \
76 empathy-call-factory.c \
77 empathy-call-handler.c \
78 empathy-chatroom-manager.c \
80 empathy-connection-managers.c \
81 empathy-connectivity.c \
82 empathy-contact-groups.c \
83 empathy-contact-list.c \
84 empathy-contact-manager.c \
85 empathy-contact-monitor.c \
88 empathy-dispatch-operation.c \
89 empathy-dispatcher.c \
90 empathy-ft-factory.c \
91 empathy-ft-handler.c \
94 empathy-irc-network-manager.c \
95 empathy-irc-network.c \
96 empathy-irc-server.c \
98 empathy-status-presets.c \
102 empathy-tp-contact-factory.c \
103 empathy-tp-contact-list.c \
105 empathy-tp-roomlist.c \
109 libempathy_la_SOURCES += \
110 empathy-log-manager.c \
111 empathy-log-store-empathy.c \
112 empathy-log-store.c \
116 # do not distribute generated files
117 nodist_libempathy_la_SOURCES =\
120 libempathy_la_LIBADD = \
121 $(top_builddir)/extensions/libemp-extensions.la \
123 $(FAVOURITE_CONTACTS_LIBS) \
126 $(NETWORK_MANAGER_LIBS) \
130 $(libempathy_la_SOURCES) \
131 $(libempathy_headers)
132 include $(top_srcdir)/tools/check-coding-style.mk
133 check-local: check-coding-style
135 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
136 $(AM_V_GEN)( cd $(srcdir) && \
137 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
138 $(libempathy_la_SOURCES) ) \
139 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
140 @if cmp -s $@.tmp $@; then \
146 %-marshal.h: %-marshal.list Makefile
147 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
149 %-marshal.c: %-marshal.list Makefile
150 $(AM_V_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
151 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
153 empathy-enum-types.h: stamp-empathy-enum-types.h
155 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
156 $(AM_V_GEN)(cd $(srcdir) \
158 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
159 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
160 --fhead "#include <glib-object.h>\n\n" \
161 --fhead "G_BEGIN_DECLS\n\n" \
162 --ftail "G_END_DECLS\n\n" \
163 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
164 --fprod "#include <libempathy/@filename@>\n" \
165 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
166 --eprod "GType @enum_name@_get_type (void);\n" \
167 $(libempathy_headers) ) > xgen-gth \
168 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
170 && echo timestamp > $(@F)
172 empathy-enum-types.c: $(libempathy_headers) Makefile
173 $(AM_V_GEN)(cd $(srcdir) \
175 --fhead "#include <config.h>\n" \
176 --fhead "#include <glib-object.h>\n" \
177 --fhead "#include \"empathy-enum-types.h\"\n\n" \
178 --fprod "\n/* enumerations from \"@filename@\" */" \
179 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
180 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
181 --vtail " { 0, NULL, NULL }\n};\n\n" \
182 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
183 --vtail " static GType type = 0;\n\n" \
184 --vtail " if (!type)\n" \
185 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
186 --vtail " return type;\n}\n\n" \
187 $(libempathy_headers) ) > xgen-gtc \
188 && cp xgen-gtc $(@F) \
191 dtddir = $(datadir)/empathy
193 empathy-status-presets.dtd \
194 empathy-contact-groups.dtd \
195 empathy-chatroom-manager.dtd \
196 empathy-irc-networks.dtd
199 stylesheetdir = $(datadir)/empathy
200 stylesheet_DATA = empathy-log-manager.xsl
203 ircnetworksdir = $(datadir)/empathy
208 empathy-marshal.list \
213 EXTRA_DIST += $(stylesheet_DATA)
218 stamp-empathy-enum-types.h