1 include $(top_srcdir)/tools/flymake.mk
8 -DDATADIR=\""$(datadir)"\" \
9 -DLOCALEDIR=\""$(datadir)/locale"\" \
10 -DG_LOG_DOMAIN=\"empathy\" \
13 $(NETWORK_MANAGER_CFLAGS) \
21 empathy-marshal.list \
22 empathy-enum-types.h \
25 noinst_LTLIBRARIES = libempathy.la
27 libempathy_headers = \
28 empathy-account-settings.h \
29 empathy-auth-factory.h \
30 empathy-call-factory.h \
31 empathy-call-handler.h \
32 empathy-chatroom-manager.h \
34 empathy-connection-managers.h \
35 empathy-connectivity.h \
36 empathy-contact-groups.h \
37 empathy-contact-list.h \
38 empathy-contact-manager.h \
41 empathy-dispatcher.h \
42 empathy-ft-factory.h \
43 empathy-ft-handler.h \
46 empathy-individual-manager.h \
47 empathy-irc-network-manager.h \
48 empathy-irc-network.h \
49 empathy-irc-server.h \
53 empathy-server-sasl-handler.h \
54 empathy-server-tls-handler.h \
55 empathy-status-presets.h \
57 empathy-tls-certificate.h \
58 empathy-tls-verifier.h \
61 empathy-tp-contact-factory.h \
62 empathy-tp-contact-list.h \
64 empathy-tp-roomlist.h \
68 libempathy_la_SOURCES = \
69 $(libempathy_headers) \
70 empathy-account-settings.c \
71 empathy-auth-factory.c \
72 empathy-call-factory.c \
73 empathy-call-handler.c \
74 empathy-chatroom-manager.c \
76 empathy-connection-managers.c \
77 empathy-connectivity.c \
78 empathy-contact-groups.c \
79 empathy-contact-list.c \
80 empathy-contact-manager.c \
83 empathy-dispatcher.c \
84 empathy-ft-factory.c \
85 empathy-ft-handler.c \
87 empathy-individual-manager.c \
88 empathy-irc-network-manager.c \
89 empathy-irc-network.c \
90 empathy-irc-server.c \
93 empathy-server-sasl-handler.c \
94 empathy-server-tls-handler.c \
95 empathy-status-presets.c \
97 empathy-tls-certificate.c \
98 empathy-tls-verifier.c \
101 empathy-tp-contact-factory.c \
102 empathy-tp-contact-list.c \
104 empathy-tp-roomlist.c \
107 # do not distribute generated files
108 nodist_libempathy_la_SOURCES =\
111 libempathy_la_LIBADD = \
112 $(top_builddir)/extensions/libemp-extensions.la \
115 $(NETWORK_MANAGER_LIBS) \
119 $(libempathy_la_SOURCES) \
120 $(libempathy_headers)
121 include $(top_srcdir)/tools/check-coding-style.mk
122 check-local: check-coding-style
124 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
125 $(AM_V_GEN)( cd $(srcdir) && \
126 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
127 $(libempathy_la_SOURCES) ) \
128 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
129 @if cmp -s $@.tmp $@; then \
135 %-marshal.h: %-marshal.list Makefile
136 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
138 %-marshal.c: %-marshal.list Makefile
139 $(AM_V_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
140 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
142 empathy-enum-types.h: stamp-empathy-enum-types.h
144 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
145 $(AM_V_GEN)(cd $(srcdir) \
147 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
148 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
149 --fhead "#include <glib-object.h>\n\n" \
150 --fhead "G_BEGIN_DECLS\n\n" \
151 --ftail "G_END_DECLS\n\n" \
152 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
153 --fprod "#include <libempathy/@filename@>\n" \
154 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
155 --eprod "GType @enum_name@_get_type (void);\n" \
156 $(libempathy_headers) ) > xgen-gth \
157 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
159 && echo timestamp > $(@F)
161 empathy-enum-types.c: $(libempathy_headers) Makefile
162 $(AM_V_GEN)(cd $(srcdir) \
164 --fhead "#include <config.h>\n" \
165 --fhead "#include <glib-object.h>\n" \
166 --fhead "#include \"empathy-enum-types.h\"\n\n" \
167 --fprod "\n/* enumerations from \"@filename@\" */" \
168 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
169 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
170 --vtail " { 0, NULL, NULL }\n};\n\n" \
171 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
172 --vtail " static GType type = 0;\n\n" \
173 --vtail " if (!type)\n" \
174 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
175 --vtail " return type;\n}\n\n" \
176 $(libempathy_headers) ) > xgen-gtc \
177 && cp xgen-gtc $(@F) \
180 dtddir = $(datadir)/empathy
182 empathy-status-presets.dtd \
183 empathy-contact-groups.dtd \
184 empathy-chatroom-manager.dtd \
185 empathy-irc-networks.dtd
187 ircnetworksdir = $(datadir)/empathy
192 empathy-marshal.list \
198 stamp-empathy-enum-types.h