1 include $(top_srcdir)/tools/flymake.mk
7 -DDATADIR=\""$(datadir)"\" \
8 -DPKGDATADIR=\""$(pkgdatadir)"\" \
9 -DGCR_API_SUBJECT_TO_CHANGE \
13 $(LIBCHAMPLAIN_CFLAGS) \
22 empathy-gtk-marshal.h \
23 empathy-gtk-marshal.c \
24 empathy-gtk-marshal.list \
25 empathy-gtk-enum-types.h \
26 empathy-gtk-enum-types.c
28 noinst_LTLIBRARIES = libempathy-gtk.la
30 libempathy_gtk_handwritten_source = \
31 empathy-account-chooser.c \
32 empathy-account-widget-irc.c \
33 empathy-account-widget-private.h \
34 empathy-account-widget-sip.c \
35 empathy-account-widget.c \
36 empathy-avatar-chooser.c \
37 empathy-avatar-image.c \
38 empathy-call-utils.c \
39 empathy-cell-renderer-activatable.c \
40 empathy-cell-renderer-expander.c \
41 empathy-cell-renderer-text.c \
42 empathy-chat-text-view.c \
45 empathy-contact-blocking-dialog.c \
46 empathy-contact-dialogs.c \
47 empathy-contact-list-store.c \
48 empathy-contact-list-view.c \
49 empathy-contact-menu.c \
50 empathy-linking-dialog.c \
51 empathy-live-search.c \
52 empathy-contact-search-dialog.c \
53 empathy-contact-selector.c \
54 empathy-contact-selector-dialog.c \
55 empathy-contact-widget.c \
57 empathy-groups-widget.c \
58 empathy-individual-dialogs.c \
59 empathy-individual-edit-dialog.c \
60 empathy-individual-information-dialog.c \
61 empathy-individual-linker.c \
62 empathy-individual-menu.c \
63 empathy-individual-store.c \
64 empathy-individual-view.c \
65 empathy-individual-widget.c \
66 empathy-input-text-view.c \
67 empathy-irc-network-chooser.c \
68 empathy-irc-network-chooser-dialog.c \
69 empathy-irc-network-dialog.c \
70 empathy-log-window.c \
71 empathy-new-message-dialog.c \
72 empathy-new-call-dialog.c \
73 empathy-notify-manager.c \
74 empathy-password-dialog.c \
75 empathy-persona-store.c \
76 empathy-persona-view.c \
77 empathy-presence-chooser.c \
78 empathy-protocol-chooser.c \
79 empathy-search-bar.c \
80 empathy-share-my-desktop.c \
81 empathy-smiley-manager.c \
82 empathy-sound-manager.c \
84 empathy-status-preset-dialog.c \
85 empathy-string-parser.c \
86 empathy-theme-boxes.c \
88 empathy-theme-manager.c \
89 empathy-tls-dialog.c \
92 libempathy_gtk_headers = \
93 empathy-account-chooser.h \
94 empathy-account-widget-irc.h \
95 empathy-account-widget-sip.h \
96 empathy-account-widget.h \
97 empathy-avatar-chooser.h \
98 empathy-avatar-image.h \
99 empathy-call-utils.h \
100 empathy-cell-renderer-activatable.h \
101 empathy-cell-renderer-expander.h \
102 empathy-cell-renderer-text.h \
103 empathy-chat-text-view.h \
104 empathy-chat-view.h \
106 empathy-contact-blocking-dialog.h \
107 empathy-contact-dialogs.h \
108 empathy-contact-list-store.h \
109 empathy-contact-list-view.h \
110 empathy-contact-menu.h \
111 empathy-linking-dialog.h \
112 empathy-live-search.h \
113 empathy-contact-search-dialog.h \
114 empathy-contact-selector.h \
115 empathy-contact-selector-dialog.h \
116 empathy-contact-widget.h \
118 empathy-groups-widget.h \
120 empathy-individual-dialogs.h \
121 empathy-individual-edit-dialog.h \
122 empathy-individual-information-dialog.h \
123 empathy-individual-linker.h \
124 empathy-individual-menu.h \
125 empathy-individual-store.h \
126 empathy-individual-view.h \
127 empathy-individual-widget.h \
128 empathy-input-text-view.h \
129 empathy-irc-network-chooser.h \
130 empathy-irc-network-chooser-dialog.h \
131 empathy-irc-network-dialog.h \
132 empathy-log-window.h \
133 empathy-new-message-dialog.h \
134 empathy-new-call-dialog.h \
135 empathy-notify-manager.h \
136 empathy-password-dialog.h \
137 empathy-persona-store.h \
138 empathy-persona-view.h \
139 empathy-presence-chooser.h \
140 empathy-protocol-chooser.h \
141 empathy-search-bar.h \
142 empathy-share-my-desktop.h \
143 empathy-smiley-manager.h \
144 empathy-sound-manager.h \
146 empathy-status-preset-dialog.h \
147 empathy-string-parser.h \
148 empathy-theme-boxes.h \
149 empathy-theme-irc.h \
150 empathy-theme-manager.h \
151 empathy-tls-dialog.h \
154 libempathy_gtk_la_SOURCES = \
155 $(libempathy_gtk_handwritten_source) \
156 $(libempathy_gtk_headers) \
157 totem-subtitle-encoding.c totem-subtitle-encoding.h
159 # do not distribute generated files
160 nodist_libempathy_gtk_la_SOURCES =\
163 libempathy_gtk_la_LIBADD = \
170 $(LIBCHAMPLAIN_LIBS) \
176 $(top_builddir)/libempathy/libempathy.la
179 $(libempathy_gtk_handwritten_source) \
180 $(libempathy_gtk_headers)
181 include $(top_srcdir)/tools/check-coding-style.mk
182 check-local: check-coding-style
184 uidir = $(datadir)/empathy
186 empathy-contact-widget.ui \
187 empathy-contact-dialogs.ui \
188 empathy-contact-blocking-dialog.ui \
189 empathy-account-widget-generic.ui \
190 empathy-account-widget-jabber.ui \
191 empathy-account-widget-msn.ui \
192 empathy-account-widget-sip.ui \
193 empathy-account-widget-local-xmpp.ui \
194 empathy-account-widget-irc.ui \
195 empathy-account-widget-icq.ui \
196 empathy-account-widget-yahoo.ui \
197 empathy-account-widget-groupwise.ui \
198 empathy-account-widget-aim.ui \
199 empathy-status-preset-dialog.ui \
200 empathy-log-window.ui \
202 empathy-contact-selector-dialog.ui \
203 empathy-search-bar.ui \
204 empathy-individual-widget.ui
206 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
207 $(AM_V_GEN)( cd $(srcdir) && \
208 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
209 $(libempathy_gtk_la_SOURCES) ) \
210 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
211 @if cmp -s $@.tmp $@; then \
217 %-marshal.h: %-marshal.list Makefile
218 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
220 %-marshal.c: %-marshal.list Makefile
221 $(AM_V_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
222 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
224 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
226 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
227 $(AM_V_GEN)(cd $(srcdir) \
229 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
230 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
231 --fhead "#include <glib-object.h>\n\n" \
232 --fhead "G_BEGIN_DECLS\n\n" \
233 --ftail "G_END_DECLS\n\n" \
234 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
235 --fprod "#include <libempathy-gtk/@filename@>\n" \
236 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
237 --eprod "GType @enum_name@_get_type (void);\n" \
238 $(libempathy_gtk_headers) ) > xgen-gth \
239 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
241 && echo timestamp > $(@F)
243 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
244 $(AM_V_GEN)(cd $(srcdir) \
246 --fhead "#include <config.h>\n" \
247 --fhead "#include <glib-object.h>\n" \
248 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
249 --fprod "\n/* enumerations from \"@filename@\" */" \
250 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
251 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
252 --vtail " { 0, NULL, NULL }\n};\n\n" \
253 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
254 --vtail " static GType type = 0;\n\n" \
255 --vtail " if (!type)\n" \
256 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
257 --vtail " return type;\n}\n\n" \
258 $(libempathy_gtk_headers) ) > xgen-gtc \
259 && cp xgen-gtc $(@F) \
266 libempathy_gtk_handwritten_source += \
267 empathy-location-manager.c
269 libempathy_gtk_headers += \
270 empathy-location-manager.h
273 empathy-location-manager.c \
274 empathy-location-manager.h
278 libempathy_gtk_handwritten_source += \
280 empathy-theme-adium.c
281 libempathy_gtk_headers += \
283 empathy-theme-adium.h
288 empathy-theme-adium.c \
289 empathy-theme-adium.h
294 stamp-empathy-gtk-enum-types.h