1 include $(top_srcdir)/tools/flymake.mk
7 -DDATADIR=\""$(datadir)"\" \
8 -DPKGDATADIR=\""$(pkgdatadir)"\" \
9 -DGCR_API_SUBJECT_TO_CHANGE \
15 $(LIBCHAMPLAIN_CFLAGS) \
23 empathy-gtk-marshal.h \
24 empathy-gtk-marshal.c \
25 empathy-gtk-marshal.list \
26 empathy-gtk-enum-types.h \
27 empathy-gtk-enum-types.c
29 noinst_LTLIBRARIES = libempathy-gtk.la
31 libempathy_gtk_handwritten_source = \
32 empathy-account-chooser.c \
33 empathy-account-widget-irc.c \
34 empathy-account-widget-private.h \
35 empathy-account-widget-sip.c \
36 empathy-account-widget.c \
37 empathy-audio-sink.c \
39 empathy-avatar-chooser.c \
40 empathy-avatar-image.c \
41 empathy-cell-renderer-activatable.c \
42 empathy-cell-renderer-expander.c \
43 empathy-cell-renderer-text.c \
44 empathy-chat-text-view.c \
47 empathy-contact-dialogs.c \
48 empathy-contact-list-store.c \
49 empathy-contact-list-view.c \
50 empathy-contact-menu.c \
51 empathy-linking-dialog.c \
52 empathy-live-search.c \
53 empathy-contact-selector.c \
54 empathy-contact-selector-dialog.c \
55 empathy-contact-widget.c \
57 empathy-individual-dialogs.c \
58 empathy-individual-linker.c \
59 empathy-individual-menu.c \
60 empathy-individual-store.c \
61 empathy-individual-view.c \
62 empathy-individual-widget.c \
63 empathy-irc-network-dialog.c \
64 empathy-kludge-label.c \
65 empathy-log-window.c \
66 empathy-new-message-dialog.c \
67 empathy-new-call-dialog.c \
68 empathy-notify-manager.c \
69 empathy-persona-store.c \
70 empathy-persona-view.c \
71 empathy-presence-chooser.c \
72 empathy-protocol-chooser.c \
73 empathy-search-bar.c \
74 empathy-share-my-desktop.c \
75 empathy-smiley-manager.c \
78 empathy-status-preset-dialog.c \
79 empathy-string-parser.c \
80 empathy-theme-boxes.c \
82 empathy-theme-manager.c \
83 empathy-tls-dialog.c \
86 empathy-video-widget.c
88 libempathy_gtk_headers = \
89 empathy-account-chooser.h \
90 empathy-account-widget-irc.h \
91 empathy-account-widget-sip.h \
92 empathy-account-widget.h \
93 empathy-audio-sink.h \
95 empathy-avatar-chooser.h \
96 empathy-avatar-image.h \
97 empathy-cell-renderer-activatable.h \
98 empathy-cell-renderer-expander.h \
99 empathy-cell-renderer-text.h \
100 empathy-chat-text-view.h \
101 empathy-chat-view.h \
103 empathy-contact-dialogs.h \
104 empathy-contact-list-store.h \
105 empathy-contact-list-view.h \
106 empathy-contact-menu.h \
107 empathy-linking-dialog.h \
108 empathy-live-search.h \
109 empathy-contact-selector.h \
110 empathy-contact-selector-dialog.h \
111 empathy-contact-widget.h \
114 empathy-individual-dialogs.h \
115 empathy-individual-linker.h \
116 empathy-individual-menu.h \
117 empathy-individual-store.h \
118 empathy-individual-view.h \
119 empathy-individual-widget.h \
120 empathy-irc-network-dialog.h \
121 empathy-kludge-label.h \
122 empathy-log-window.h \
123 empathy-new-message-dialog.h \
124 empathy-new-call-dialog.h \
125 empathy-notify-manager.h \
126 empathy-persona-store.h \
127 empathy-persona-view.h \
128 empathy-presence-chooser.h \
129 empathy-protocol-chooser.h \
130 empathy-search-bar.h \
131 empathy-share-my-desktop.h \
132 empathy-smiley-manager.h \
135 empathy-status-preset-dialog.h \
136 empathy-string-parser.h \
137 empathy-theme-boxes.h \
138 empathy-theme-irc.h \
139 empathy-theme-manager.h \
140 empathy-tls-dialog.h \
142 empathy-video-src.h \
143 empathy-video-widget.h
145 libempathy_gtk_la_SOURCES = \
146 $(libempathy_gtk_handwritten_source) \
147 $(libempathy_gtk_headers) \
148 totem-subtitle-encoding.c totem-subtitle-encoding.h
150 # do not distribute generated files
151 nodist_libempathy_gtk_la_SOURCES =\
154 libempathy_gtk_la_LIBADD = \
160 $(LIBCHAMPLAIN_LIBS) \
164 $(top_builddir)/libempathy/libempathy.la
167 $(libempathy_gtk_handwritten_source) \
168 $(libempathy_gtk_headers)
169 include $(top_srcdir)/tools/check-coding-style.mk
170 check-local: check-coding-style
172 uidir = $(datadir)/empathy
174 empathy-contact-widget.ui \
175 empathy-contact-dialogs.ui \
176 empathy-account-widget-generic.ui \
177 empathy-account-widget-jabber.ui \
178 empathy-account-widget-msn.ui \
179 empathy-account-widget-sip.ui \
180 empathy-account-widget-local-xmpp.ui \
181 empathy-account-widget-irc.ui \
182 empathy-account-widget-icq.ui \
183 empathy-account-widget-yahoo.ui \
184 empathy-account-widget-groupwise.ui \
185 empathy-account-widget-aim.ui \
186 empathy-status-preset-dialog.ui \
187 empathy-log-window.ui \
189 empathy-contact-selector-dialog.ui \
190 empathy-search-bar.ui
192 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
193 $(AM_V_GEN)( cd $(srcdir) && \
194 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
195 $(libempathy_gtk_la_SOURCES) ) \
196 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
197 @if cmp -s $@.tmp $@; then \
203 %-marshal.h: %-marshal.list Makefile
204 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
206 %-marshal.c: %-marshal.list Makefile
207 $(AM_V_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
208 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
210 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
212 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
213 $(AM_V_GEN)(cd $(srcdir) \
215 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
216 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
217 --fhead "#include <glib-object.h>\n\n" \
218 --fhead "G_BEGIN_DECLS\n\n" \
219 --ftail "G_END_DECLS\n\n" \
220 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
221 --fprod "#include <libempathy-gtk/@filename@>\n" \
222 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
223 --eprod "GType @enum_name@_get_type (void);\n" \
224 $(libempathy_gtk_headers) ) > xgen-gth \
225 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
227 && echo timestamp > $(@F)
229 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
230 $(AM_V_GEN)(cd $(srcdir) \
232 --fhead "#include <config.h>\n" \
233 --fhead "#include <glib-object.h>\n" \
234 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
235 --fprod "\n/* enumerations from \"@filename@\" */" \
236 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
237 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
238 --vtail " { 0, NULL, NULL }\n};\n\n" \
239 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
240 --vtail " static GType type = 0;\n\n" \
241 --vtail " if (!type)\n" \
242 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
243 --vtail " return type;\n}\n\n" \
244 $(libempathy_gtk_headers) ) > xgen-gtc \
245 && cp xgen-gtc $(@F) \
252 libempathy_gtk_handwritten_source += \
253 empathy-location-manager.c
255 libempathy_gtk_headers += \
256 empathy-location-manager.h
259 empathy-location-manager.c \
260 empathy-location-manager.h
264 libempathy_gtk_handwritten_source += \
266 empathy-theme-adium.c
267 libempathy_gtk_headers += \
269 empathy-theme-adium.h
274 empathy-theme-adium.c \
275 empathy-theme-adium.h
280 stamp-empathy-gtk-enum-types.h