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 \
15 $(NETWORK_MANAGER_CFLAGS) \
24 empathy-enum-types.h \
27 libempathy_headers = \
28 action-chain-internal.h \
29 empathy-account-settings.h \
30 empathy-auth-factory.h \
31 empathy-camera-monitor.h \
32 empathy-chatroom-manager.h \
34 empathy-client-factory.h \
35 empathy-connection-managers.h \
36 empathy-connection-aggregator.h \
37 empathy-contact-groups.h \
40 empathy-ft-factory.h \
41 empathy-ft-handler.h \
43 empathy-presence-manager.h \
44 empathy-individual-manager.h \
45 empathy-irc-network-manager.h \
46 empathy-irc-network.h \
47 empathy-irc-server.h \
52 empathy-request-util.h \
53 empathy-sasl-mechanisms.h \
54 empathy-server-sasl-handler.h \
55 empathy-server-tls-handler.h \
56 empathy-status-presets.h \
58 empathy-tls-verifier.h \
63 libempathy_handwritten_source = \
64 $(libempathy_headers) \
66 empathy-account-settings.c \
67 empathy-auth-factory.c \
68 empathy-camera-monitor.c \
69 empathy-chatroom-manager.c \
71 empathy-client-factory.c \
72 empathy-connection-managers.c \
73 empathy-connection-aggregator.c \
74 empathy-contact-groups.c \
77 empathy-ft-factory.c \
78 empathy-ft-handler.c \
79 empathy-presence-manager.c \
80 empathy-individual-manager.c \
81 empathy-irc-network-manager.c \
82 empathy-irc-network.c \
83 empathy-irc-server.c \
87 empathy-request-util.c \
88 empathy-sasl-mechanisms.c \
89 empathy-server-sasl-handler.c \
90 empathy-server-tls-handler.c \
91 empathy-status-presets.c \
93 empathy-tls-verifier.c \
97 # these are sources that depend on GOA
99 empathy-goa-auth-handler.c \
100 empathy-goa-auth-handler.h \
103 # these are sources that depend on Ubuntu Online Accounts
105 empathy-uoa-auth-handler.c \
106 empathy-uoa-auth-handler.h \
109 pkglib_LTLIBRARIES = libempathy.la
111 # libempathy's API is not stable and will never be, so use -release to make the
112 # SONAME of the plugin library change with every Empathy release.
113 libempathy_la_LDFLAGS = \
115 -release $(VERSION) \
118 libempathy_la_SOURCES = \
119 $(libempathy_handwritten_source) \
120 cheese-camera-device-monitor.c cheese-camera-device-monitor.h
122 libempathy_la_LIBADD = \
123 $(top_builddir)/extensions/libemp-extensions.la \
128 $(NETWORK_MANAGER_LIBS) \
135 dtddir = $(datadir)/empathy
137 empathy-status-presets.dtd \
138 empathy-contact-groups.dtd \
139 empathy-chatroom-manager.dtd \
140 empathy-irc-networks.dtd
142 ircnetworksdir = $(datadir)/empathy
152 stamp-empathy-enum-types.h
155 libempathy_la_SOURCES += $(goa_sources)
157 EXTRA_DIST += $(goa_sources)
161 libempathy_la_SOURCES += $(uoa_sources)
163 EXTRA_DIST += $(uoa_sources)
166 # do not distribute generated files
167 nodist_libempathy_la_SOURCES =\
171 $(libempathy_handwritten_source) \
176 include $(top_srcdir)/tools/check-coding-style.mk
177 check-local: check-coding-style
179 empathy-enum-types.h: stamp-empathy-enum-types.h
181 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
182 $(AM_V_GEN)(cd $(srcdir) \
184 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
185 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
186 --fhead "#include <glib-object.h>\n\n" \
187 --fhead "G_BEGIN_DECLS\n\n" \
188 --ftail "G_END_DECLS\n\n" \
189 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
190 --fprod "#include <libempathy/@filename@>\n" \
191 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
192 --eprod "GType @enum_name@_get_type (void);\n" \
193 $(libempathy_headers) ) > xgen-gth \
194 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
196 && echo timestamp > $(@F)
198 empathy-enum-types.c: $(libempathy_headers) Makefile
199 $(AM_V_GEN)(cd $(srcdir) \
201 --fhead "#include <config.h>\n" \
202 --fhead "#include <glib-object.h>\n" \
203 --fhead "#include \"empathy-enum-types.h\"\n\n" \
204 --fprod "\n/* enumerations from \"@filename@\" */" \
205 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
206 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
207 --vtail " { 0, NULL, NULL }\n};\n\n" \
208 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
209 --vtail " static GType type = 0;\n\n" \
210 --vtail " if (!type)\n" \
211 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
212 --vtail " return type;\n}\n\n" \
213 $(libempathy_headers) ) > xgen-gtc \
214 && cp xgen-gtc $(@F) \