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 \
41 empathy-ft-factory.h \
42 empathy-ft-handler.h \
44 empathy-presence-manager.h \
45 empathy-individual-manager.h \
46 empathy-irc-network-manager.h \
47 empathy-irc-network.h \
48 empathy-irc-server.h \
53 empathy-request-util.h \
54 empathy-server-sasl-handler.h \
55 empathy-server-tls-handler.h \
56 empathy-status-presets.h \
58 empathy-tls-verifier.h \
60 empathy-tp-contact-factory.h \
61 empathy-tp-roomlist.h \
65 libempathy_handwritten_source = \
66 $(libempathy_headers) \
68 empathy-account-settings.c \
69 empathy-auth-factory.c \
70 empathy-camera-monitor.c \
71 empathy-chatroom-manager.c \
73 empathy-client-factory.c \
74 empathy-connection-managers.c \
75 empathy-connection-aggregator.c \
76 empathy-contact-groups.c \
79 empathy-ft-factory.c \
80 empathy-ft-handler.c \
81 empathy-presence-manager.c \
82 empathy-individual-manager.c \
83 empathy-irc-network-manager.c \
84 empathy-irc-network.c \
85 empathy-irc-server.c \
89 empathy-request-util.c \
90 empathy-server-sasl-handler.c \
91 empathy-server-tls-handler.c \
92 empathy-status-presets.c \
94 empathy-tls-verifier.c \
96 empathy-tp-contact-factory.c \
97 empathy-tp-roomlist.c \
100 # these are sources that depend on GOA
102 empathy-goa-auth-handler.c \
103 empathy-goa-auth-handler.h \
106 libempathy_la_SOURCES = \
107 $(libempathy_handwritten_source) \
108 cheese-camera-device-monitor.c cheese-camera-device-monitor.h
110 dtddir = $(datadir)/empathy
112 empathy-status-presets.dtd \
113 empathy-contact-groups.dtd \
114 empathy-chatroom-manager.dtd \
115 empathy-irc-networks.dtd
117 ircnetworksdir = $(datadir)/empathy
127 stamp-empathy-enum-types.h
130 libempathy_la_SOURCES += $(goa_sources)
132 EXTRA_DIST += $(goa_sources)
135 # do not distribute generated files
136 nodist_libempathy_la_SOURCES =\
139 libempathy_la_LIBADD = \
140 $(top_builddir)/extensions/libemp-extensions.la \
145 $(NETWORK_MANAGER_LIBS) \
152 $(libempathy_handwritten_source) \
156 include $(top_srcdir)/tools/check-coding-style.mk
157 check-local: check-coding-style
159 empathy-enum-types.h: stamp-empathy-enum-types.h
161 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
162 $(AM_V_GEN)(cd $(srcdir) \
164 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
165 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
166 --fhead "#include <glib-object.h>\n\n" \
167 --fhead "G_BEGIN_DECLS\n\n" \
168 --ftail "G_END_DECLS\n\n" \
169 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
170 --fprod "#include <libempathy/@filename@>\n" \
171 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
172 --eprod "GType @enum_name@_get_type (void);\n" \
173 $(libempathy_headers) ) > xgen-gth \
174 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
176 && echo timestamp > $(@F)
178 empathy-enum-types.c: $(libempathy_headers) Makefile
179 $(AM_V_GEN)(cd $(srcdir) \
181 --fhead "#include <config.h>\n" \
182 --fhead "#include <glib-object.h>\n" \
183 --fhead "#include \"empathy-enum-types.h\"\n\n" \
184 --fprod "\n/* enumerations from \"@filename@\" */" \
185 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
186 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
187 --vtail " { 0, NULL, NULL }\n};\n\n" \
188 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
189 --vtail " static GType type = 0;\n\n" \
190 --vtail " if (!type)\n" \
191 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
192 --vtail " return type;\n}\n\n" \
193 $(libempathy_headers) ) > xgen-gtc \
194 && cp xgen-gtc $(@F) \