1 include $(top_srcdir)/tools/flymake.mk
7 -DDATADIR=\""$(datadir)"\" \
8 -DPKGDATADIR=\""$(pkgdatadir)"\" \
14 $(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-audio-sink.c \
38 empathy-avatar-chooser.c \
39 empathy-avatar-image.c \
40 empathy-cell-renderer-activatable.c \
41 empathy-cell-renderer-expander.c \
42 empathy-cell-renderer-text.c \
43 empathy-chat-text-view.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-selector.c \
53 empathy-contact-selector-dialog.c \
54 empathy-contact-widget.c \
56 empathy-individual-dialogs.c \
57 empathy-individual-linker.c \
58 empathy-individual-menu.c \
59 empathy-individual-store.c \
60 empathy-individual-view.c \
61 empathy-individual-widget.c \
62 empathy-irc-network-dialog.c \
63 empathy-kludge-label.c \
64 empathy-log-window.c \
65 empathy-new-message-dialog.c \
66 empathy-new-call-dialog.c \
67 empathy-notify-manager.c \
68 empathy-persona-store.c \
69 empathy-persona-view.c \
70 empathy-presence-chooser.c \
71 empathy-protocol-chooser.c \
72 empathy-search-bar.c \
73 empathy-share-my-desktop.c \
74 empathy-smiley-manager.c \
77 empathy-status-preset-dialog.c \
78 empathy-string-parser.c \
79 empathy-theme-boxes.c \
81 empathy-theme-manager.c \
84 empathy-video-widget.c
86 libempathy_gtk_headers = \
87 empathy-account-chooser.h \
88 empathy-account-widget-irc.h \
89 empathy-account-widget-sip.h \
90 empathy-account-widget.h \
91 empathy-audio-sink.h \
93 empathy-avatar-chooser.h \
94 empathy-avatar-image.h \
95 empathy-cell-renderer-activatable.h \
96 empathy-cell-renderer-expander.h \
97 empathy-cell-renderer-text.h \
98 empathy-chat-text-view.h \
101 empathy-contact-dialogs.h \
102 empathy-contact-list-store.h \
103 empathy-contact-list-view.h \
104 empathy-contact-menu.h \
105 empathy-linking-dialog.h \
106 empathy-live-search.h \
107 empathy-contact-selector.h \
108 empathy-contact-selector-dialog.h \
109 empathy-contact-widget.h \
112 empathy-individual-dialogs.h \
113 empathy-individual-linker.h \
114 empathy-individual-menu.h \
115 empathy-individual-store.h \
116 empathy-individual-view.h \
117 empathy-individual-widget.h \
118 empathy-irc-network-dialog.h \
119 empathy-kludge-label.h \
120 empathy-log-window.h \
121 empathy-new-message-dialog.h \
122 empathy-new-call-dialog.h \
123 empathy-notify-manager.h \
124 empathy-persona-store.h \
125 empathy-persona-view.h \
126 empathy-presence-chooser.h \
127 empathy-protocol-chooser.h \
128 empathy-search-bar.h \
129 empathy-share-my-desktop.h \
130 empathy-smiley-manager.h \
133 empathy-status-preset-dialog.h \
134 empathy-string-parser.h \
135 empathy-theme-boxes.h \
136 empathy-theme-irc.h \
137 empathy-theme-manager.h \
139 empathy-video-src.h \
140 empathy-video-widget.h
142 libempathy_gtk_la_SOURCES = \
143 $(libempathy_gtk_handwritten_source) \
144 $(libempathy_gtk_headers) \
145 totem-subtitle-encoding.c totem-subtitle-encoding.h
147 # do not distribute generated files
148 nodist_libempathy_gtk_la_SOURCES =\
151 libempathy_gtk_la_LIBADD = \
157 $(LIBCHAMPLAIN_LIBS) \
161 $(top_builddir)/libempathy/libempathy.la
164 $(libempathy_gtk_handwritten_source) \
165 $(libempathy_gtk_headers)
166 include $(top_srcdir)/tools/check-coding-style.mk
167 check-local: check-coding-style
169 uidir = $(datadir)/empathy
171 empathy-contact-widget.ui \
172 empathy-contact-dialogs.ui \
173 empathy-account-widget-generic.ui \
174 empathy-account-widget-jabber.ui \
175 empathy-account-widget-msn.ui \
176 empathy-account-widget-sip.ui \
177 empathy-account-widget-local-xmpp.ui \
178 empathy-account-widget-irc.ui \
179 empathy-account-widget-icq.ui \
180 empathy-account-widget-yahoo.ui \
181 empathy-account-widget-groupwise.ui \
182 empathy-account-widget-aim.ui \
183 empathy-status-preset-dialog.ui \
184 empathy-log-window.ui \
186 empathy-contact-selector-dialog.ui \
187 empathy-search-bar.ui
189 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
190 $(AM_V_GEN)( cd $(srcdir) && \
191 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
192 $(libempathy_gtk_la_SOURCES) ) \
193 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
194 @if cmp -s $@.tmp $@; then \
200 %-marshal.h: %-marshal.list Makefile
201 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
203 %-marshal.c: %-marshal.list Makefile
204 $(AM_V_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
205 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
207 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
209 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
210 $(AM_V_GEN)(cd $(srcdir) \
212 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
213 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
214 --fhead "#include <glib-object.h>\n\n" \
215 --fhead "G_BEGIN_DECLS\n\n" \
216 --ftail "G_END_DECLS\n\n" \
217 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
218 --fprod "#include <libempathy-gtk/@filename@>\n" \
219 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
220 --eprod "GType @enum_name@_get_type (void);\n" \
221 $(libempathy_gtk_headers) ) > xgen-gth \
222 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
224 && echo timestamp > $(@F)
226 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
227 $(AM_V_GEN)(cd $(srcdir) \
229 --fhead "#include <config.h>\n" \
230 --fhead "#include <glib-object.h>\n" \
231 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
232 --fprod "\n/* enumerations from \"@filename@\" */" \
233 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
234 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
235 --vtail " { 0, NULL, NULL }\n};\n\n" \
236 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
237 --vtail " static GType type = 0;\n\n" \
238 --vtail " if (!type)\n" \
239 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
240 --vtail " return type;\n}\n\n" \
241 $(libempathy_gtk_headers) ) > xgen-gtc \
242 && cp xgen-gtc $(@F) \
249 libempathy_gtk_handwritten_source += \
250 empathy-location-manager.c
252 libempathy_gtk_headers += \
253 empathy-location-manager.h
256 empathy-location-manager.c \
257 empathy-location-manager.h
261 libempathy_gtk_handwritten_source += \
263 empathy-theme-adium.c
264 libempathy_gtk_headers += \
266 empathy-theme-adium.h
271 empathy-theme-adium.c \
272 empathy-theme-adium.h
277 stamp-empathy-gtk-enum-types.h