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) \
23 empathy-enum-types.h \
26 noinst_LTLIBRARIES = libempathy.la
28 libempathy_headers = \
29 action-chain-internal.h \
30 empathy-account-settings.h \
31 empathy-auth-factory.h \
32 empathy-camera-monitor.h \
33 empathy-chatroom-manager.h \
35 empathy-client-factory.h \
36 empathy-connection-managers.h \
37 empathy-connectivity.h \
38 empathy-connection-aggregator.h \
39 empathy-contact-groups.h \
40 empathy-contact-list.h \
43 empathy-ft-factory.h \
44 empathy-ft-handler.h \
46 empathy-presence-manager.h \
47 empathy-individual-manager.h \
48 empathy-irc-network-manager.h \
49 empathy-irc-network.h \
50 empathy-irc-server.h \
55 empathy-request-util.h \
56 empathy-server-sasl-handler.h \
57 empathy-server-tls-handler.h \
58 empathy-status-presets.h \
60 empathy-tls-certificate.h \
61 empathy-tls-verifier.h \
63 empathy-tp-contact-factory.h \
64 empathy-tp-contact-list.h \
65 empathy-tp-roomlist.h \
66 empathy-tp-streamed-media.h \
70 libempathy_handwritten_source = \
71 $(libempathy_headers) \
73 empathy-account-settings.c \
74 empathy-auth-factory.c \
75 empathy-camera-monitor.c \
76 empathy-chatroom-manager.c \
78 empathy-client-factory.c \
79 empathy-connection-managers.c \
80 empathy-connectivity.c \
81 empathy-connection-aggregator.c \
82 empathy-contact-groups.c \
83 empathy-contact-list.c \
86 empathy-ft-factory.c \
87 empathy-ft-handler.c \
88 empathy-presence-manager.c \
89 empathy-individual-manager.c \
90 empathy-irc-network-manager.c \
91 empathy-irc-network.c \
92 empathy-irc-server.c \
96 empathy-request-util.c \
97 empathy-server-sasl-handler.c \
98 empathy-server-tls-handler.c \
99 empathy-status-presets.c \
101 empathy-tls-certificate.c \
102 empathy-tls-verifier.c \
104 empathy-tp-contact-factory.c \
105 empathy-tp-contact-list.c \
106 empathy-tp-roomlist.c \
107 empathy-tp-streamed-media.c \
110 # these are sources that depend on GOA
112 empathy-goa-auth-handler.c \
113 empathy-goa-auth-handler.h \
116 libempathy_la_SOURCES = \
117 $(libempathy_handwritten_source) \
118 cheese-camera-device-monitor.c cheese-camera-device-monitor.h
120 dtddir = $(datadir)/empathy
122 empathy-status-presets.dtd \
123 empathy-contact-groups.dtd \
124 empathy-chatroom-manager.dtd \
125 empathy-irc-networks.dtd
127 ircnetworksdir = $(datadir)/empathy
137 stamp-empathy-enum-types.h
140 libempathy_la_SOURCES += $(goa_sources)
142 EXTRA_DIST += $(goa_sources)
145 # do not distribute generated files
146 nodist_libempathy_la_SOURCES =\
149 libempathy_la_LIBADD = \
150 $(top_builddir)/extensions/libemp-extensions.la \
155 $(NETWORK_MANAGER_LIBS) \
162 $(libempathy_handwritten_source) \
166 include $(top_srcdir)/tools/check-coding-style.mk
167 check-local: check-coding-style
169 empathy-enum-types.h: stamp-empathy-enum-types.h
171 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
172 $(AM_V_GEN)(cd $(srcdir) \
174 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
175 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
176 --fhead "#include <glib-object.h>\n\n" \
177 --fhead "G_BEGIN_DECLS\n\n" \
178 --ftail "G_END_DECLS\n\n" \
179 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
180 --fprod "#include <libempathy/@filename@>\n" \
181 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
182 --eprod "GType @enum_name@_get_type (void);\n" \
183 $(libempathy_headers) ) > xgen-gth \
184 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
186 && echo timestamp > $(@F)
188 empathy-enum-types.c: $(libempathy_headers) Makefile
189 $(AM_V_GEN)(cd $(srcdir) \
191 --fhead "#include <config.h>\n" \
192 --fhead "#include <glib-object.h>\n" \
193 --fhead "#include \"empathy-enum-types.h\"\n\n" \
194 --fprod "\n/* enumerations from \"@filename@\" */" \
195 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
196 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
197 --vtail " { 0, NULL, NULL }\n};\n\n" \
198 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
199 --vtail " static GType type = 0;\n\n" \
200 --vtail " if (!type)\n" \
201 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
202 --vtail " return type;\n}\n\n" \
203 $(libempathy_headers) ) > xgen-gtc \
204 && cp xgen-gtc $(@F) \