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-cell-renderer-activatable.c \
39 empathy-cell-renderer-expander.c \
40 empathy-cell-renderer-text.c \
41 empathy-chat-text-view.c \
44 empathy-contact-blocking-dialog.c \
45 empathy-contact-dialogs.c \
46 empathy-contact-list-store.c \
47 empathy-contact-list-view.c \
48 empathy-contact-menu.c \
49 empathy-linking-dialog.c \
50 empathy-live-search.c \
51 empathy-contact-search-dialog.c \
52 empathy-contact-selector.c \
53 empathy-contact-selector-dialog.c \
54 empathy-contact-widget.c \
56 empathy-groups-widget.c \
57 empathy-individual-dialogs.c \
58 empathy-individual-edit-dialog.c \
59 empathy-individual-information-dialog.c \
60 empathy-individual-linker.c \
61 empathy-individual-menu.c \
62 empathy-individual-store.c \
63 empathy-individual-view.c \
64 empathy-individual-widget.c \
65 empathy-input-text-view.c \
66 empathy-irc-network-chooser.c \
67 empathy-irc-network-chooser-dialog.c \
68 empathy-irc-network-dialog.c \
69 empathy-log-window.c \
70 empathy-new-message-dialog.c \
71 empathy-new-call-dialog.c \
72 empathy-notify-manager.c \
73 empathy-password-dialog.c \
74 empathy-persona-store.c \
75 empathy-persona-view.c \
76 empathy-presence-chooser.c \
77 empathy-protocol-chooser.c \
78 empathy-search-bar.c \
79 empathy-share-my-desktop.c \
80 empathy-smiley-manager.c \
81 empathy-sound-manager.c \
83 empathy-status-preset-dialog.c \
84 empathy-string-parser.c \
85 empathy-theme-boxes.c \
87 empathy-theme-manager.c \
88 empathy-tls-dialog.c \
91 libempathy_gtk_headers = \
92 empathy-account-chooser.h \
93 empathy-account-widget-irc.h \
94 empathy-account-widget-sip.h \
95 empathy-account-widget.h \
96 empathy-avatar-chooser.h \
97 empathy-avatar-image.h \
98 empathy-cell-renderer-activatable.h \
99 empathy-cell-renderer-expander.h \
100 empathy-cell-renderer-text.h \
101 empathy-chat-text-view.h \
102 empathy-chat-view.h \
104 empathy-contact-blocking-dialog.h \
105 empathy-contact-dialogs.h \
106 empathy-contact-list-store.h \
107 empathy-contact-list-view.h \
108 empathy-contact-menu.h \
109 empathy-linking-dialog.h \
110 empathy-live-search.h \
111 empathy-contact-search-dialog.h \
112 empathy-contact-selector.h \
113 empathy-contact-selector-dialog.h \
114 empathy-contact-widget.h \
116 empathy-groups-widget.h \
118 empathy-individual-dialogs.h \
119 empathy-individual-edit-dialog.h \
120 empathy-individual-information-dialog.h \
121 empathy-individual-linker.h \
122 empathy-individual-menu.h \
123 empathy-individual-store.h \
124 empathy-individual-view.h \
125 empathy-individual-widget.h \
126 empathy-input-text-view.h \
127 empathy-irc-network-chooser.h \
128 empathy-irc-network-chooser-dialog.h \
129 empathy-irc-network-dialog.h \
130 empathy-log-window.h \
131 empathy-new-message-dialog.h \
132 empathy-new-call-dialog.h \
133 empathy-notify-manager.h \
134 empathy-password-dialog.h \
135 empathy-persona-store.h \
136 empathy-persona-view.h \
137 empathy-presence-chooser.h \
138 empathy-protocol-chooser.h \
139 empathy-search-bar.h \
140 empathy-share-my-desktop.h \
141 empathy-smiley-manager.h \
142 empathy-sound-manager.h \
144 empathy-status-preset-dialog.h \
145 empathy-string-parser.h \
146 empathy-theme-boxes.h \
147 empathy-theme-irc.h \
148 empathy-theme-manager.h \
149 empathy-tls-dialog.h \
152 libempathy_gtk_la_SOURCES = \
153 $(libempathy_gtk_handwritten_source) \
154 $(libempathy_gtk_headers) \
155 totem-subtitle-encoding.c totem-subtitle-encoding.h
157 # do not distribute generated files
158 nodist_libempathy_gtk_la_SOURCES =\
161 libempathy_gtk_la_LIBADD = \
168 $(LIBCHAMPLAIN_LIBS) \
174 $(top_builddir)/libempathy/libempathy.la
177 $(libempathy_gtk_handwritten_source) \
178 $(libempathy_gtk_headers)
179 include $(top_srcdir)/tools/check-coding-style.mk
180 check-local: check-coding-style
182 uidir = $(datadir)/empathy
184 empathy-contact-widget.ui \
185 empathy-contact-dialogs.ui \
186 empathy-contact-blocking-dialog.ui \
187 empathy-account-widget-generic.ui \
188 empathy-account-widget-jabber.ui \
189 empathy-account-widget-msn.ui \
190 empathy-account-widget-sip.ui \
191 empathy-account-widget-local-xmpp.ui \
192 empathy-account-widget-irc.ui \
193 empathy-account-widget-icq.ui \
194 empathy-account-widget-yahoo.ui \
195 empathy-account-widget-groupwise.ui \
196 empathy-account-widget-aim.ui \
197 empathy-status-preset-dialog.ui \
198 empathy-log-window.ui \
200 empathy-contact-selector-dialog.ui \
201 empathy-search-bar.ui \
202 empathy-individual-widget.ui
204 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
205 $(AM_V_GEN)( cd $(srcdir) && \
206 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
207 $(libempathy_gtk_la_SOURCES) ) \
208 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
209 @if cmp -s $@.tmp $@; then \
215 %-marshal.h: %-marshal.list Makefile
216 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
218 %-marshal.c: %-marshal.list Makefile
219 $(AM_V_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
220 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
222 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
224 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
225 $(AM_V_GEN)(cd $(srcdir) \
227 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
228 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
229 --fhead "#include <glib-object.h>\n\n" \
230 --fhead "G_BEGIN_DECLS\n\n" \
231 --ftail "G_END_DECLS\n\n" \
232 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
233 --fprod "#include <libempathy-gtk/@filename@>\n" \
234 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
235 --eprod "GType @enum_name@_get_type (void);\n" \
236 $(libempathy_gtk_headers) ) > xgen-gth \
237 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
239 && echo timestamp > $(@F)
241 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
242 $(AM_V_GEN)(cd $(srcdir) \
244 --fhead "#include <config.h>\n" \
245 --fhead "#include <glib-object.h>\n" \
246 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
247 --fprod "\n/* enumerations from \"@filename@\" */" \
248 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
249 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
250 --vtail " { 0, NULL, NULL }\n};\n\n" \
251 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
252 --vtail " static GType type = 0;\n\n" \
253 --vtail " if (!type)\n" \
254 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
255 --vtail " return type;\n}\n\n" \
256 $(libempathy_gtk_headers) ) > xgen-gtc \
257 && cp xgen-gtc $(@F) \
264 libempathy_gtk_handwritten_source += \
265 empathy-location-manager.c
267 libempathy_gtk_headers += \
268 empathy-location-manager.h
271 empathy-location-manager.c \
272 empathy-location-manager.h
276 libempathy_gtk_handwritten_source += \
278 empathy-theme-adium.c
279 libempathy_gtk_headers += \
281 empathy-theme-adium.h
286 empathy-theme-adium.c \
287 empathy-theme-adium.h
292 stamp-empathy-gtk-enum-types.h