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) \
21 empathy-marshal.list \
22 empathy-enum-types.h \
25 noinst_LTLIBRARIES = libempathy.la
27 libempathy_headers = \
28 empathy-account-settings.h \
30 empathy-account-manager.h \
32 empathy-chatroom-manager.h \
33 empathy-call-factory.h \
34 empathy-call-handler.h \
35 empathy-connectivity.h \
37 empathy-contact-groups.h \
38 empathy-contact-list.h \
39 empathy-contact-manager.h \
40 empathy-contact-monitor.h \
41 empathy-connection-managers.h \
44 empathy-dispatcher.h \
45 empathy-dispatch-operation.h \
46 empathy-ft-factory.h \
47 empathy-ft-handler.h \
50 empathy-irc-network.h \
51 empathy-irc-network-manager.h \
52 empathy-irc-server.h \
54 empathy-log-manager.h \
56 empathy-log-store-empathy.h \
58 empathy-status-presets.h \
62 empathy-tp-contact-factory.h \
63 empathy-tp-contact-list.h \
65 empathy-tp-roomlist.h \
66 empathy-tube-handler.h \
70 libempathy_la_SOURCES = \
71 $(libempathy_headers) \
73 empathy-account-settings.c \
74 empathy-account-manager.c \
76 empathy-chatroom-manager.c \
77 empathy-call-factory.c \
78 empathy-call-handler.c \
79 empathy-connectivity.c \
81 empathy-contact-groups.c \
82 empathy-contact-list.c \
83 empathy-contact-manager.c \
84 empathy-contact-monitor.c \
85 empathy-connection-managers.c \
88 empathy-dispatcher.c \
89 empathy-dispatch-operation.c \
90 empathy-ft-factory.c \
91 empathy-ft-handler.c \
94 empathy-irc-network.c \
95 empathy-irc-network-manager.c \
96 empathy-irc-server.c \
97 empathy-log-manager.c \
99 empathy-log-store-empathy.c \
101 empathy-status-presets.c \
105 empathy-tp-contact-factory.c \
106 empathy-tp-contact-list.c \
108 empathy-tp-roomlist.c \
109 empathy-tube-handler.c \
112 # do not distribute generated files
113 nodist_libempathy_la_SOURCES =\
116 libempathy_la_LIBADD = \
117 $(top_builddir)/extensions/libemp-extensions.la \
120 $(NETWORK_MANAGER_LIBS) \
124 $(libempathy_la_SOURCES) \
125 $(libempathy_headers)
126 include $(top_srcdir)/tools/check-coding-style.mk
127 check-local: check-coding-style
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
201 empathy-marshal.list \
208 stamp-empathy-enum-types.h