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-individual-store.c \
56 empathy-individual-view.c \
57 empathy-irc-network-dialog.c \
58 empathy-kludge-label.c \
59 empathy-log-window.c \
60 empathy-new-message-dialog.c \
61 empathy-new-call-dialog.c \
62 empathy-notify-manager.c \
63 empathy-presence-chooser.c \
64 empathy-protocol-chooser.c \
65 empathy-search-bar.c \
66 empathy-share-my-desktop.c \
67 empathy-smiley-manager.c \
70 empathy-status-preset-dialog.c \
71 empathy-string-parser.c \
72 empathy-theme-boxes.c \
74 empathy-theme-manager.c \
77 empathy-video-widget.c
79 libempathy_gtk_headers = \
80 empathy-account-chooser.h \
81 empathy-account-widget-irc.h \
82 empathy-account-widget-sip.h \
83 empathy-account-widget.h \
84 empathy-audio-sink.h \
86 empathy-avatar-chooser.h \
87 empathy-avatar-image.h \
88 empathy-cell-renderer-activatable.h \
89 empathy-cell-renderer-expander.h \
90 empathy-cell-renderer-text.h \
91 empathy-chat-text-view.h \
94 empathy-contact-dialogs.h \
95 empathy-contact-list-store.h \
96 empathy-contact-list-view.h \
97 empathy-contact-menu.h \
98 empathy-live-search.h \
99 empathy-contact-selector.h \
100 empathy-contact-selector-dialog.h \
101 empathy-contact-widget.h \
104 empathy-individual-menu.h \
105 empathy-individual-store.h \
106 empathy-individual-view.h \
107 empathy-irc-network-dialog.h \
108 empathy-kludge-label.h \
109 empathy-log-window.h \
110 empathy-new-message-dialog.h \
111 empathy-new-call-dialog.h \
112 empathy-notify-manager.h \
113 empathy-presence-chooser.h \
114 empathy-protocol-chooser.h \
115 empathy-search-bar.h \
116 empathy-share-my-desktop.h \
117 empathy-smiley-manager.h \
120 empathy-status-preset-dialog.h \
121 empathy-string-parser.h \
122 empathy-theme-boxes.h \
123 empathy-theme-irc.h \
124 empathy-theme-manager.h \
126 empathy-video-src.h \
127 empathy-video-widget.h
129 libempathy_gtk_la_SOURCES = \
130 $(libempathy_gtk_handwritten_source) \
131 $(libempathy_gtk_headers) \
132 totem-subtitle-encoding.c totem-subtitle-encoding.h
134 # do not distribute generated files
135 nodist_libempathy_gtk_la_SOURCES =\
138 libempathy_gtk_la_LIBADD = \
144 $(LIBCHAMPLAIN_LIBS) \
148 $(top_builddir)/libempathy/libempathy.la
151 $(libempathy_gtk_handwritten_source) \
152 $(libempathy_gtk_headers)
153 include $(top_srcdir)/tools/check-coding-style.mk
154 check-local: check-coding-style
156 uidir = $(datadir)/empathy
158 empathy-contact-widget.ui \
159 empathy-contact-dialogs.ui \
160 empathy-account-widget-generic.ui \
161 empathy-account-widget-jabber.ui \
162 empathy-account-widget-msn.ui \
163 empathy-account-widget-sip.ui \
164 empathy-account-widget-local-xmpp.ui \
165 empathy-account-widget-irc.ui \
166 empathy-account-widget-icq.ui \
167 empathy-account-widget-yahoo.ui \
168 empathy-account-widget-groupwise.ui \
169 empathy-account-widget-aim.ui \
170 empathy-status-preset-dialog.ui \
171 empathy-log-window.ui \
173 empathy-contact-selector-dialog.ui \
174 empathy-search-bar.ui
176 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
177 $(AM_V_GEN)( cd $(srcdir) && \
178 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
179 $(libempathy_gtk_la_SOURCES) ) \
180 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
181 @if cmp -s $@.tmp $@; then \
187 %-marshal.h: %-marshal.list Makefile
188 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
190 %-marshal.c: %-marshal.list Makefile
191 $(AM_V_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
192 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
194 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
196 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
197 $(AM_V_GEN)(cd $(srcdir) \
199 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
200 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
201 --fhead "#include <glib-object.h>\n\n" \
202 --fhead "G_BEGIN_DECLS\n\n" \
203 --ftail "G_END_DECLS\n\n" \
204 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
205 --fprod "#include <libempathy-gtk/@filename@>\n" \
206 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
207 --eprod "GType @enum_name@_get_type (void);\n" \
208 $(libempathy_gtk_headers) ) > xgen-gth \
209 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
211 && echo timestamp > $(@F)
213 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
214 $(AM_V_GEN)(cd $(srcdir) \
216 --fhead "#include <config.h>\n" \
217 --fhead "#include <glib-object.h>\n" \
218 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
219 --fprod "\n/* enumerations from \"@filename@\" */" \
220 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
221 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
222 --vtail " { 0, NULL, NULL }\n};\n\n" \
223 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
224 --vtail " static GType type = 0;\n\n" \
225 --vtail " if (!type)\n" \
226 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
227 --vtail " return type;\n}\n\n" \
228 $(libempathy_gtk_headers) ) > xgen-gtc \
229 && cp xgen-gtc $(@F) \
236 libempathy_gtk_handwritten_source += \
237 empathy-location-manager.c
239 libempathy_gtk_headers += \
240 empathy-location-manager.h
243 empathy-location-manager.c \
244 empathy-location-manager.h
248 libempathy_gtk_handwritten_source += \
250 empathy-theme-adium.c
251 libempathy_gtk_headers += \
253 empathy-theme-adium.h
258 empathy-theme-adium.c \
259 empathy-theme-adium.h
264 stamp-empathy-gtk-enum-types.h