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 libempathy_headers = \
27 action-chain-internal.h \
28 empathy-account-settings.h \
29 empathy-auth-factory.h \
30 empathy-camera-monitor.h \
31 empathy-chatroom-manager.h \
33 empathy-client-factory.h \
34 empathy-connection-managers.h \
35 empathy-connection-aggregator.h \
36 empathy-contact-groups.h \
39 empathy-ft-factory.h \
40 empathy-ft-handler.h \
42 empathy-presence-manager.h \
43 empathy-individual-manager.h \
44 empathy-irc-network-manager.h \
45 empathy-irc-network.h \
46 empathy-irc-server.h \
51 empathy-request-util.h \
52 empathy-server-sasl-handler.h \
53 empathy-server-tls-handler.h \
54 empathy-status-presets.h \
56 empathy-tls-verifier.h \
61 libempathy_handwritten_source = \
62 $(libempathy_headers) \
64 empathy-account-settings.c \
65 empathy-auth-factory.c \
66 empathy-camera-monitor.c \
67 empathy-chatroom-manager.c \
69 empathy-client-factory.c \
70 empathy-connection-managers.c \
71 empathy-connection-aggregator.c \
72 empathy-contact-groups.c \
75 empathy-ft-factory.c \
76 empathy-ft-handler.c \
77 empathy-presence-manager.c \
78 empathy-individual-manager.c \
79 empathy-irc-network-manager.c \
80 empathy-irc-network.c \
81 empathy-irc-server.c \
85 empathy-request-util.c \
86 empathy-server-sasl-handler.c \
87 empathy-server-tls-handler.c \
88 empathy-status-presets.c \
90 empathy-tls-verifier.c \
94 # these are sources that depend on GOA
96 empathy-goa-auth-handler.c \
97 empathy-goa-auth-handler.h \
100 pkglib_LTLIBRARIES = libempathy.la
102 # libempathy's API is not stable and will never be, so use -release to make the
103 # SONAME of the plugin library change with every Empathy release.
104 libempathy_la_LDFLAGS = \
106 -release $(VERSION) \
109 libempathy_la_SOURCES = \
110 $(libempathy_handwritten_source) \
111 cheese-camera-device-monitor.c cheese-camera-device-monitor.h
113 libempathy_la_LIBADD = \
114 $(top_builddir)/extensions/libemp-extensions.la \
119 $(NETWORK_MANAGER_LIBS) \
125 dtddir = $(datadir)/empathy
127 empathy-status-presets.dtd \
128 empathy-contact-groups.dtd \
129 empathy-chatroom-manager.dtd \
130 empathy-irc-networks.dtd
132 ircnetworksdir = $(datadir)/empathy
142 stamp-empathy-enum-types.h
145 libempathy_la_SOURCES += $(goa_sources)
147 EXTRA_DIST += $(goa_sources)
150 # do not distribute generated files
151 nodist_libempathy_la_SOURCES =\
155 $(libempathy_handwritten_source) \
159 include $(top_srcdir)/tools/check-coding-style.mk
160 check-local: check-coding-style
162 empathy-enum-types.h: stamp-empathy-enum-types.h
164 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
165 $(AM_V_GEN)(cd $(srcdir) \
167 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
168 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
169 --fhead "#include <glib-object.h>\n\n" \
170 --fhead "G_BEGIN_DECLS\n\n" \
171 --ftail "G_END_DECLS\n\n" \
172 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
173 --fprod "#include <libempathy/@filename@>\n" \
174 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
175 --eprod "GType @enum_name@_get_type (void);\n" \
176 $(libempathy_headers) ) > xgen-gth \
177 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
179 && echo timestamp > $(@F)
181 empathy-enum-types.c: $(libempathy_headers) Makefile
182 $(AM_V_GEN)(cd $(srcdir) \
184 --fhead "#include <config.h>\n" \
185 --fhead "#include <glib-object.h>\n" \
186 --fhead "#include \"empathy-enum-types.h\"\n\n" \
187 --fprod "\n/* enumerations from \"@filename@\" */" \
188 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
189 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
190 --vtail " { 0, NULL, NULL }\n};\n\n" \
191 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
192 --vtail " static GType type = 0;\n\n" \
193 --vtail " if (!type)\n" \
194 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
195 --vtail " return type;\n}\n\n" \
196 $(libempathy_headers) ) > xgen-gtc \
197 && cp xgen-gtc $(@F) \