1 include $(top_srcdir)/tools/shave.mk
2 include $(top_srcdir)/tools/flymake.mk
9 -DDATADIR=\""$(datadir)"\" \
10 -DLOCALEDIR=\""$(datadir)/locale"\" \
11 -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 \
31 empathy-chatroom-manager.h \
32 empathy-call-factory.h \
33 empathy-call-handler.h \
34 empathy-connectivity.h \
36 empathy-contact-groups.h \
37 empathy-contact-list.h \
38 empathy-contact-manager.h \
39 empathy-contact-monitor.h \
40 empathy-connection-managers.h \
43 empathy-dispatcher.h \
44 empathy-dispatch-operation.h \
45 empathy-ft-factory.h \
46 empathy-ft-handler.h \
49 empathy-irc-network.h \
50 empathy-irc-network-manager.h \
51 empathy-irc-server.h \
53 empathy-log-manager.h \
55 empathy-log-store-empathy.h \
57 empathy-status-presets.h \
61 empathy-tp-contact-factory.h \
62 empathy-tp-contact-list.h \
64 empathy-tp-roomlist.h \
65 empathy-tube-handler.h \
69 libempathy_la_SOURCES = \
70 $(libempathy_headers) \
71 empathy-account-settings.c \
73 empathy-chatroom-manager.c \
74 empathy-call-factory.c \
75 empathy-call-handler.c \
76 empathy-connectivity.c \
78 empathy-contact-groups.c \
79 empathy-contact-list.c \
80 empathy-contact-manager.c \
81 empathy-contact-monitor.c \
82 empathy-connection-managers.c \
85 empathy-dispatcher.c \
86 empathy-dispatch-operation.c \
87 empathy-ft-factory.c \
88 empathy-ft-handler.c \
91 empathy-irc-network.c \
92 empathy-irc-network-manager.c \
93 empathy-irc-server.c \
94 empathy-log-manager.c \
96 empathy-log-store-empathy.c \
98 empathy-status-presets.c \
102 empathy-tp-contact-factory.c \
103 empathy-tp-contact-list.c \
105 empathy-tp-roomlist.c \
106 empathy-tube-handler.c \
109 # do not distribute generated files
110 nodist_libempathy_la_SOURCES =\
113 libempathy_la_LIBADD = \
114 $(top_builddir)/extensions/libemp-extensions.la \
117 $(NETWORK_MANAGER_LIBS) \
121 $(libempathy_la_SOURCES) \
122 $(libempathy_headers)
123 include $(top_srcdir)/tools/check-coding-style.mk
124 check-local: check-coding-style
126 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
127 $(QUIET_GEN)( cd $(srcdir) && \
128 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
129 $(libempathy_la_SOURCES) ) \
130 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
131 if cmp -s $@.tmp $@; then \
137 %-marshal.h: %-marshal.list Makefile
138 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
140 %-marshal.c: %-marshal.list Makefile
141 $(QUIET_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
142 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
144 empathy-enum-types.h: stamp-empathy-enum-types.h
146 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
147 $(QUIET_GEN)(cd $(srcdir) \
149 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
150 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
151 --fhead "#include <glib-object.h>\n\n" \
152 --fhead "G_BEGIN_DECLS\n\n" \
153 --ftail "G_END_DECLS\n\n" \
154 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
155 --fprod "#include <libempathy/@filename@>\n" \
156 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
157 --eprod "GType @enum_name@_get_type (void);\n" \
158 $(libempathy_headers) ) > xgen-gth \
159 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
161 && echo timestamp > $(@F)
163 empathy-enum-types.c: $(libempathy_headers) Makefile
164 $(QUIET_GEN)(cd $(srcdir) \
166 --fhead "#include <config.h>\n" \
167 --fhead "#include <glib-object.h>\n" \
168 --fhead "#include \"empathy-enum-types.h\"\n\n" \
169 --fprod "\n/* enumerations from \"@filename@\" */" \
170 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
171 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
172 --vtail " { 0, NULL, NULL }\n};\n\n" \
173 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
174 --vtail " static GType type = 0;\n\n" \
175 --vtail " if (!type)\n" \
176 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
177 --vtail " return type;\n}\n\n" \
178 $(libempathy_headers) ) > xgen-gtc \
179 && cp xgen-gtc $(@F) \
182 dtddir = $(datadir)/empathy
184 empathy-status-presets.dtd \
185 empathy-contact-groups.dtd \
186 empathy-chatroom-manager.dtd \
187 empathy-irc-networks.dtd
189 stylesheetdir = $(datadir)/empathy
191 empathy-log-manager.xsl
193 ircnetworksdir = $(datadir)/empathy
198 empathy-marshal.list \
205 stamp-empathy-enum-types.h