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 \
16 $(NETWORK_MANAGER_CFLAGS) \
24 empathy-marshal.list \
25 empathy-enum-types.h \
28 noinst_LTLIBRARIES = libempathy.la
30 libempathy_headers = \
31 action-chain-internal.h \
32 empathy-account-settings.h \
33 empathy-auth-factory.h \
34 empathy-channel-factory.h \
35 empathy-chatroom-manager.h \
37 empathy-connection-managers.h \
38 empathy-connectivity.h \
39 empathy-contact-groups.h \
40 empathy-contact-list.h \
41 empathy-contact-manager.h \
44 empathy-ft-factory.h \
45 empathy-ft-handler.h \
47 empathy-presence-manager.h \
48 empathy-individual-manager.h \
49 empathy-irc-network-manager.h \
50 empathy-irc-network.h \
51 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 \
66 empathy-tp-roomlist.h \
67 empathy-tp-streamed-media.h \
71 libempathy_handwritten_source = \
72 $(libempathy_headers) \
74 empathy-account-settings.c \
75 empathy-auth-factory.c \
76 empathy-channel-factory.c \
77 empathy-chatroom-manager.c \
79 empathy-connection-managers.c \
80 empathy-connectivity.c \
81 empathy-contact-groups.c \
82 empathy-contact-list.c \
83 empathy-contact-manager.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 \
95 empathy-request-util.c \
96 empathy-server-sasl-handler.c \
97 empathy-server-tls-handler.c \
98 empathy-status-presets.c \
100 empathy-tls-certificate.c \
101 empathy-tls-verifier.c \
103 empathy-tp-contact-factory.c \
104 empathy-tp-contact-list.c \
106 empathy-tp-roomlist.c \
107 empathy-tp-streamed-media.c \
110 libempathy_la_SOURCES = \
111 $(libempathy_handwritten_source) \
112 cheese-camera-device-monitor.c cheese-camera-device-monitor.h
114 # do not distribute generated files
115 nodist_libempathy_la_SOURCES =\
118 libempathy_la_LIBADD = \
119 $(top_builddir)/extensions/libemp-extensions.la \
120 $(top_builddir)/telepathy-yell/telepathy-yell/libtelepathy-yell.la \
125 $(NETWORK_MANAGER_LIBS) \
129 $(libempathy_handwritten_source)
130 include $(top_srcdir)/tools/check-coding-style.mk
131 check-local: check-coding-style
133 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
134 $(AM_V_GEN)( cd $(srcdir) && \
135 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
136 $(libempathy_la_SOURCES) ) \
137 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
138 @if cmp -s $@.tmp $@; then \
144 empathy-marshal.h: empathy-marshal.list Makefile
145 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_empathy_marshal $< > empathy-marshal.h
147 empathy-marshal.c: empathy-marshal.list Makefile
148 $(AM_V_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
149 $(GLIB_GENMARSHAL) --body --prefix=_empathy_marshal $< >> empathy-marshal.c
151 empathy-enum-types.h: stamp-empathy-enum-types.h
153 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
154 $(AM_V_GEN)(cd $(srcdir) \
156 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
157 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
158 --fhead "#include <glib-object.h>\n\n" \
159 --fhead "G_BEGIN_DECLS\n\n" \
160 --ftail "G_END_DECLS\n\n" \
161 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
162 --fprod "#include <libempathy/@filename@>\n" \
163 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
164 --eprod "GType @enum_name@_get_type (void);\n" \
165 $(libempathy_headers) ) > xgen-gth \
166 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
168 && echo timestamp > $(@F)
170 empathy-enum-types.c: $(libempathy_headers) Makefile
171 $(AM_V_GEN)(cd $(srcdir) \
173 --fhead "#include <config.h>\n" \
174 --fhead "#include <glib-object.h>\n" \
175 --fhead "#include \"empathy-enum-types.h\"\n\n" \
176 --fprod "\n/* enumerations from \"@filename@\" */" \
177 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
178 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
179 --vtail " { 0, NULL, NULL }\n};\n\n" \
180 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
181 --vtail " static GType type = 0;\n\n" \
182 --vtail " if (!type)\n" \
183 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
184 --vtail " return type;\n}\n\n" \
185 $(libempathy_headers) ) > xgen-gtc \
186 && cp xgen-gtc $(@F) \
189 dtddir = $(datadir)/empathy
191 empathy-status-presets.dtd \
192 empathy-contact-groups.dtd \
193 empathy-chatroom-manager.dtd \
194 empathy-irc-networks.dtd
196 ircnetworksdir = $(datadir)/empathy
201 empathy-marshal.list \
207 stamp-empathy-enum-types.h