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-live-search.c \
51 empathy-contact-selector.c \
52 empathy-contact-selector-dialog.c \
53 empathy-contact-widget.c \
55 empathy-irc-network-dialog.c \
56 empathy-kludge-label.c \
57 empathy-log-window.c \
58 empathy-new-message-dialog.c \
59 empathy-new-call-dialog.c \
60 empathy-notify-manager.c \
61 empathy-presence-chooser.c \
62 empathy-protocol-chooser.c \
63 empathy-search-bar.c \
64 empathy-share-my-desktop.c \
65 empathy-smiley-manager.c \
68 empathy-status-preset-dialog.c \
69 empathy-string-parser.c \
70 empathy-theme-boxes.c \
72 empathy-theme-manager.c \
75 empathy-video-widget.c
77 libempathy_gtk_headers = \
78 empathy-account-chooser.h \
79 empathy-account-widget-irc.h \
80 empathy-account-widget-sip.h \
81 empathy-account-widget.h \
82 empathy-audio-sink.h \
84 empathy-avatar-chooser.h \
85 empathy-avatar-image.h \
86 empathy-cell-renderer-activatable.h \
87 empathy-cell-renderer-expander.h \
88 empathy-cell-renderer-text.h \
89 empathy-chat-text-view.h \
92 empathy-contact-dialogs.h \
93 empathy-contact-list-store.h \
94 empathy-contact-list-view.h \
95 empathy-contact-menu.h \
96 empathy-live-search.h \
97 empathy-contact-selector.h \
98 empathy-contact-selector-dialog.h \
99 empathy-contact-widget.h \
102 empathy-irc-network-dialog.h \
103 empathy-kludge-label.h \
104 empathy-log-window.h \
105 empathy-new-message-dialog.h \
106 empathy-new-call-dialog.h \
107 empathy-notify-manager.h \
108 empathy-presence-chooser.h \
109 empathy-protocol-chooser.h \
110 empathy-search-bar.h \
111 empathy-share-my-desktop.h \
112 empathy-smiley-manager.h \
115 empathy-status-preset-dialog.h \
116 empathy-string-parser.h \
117 empathy-theme-boxes.h \
118 empathy-theme-irc.h \
119 empathy-theme-manager.h \
121 empathy-video-src.h \
122 empathy-video-widget.h
124 libempathy_gtk_la_SOURCES = \
125 $(libempathy_gtk_handwritten_source) \
126 $(libempathy_gtk_headers) \
127 totem-subtitle-encoding.c totem-subtitle-encoding.h
129 # do not distribute generated files
130 nodist_libempathy_gtk_la_SOURCES =\
133 libempathy_gtk_la_LIBADD = \
139 $(LIBCHAMPLAIN_LIBS) \
143 $(top_builddir)/libempathy/libempathy.la
146 $(libempathy_gtk_handwritten_source) \
147 $(libempathy_gtk_headers)
148 include $(top_srcdir)/tools/check-coding-style.mk
149 check-local: check-coding-style
151 uidir = $(datadir)/empathy
153 empathy-contact-widget.ui \
154 empathy-contact-dialogs.ui \
155 empathy-account-widget-generic.ui \
156 empathy-account-widget-jabber.ui \
157 empathy-account-widget-msn.ui \
158 empathy-account-widget-sip.ui \
159 empathy-account-widget-local-xmpp.ui \
160 empathy-account-widget-irc.ui \
161 empathy-account-widget-icq.ui \
162 empathy-account-widget-yahoo.ui \
163 empathy-account-widget-groupwise.ui \
164 empathy-account-widget-aim.ui \
165 empathy-status-preset-dialog.ui \
166 empathy-log-window.ui \
168 empathy-contact-selector-dialog.ui \
169 empathy-search-bar.ui
171 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
172 $(AM_V_GEN)( cd $(srcdir) && \
173 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
174 $(libempathy_gtk_la_SOURCES) ) \
175 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
176 @if cmp -s $@.tmp $@; then \
182 %-marshal.h: %-marshal.list Makefile
183 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
185 %-marshal.c: %-marshal.list Makefile
186 $(AM_V_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
187 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
189 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
191 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
192 $(AM_V_GEN)(cd $(srcdir) \
194 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
195 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
196 --fhead "#include <glib-object.h>\n\n" \
197 --fhead "G_BEGIN_DECLS\n\n" \
198 --ftail "G_END_DECLS\n\n" \
199 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
200 --fprod "#include <libempathy-gtk/@filename@>\n" \
201 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
202 --eprod "GType @enum_name@_get_type (void);\n" \
203 $(libempathy_gtk_headers) ) > xgen-gth \
204 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
206 && echo timestamp > $(@F)
208 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
209 $(AM_V_GEN)(cd $(srcdir) \
211 --fhead "#include <config.h>\n" \
212 --fhead "#include <glib-object.h>\n" \
213 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
214 --fprod "\n/* enumerations from \"@filename@\" */" \
215 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
216 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
217 --vtail " { 0, NULL, NULL }\n};\n\n" \
218 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
219 --vtail " static GType type = 0;\n\n" \
220 --vtail " if (!type)\n" \
221 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
222 --vtail " return type;\n}\n\n" \
223 $(libempathy_gtk_headers) ) > xgen-gtc \
224 && cp xgen-gtc $(@F) \
231 libempathy_gtk_handwritten_source += \
232 empathy-location-manager.c
234 libempathy_gtk_headers += \
235 empathy-location-manager.h
238 empathy-location-manager.c \
239 empathy-location-manager.h
243 libempathy_gtk_handwritten_source += \
245 empathy-theme-adium.c
246 libempathy_gtk_headers += \
248 empathy-theme-adium.h
253 empathy-theme-adium.c \
254 empathy-theme-adium.h
259 stamp-empathy-gtk-enum-types.h