1 include $(top_srcdir)/tools/flymake.mk
8 -DDATADIR=\""$(datadir)"\" \
9 -DLOCALEDIR=\""$(datadir)/locale"\" \
10 -DG_LOG_DOMAIN=\"empathy\" \
11 -DGCR_API_SUBJECT_TO_CHANGE \
16 $(NETWORK_MANAGER_CFLAGS) \
25 empathy-marshal.list \
26 empathy-enum-types.h \
29 noinst_LTLIBRARIES = libempathy.la
31 libempathy_headers = \
32 action-chain-internal.h \
33 empathy-account-settings.h \
34 empathy-auth-factory.h \
35 empathy-camera-monitor.h \
36 empathy-chatroom-manager.h \
38 empathy-client-factory.h \
39 empathy-connection-managers.h \
40 empathy-connectivity.h \
41 empathy-contact-groups.h \
42 empathy-contact-list.h \
43 empathy-contact-manager.h \
46 empathy-ft-factory.h \
47 empathy-ft-handler.h \
49 empathy-presence-manager.h \
50 empathy-individual-manager.h \
51 empathy-irc-network-manager.h \
52 empathy-irc-network.h \
53 empathy-irc-server.h \
57 empathy-request-util.h \
58 empathy-server-sasl-handler.h \
59 empathy-server-tls-handler.h \
60 empathy-status-presets.h \
62 empathy-tls-certificate.h \
63 empathy-tls-verifier.h \
65 empathy-tp-contact-factory.h \
66 empathy-tp-contact-list.h \
68 empathy-tp-roomlist.h \
69 empathy-tp-streamed-media.h \
73 libempathy_handwritten_source = \
74 $(libempathy_headers) \
76 empathy-account-settings.c \
77 empathy-auth-factory.c \
78 empathy-camera-monitor.c \
79 empathy-chatroom-manager.c \
81 empathy-client-factory.c \
82 empathy-connection-managers.c \
83 empathy-connectivity.c \
84 empathy-contact-groups.c \
85 empathy-contact-list.c \
86 empathy-contact-manager.c \
89 empathy-ft-factory.c \
90 empathy-ft-handler.c \
91 empathy-presence-manager.c \
92 empathy-individual-manager.c \
93 empathy-irc-network-manager.c \
94 empathy-irc-network.c \
95 empathy-irc-server.c \
98 empathy-request-util.c \
99 empathy-server-sasl-handler.c \
100 empathy-server-tls-handler.c \
101 empathy-status-presets.c \
103 empathy-tls-certificate.c \
104 empathy-tls-verifier.c \
106 empathy-tp-contact-factory.c \
107 empathy-tp-contact-list.c \
109 empathy-tp-roomlist.c \
110 empathy-tp-streamed-media.c \
113 libempathy_la_SOURCES = \
114 $(libempathy_handwritten_source) \
115 cheese-camera-device-monitor.c cheese-camera-device-monitor.h
117 # do not distribute generated files
118 nodist_libempathy_la_SOURCES =\
121 libempathy_la_LIBADD = \
122 $(top_builddir)/extensions/libemp-extensions.la \
123 $(top_builddir)/telepathy-yell/telepathy-yell/libtelepathy-yell.la \
128 $(NETWORK_MANAGER_LIBS) \
134 $(libempathy_handwritten_source)
135 include $(top_srcdir)/tools/check-coding-style.mk
136 check-local: check-coding-style
138 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
139 $(AM_V_GEN)( cd $(srcdir) && \
140 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
141 $(libempathy_la_SOURCES) ) \
142 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
143 @if cmp -s $@.tmp $@; then \
149 empathy-marshal.h: empathy-marshal.list Makefile
150 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_empathy_marshal $< > empathy-marshal.h
152 empathy-marshal.c: empathy-marshal.list Makefile
153 $(AM_V_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
154 $(GLIB_GENMARSHAL) --body --prefix=_empathy_marshal $< >> empathy-marshal.c
156 empathy-enum-types.h: stamp-empathy-enum-types.h
158 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
159 $(AM_V_GEN)(cd $(srcdir) \
161 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
162 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
163 --fhead "#include <glib-object.h>\n\n" \
164 --fhead "G_BEGIN_DECLS\n\n" \
165 --ftail "G_END_DECLS\n\n" \
166 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
167 --fprod "#include <libempathy/@filename@>\n" \
168 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
169 --eprod "GType @enum_name@_get_type (void);\n" \
170 $(libempathy_headers) ) > xgen-gth \
171 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
173 && echo timestamp > $(@F)
175 empathy-enum-types.c: $(libempathy_headers) Makefile
176 $(AM_V_GEN)(cd $(srcdir) \
178 --fhead "#include <config.h>\n" \
179 --fhead "#include <glib-object.h>\n" \
180 --fhead "#include \"empathy-enum-types.h\"\n\n" \
181 --fprod "\n/* enumerations from \"@filename@\" */" \
182 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
183 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
184 --vtail " { 0, NULL, NULL }\n};\n\n" \
185 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
186 --vtail " static GType type = 0;\n\n" \
187 --vtail " if (!type)\n" \
188 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
189 --vtail " return type;\n}\n\n" \
190 $(libempathy_headers) ) > xgen-gtc \
191 && cp xgen-gtc $(@F) \
194 dtddir = $(datadir)/empathy
196 empathy-status-presets.dtd \
197 empathy-contact-groups.dtd \
198 empathy-chatroom-manager.dtd \
199 empathy-irc-networks.dtd
201 ircnetworksdir = $(datadir)/empathy
206 empathy-marshal.list \
212 stamp-empathy-enum-types.h