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-connection-aggregator.h \
38 empathy-contact-groups.h \
39 empathy-contact-list.h \
42 empathy-ft-factory.h \
43 empathy-ft-handler.h \
45 empathy-presence-manager.h \
46 empathy-individual-manager.h \
47 empathy-irc-network-manager.h \
48 empathy-irc-network.h \
49 empathy-irc-server.h \
54 empathy-request-util.h \
55 empathy-server-sasl-handler.h \
56 empathy-server-tls-handler.h \
57 empathy-status-presets.h \
59 empathy-tls-certificate.h \
60 empathy-tls-verifier.h \
62 empathy-tp-contact-factory.h \
63 empathy-tp-roomlist.h \
64 empathy-tp-streamed-media.h \
68 libempathy_handwritten_source = \
69 $(libempathy_headers) \
71 empathy-account-settings.c \
72 empathy-auth-factory.c \
73 empathy-camera-monitor.c \
74 empathy-chatroom-manager.c \
76 empathy-client-factory.c \
77 empathy-connection-managers.c \
78 empathy-connection-aggregator.c \
79 empathy-contact-groups.c \
80 empathy-contact-list.c \
83 empathy-ft-factory.c \
84 empathy-ft-handler.c \
85 empathy-presence-manager.c \
86 empathy-individual-manager.c \
87 empathy-irc-network-manager.c \
88 empathy-irc-network.c \
89 empathy-irc-server.c \
93 empathy-request-util.c \
94 empathy-server-sasl-handler.c \
95 empathy-server-tls-handler.c \
96 empathy-status-presets.c \
98 empathy-tls-certificate.c \
99 empathy-tls-verifier.c \
101 empathy-tp-contact-factory.c \
102 empathy-tp-roomlist.c \
103 empathy-tp-streamed-media.c \
106 # these are sources that depend on GOA
108 empathy-goa-auth-handler.c \
109 empathy-goa-auth-handler.h \
112 libempathy_la_SOURCES = \
113 $(libempathy_handwritten_source) \
114 cheese-camera-device-monitor.c cheese-camera-device-monitor.h
116 dtddir = $(datadir)/empathy
118 empathy-status-presets.dtd \
119 empathy-contact-groups.dtd \
120 empathy-chatroom-manager.dtd \
121 empathy-irc-networks.dtd
123 ircnetworksdir = $(datadir)/empathy
133 stamp-empathy-enum-types.h
136 libempathy_la_SOURCES += $(goa_sources)
138 EXTRA_DIST += $(goa_sources)
141 # do not distribute generated files
142 nodist_libempathy_la_SOURCES =\
145 libempathy_la_LIBADD = \
146 $(top_builddir)/extensions/libemp-extensions.la \
151 $(NETWORK_MANAGER_LIBS) \
158 $(libempathy_handwritten_source) \
162 include $(top_srcdir)/tools/check-coding-style.mk
163 check-local: check-coding-style
165 empathy-enum-types.h: stamp-empathy-enum-types.h
167 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
168 $(AM_V_GEN)(cd $(srcdir) \
170 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
171 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
172 --fhead "#include <glib-object.h>\n\n" \
173 --fhead "G_BEGIN_DECLS\n\n" \
174 --ftail "G_END_DECLS\n\n" \
175 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
176 --fprod "#include <libempathy/@filename@>\n" \
177 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
178 --eprod "GType @enum_name@_get_type (void);\n" \
179 $(libempathy_headers) ) > xgen-gth \
180 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
182 && echo timestamp > $(@F)
184 empathy-enum-types.c: $(libempathy_headers) Makefile
185 $(AM_V_GEN)(cd $(srcdir) \
187 --fhead "#include <config.h>\n" \
188 --fhead "#include <glib-object.h>\n" \
189 --fhead "#include \"empathy-enum-types.h\"\n\n" \
190 --fprod "\n/* enumerations from \"@filename@\" */" \
191 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
192 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
193 --vtail " { 0, NULL, NULL }\n};\n\n" \
194 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
195 --vtail " static GType type = 0;\n\n" \
196 --vtail " if (!type)\n" \
197 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
198 --vtail " return type;\n}\n\n" \
199 $(libempathy_headers) ) > xgen-gtc \
200 && cp xgen-gtc $(@F) \