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 \
52 empathy-server-tls-handler.h \
53 empathy-status-presets.h \
55 empathy-tls-certificate.h \
58 empathy-tp-contact-factory.h \
59 empathy-tp-contact-list.h \
61 empathy-tp-roomlist.h \
65 libempathy_la_SOURCES = \
66 $(libempathy_headers) \
67 empathy-account-settings.c \
68 empathy-auth-factory.c \
69 empathy-call-factory.c \
70 empathy-call-handler.c \
71 empathy-chatroom-manager.c \
73 empathy-connection-managers.c \
74 empathy-connectivity.c \
75 empathy-contact-groups.c \
76 empathy-contact-list.c \
77 empathy-contact-manager.c \
80 empathy-dispatcher.c \
81 empathy-ft-factory.c \
82 empathy-ft-handler.c \
84 empathy-individual-manager.c \
85 empathy-irc-network-manager.c \
86 empathy-irc-network.c \
87 empathy-irc-server.c \
89 empathy-server-tls-handler.c \
90 empathy-status-presets.c \
92 empathy-tls-certificate.c \
95 empathy-tp-contact-factory.c \
96 empathy-tp-contact-list.c \
98 empathy-tp-roomlist.c \
101 # do not distribute generated files
102 nodist_libempathy_la_SOURCES =\
105 libempathy_la_LIBADD = \
106 $(top_builddir)/extensions/libemp-extensions.la \
109 $(NETWORK_MANAGER_LIBS) \
113 $(libempathy_la_SOURCES) \
114 $(libempathy_headers)
115 include $(top_srcdir)/tools/check-coding-style.mk
116 check-local: check-coding-style
118 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
119 $(AM_V_GEN)( cd $(srcdir) && \
120 sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
121 $(libempathy_la_SOURCES) ) \
122 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
123 @if cmp -s $@.tmp $@; then \
129 %-marshal.h: %-marshal.list Makefile
130 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
132 %-marshal.c: %-marshal.list Makefile
133 $(AM_V_GEN)echo "#include \"empathy-marshal.h\"" > $@ && \
134 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
136 empathy-enum-types.h: stamp-empathy-enum-types.h
138 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
139 $(AM_V_GEN)(cd $(srcdir) \
141 --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
142 --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
143 --fhead "#include <glib-object.h>\n\n" \
144 --fhead "G_BEGIN_DECLS\n\n" \
145 --ftail "G_END_DECLS\n\n" \
146 --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
147 --fprod "#include <libempathy/@filename@>\n" \
148 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
149 --eprod "GType @enum_name@_get_type (void);\n" \
150 $(libempathy_headers) ) > xgen-gth \
151 && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
153 && echo timestamp > $(@F)
155 empathy-enum-types.c: $(libempathy_headers) Makefile
156 $(AM_V_GEN)(cd $(srcdir) \
158 --fhead "#include <config.h>\n" \
159 --fhead "#include <glib-object.h>\n" \
160 --fhead "#include \"empathy-enum-types.h\"\n\n" \
161 --fprod "\n/* enumerations from \"@filename@\" */" \
162 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
163 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
164 --vtail " { 0, NULL, NULL }\n};\n\n" \
165 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
166 --vtail " static GType type = 0;\n\n" \
167 --vtail " if (!type)\n" \
168 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
169 --vtail " return type;\n}\n\n" \
170 $(libempathy_headers) ) > xgen-gtc \
171 && cp xgen-gtc $(@F) \
174 dtddir = $(datadir)/empathy
176 empathy-status-presets.dtd \
177 empathy-contact-groups.dtd \
178 empathy-chatroom-manager.dtd \
179 empathy-irc-networks.dtd
181 ircnetworksdir = $(datadir)/empathy
186 empathy-marshal.list \
192 stamp-empathy-enum-types.h