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