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-linker.c \
57 empathy-individual-menu.c \
58 empathy-individual-store.c \
59 empathy-individual-view.c \
60 empathy-individual-widget.c \
61 empathy-irc-network-dialog.c \
62 empathy-kludge-label.c \
63 empathy-log-window.c \
64 empathy-new-message-dialog.c \
65 empathy-new-call-dialog.c \
66 empathy-notify-manager.c \
67 empathy-persona-store.c \
68 empathy-persona-view.c \
69 empathy-presence-chooser.c \
70 empathy-protocol-chooser.c \
71 empathy-search-bar.c \
72 empathy-share-my-desktop.c \
73 empathy-smiley-manager.c \
76 empathy-status-preset-dialog.c \
77 empathy-string-parser.c \
78 empathy-theme-boxes.c \
80 empathy-theme-manager.c \
83 empathy-video-widget.c
85 libempathy_gtk_headers = \
86 empathy-account-chooser.h \
87 empathy-account-widget-irc.h \
88 empathy-account-widget-sip.h \
89 empathy-account-widget.h \
90 empathy-audio-sink.h \
92 empathy-avatar-chooser.h \
93 empathy-avatar-image.h \
94 empathy-cell-renderer-activatable.h \
95 empathy-cell-renderer-expander.h \
96 empathy-cell-renderer-text.h \
97 empathy-chat-text-view.h \
100 empathy-contact-dialogs.h \
101 empathy-contact-list-store.h \
102 empathy-contact-list-view.h \
103 empathy-contact-menu.h \
104 empathy-live-search.h \
105 empathy-contact-selector.h \
106 empathy-contact-selector-dialog.h \
107 empathy-contact-widget.h \
110 empathy-individual-dialogs.h \
111 empathy-individual-linker.h \
112 empathy-individual-menu.h \
113 empathy-individual-store.h \
114 empathy-individual-view.h \
115 empathy-individual-widget.h \
116 empathy-irc-network-dialog.h \
117 empathy-kludge-label.h \
118 empathy-log-window.h \
119 empathy-new-message-dialog.h \
120 empathy-new-call-dialog.h \
121 empathy-notify-manager.h \
122 empathy-persona-store.h \
123 empathy-persona-view.h \
124 empathy-presence-chooser.h \
125 empathy-protocol-chooser.h \
126 empathy-search-bar.h \
127 empathy-share-my-desktop.h \
128 empathy-smiley-manager.h \
131 empathy-status-preset-dialog.h \
132 empathy-string-parser.h \
133 empathy-theme-boxes.h \
134 empathy-theme-irc.h \
135 empathy-theme-manager.h \
137 empathy-video-src.h \
138 empathy-video-widget.h
140 libempathy_gtk_la_SOURCES = \
141 $(libempathy_gtk_handwritten_source) \
142 $(libempathy_gtk_headers) \
143 totem-subtitle-encoding.c totem-subtitle-encoding.h
145 # do not distribute generated files
146 nodist_libempathy_gtk_la_SOURCES =\
149 libempathy_gtk_la_LIBADD = \
155 $(LIBCHAMPLAIN_LIBS) \
159 $(top_builddir)/libempathy/libempathy.la
162 $(libempathy_gtk_handwritten_source) \
163 $(libempathy_gtk_headers)
164 include $(top_srcdir)/tools/check-coding-style.mk
165 check-local: check-coding-style
167 uidir = $(datadir)/empathy
169 empathy-contact-widget.ui \
170 empathy-contact-dialogs.ui \
171 empathy-account-widget-generic.ui \
172 empathy-account-widget-jabber.ui \
173 empathy-account-widget-msn.ui \
174 empathy-account-widget-sip.ui \
175 empathy-account-widget-local-xmpp.ui \
176 empathy-account-widget-irc.ui \
177 empathy-account-widget-icq.ui \
178 empathy-account-widget-yahoo.ui \
179 empathy-account-widget-groupwise.ui \
180 empathy-account-widget-aim.ui \
181 empathy-status-preset-dialog.ui \
182 empathy-log-window.ui \
184 empathy-contact-selector-dialog.ui \
185 empathy-search-bar.ui
187 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
188 $(AM_V_GEN)( cd $(srcdir) && \
189 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
190 $(libempathy_gtk_la_SOURCES) ) \
191 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
192 @if cmp -s $@.tmp $@; then \
198 %-marshal.h: %-marshal.list Makefile
199 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
201 %-marshal.c: %-marshal.list Makefile
202 $(AM_V_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
203 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
205 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
207 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
208 $(AM_V_GEN)(cd $(srcdir) \
210 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
211 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
212 --fhead "#include <glib-object.h>\n\n" \
213 --fhead "G_BEGIN_DECLS\n\n" \
214 --ftail "G_END_DECLS\n\n" \
215 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
216 --fprod "#include <libempathy-gtk/@filename@>\n" \
217 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
218 --eprod "GType @enum_name@_get_type (void);\n" \
219 $(libempathy_gtk_headers) ) > xgen-gth \
220 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
222 && echo timestamp > $(@F)
224 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
225 $(AM_V_GEN)(cd $(srcdir) \
227 --fhead "#include <config.h>\n" \
228 --fhead "#include <glib-object.h>\n" \
229 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
230 --fprod "\n/* enumerations from \"@filename@\" */" \
231 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
232 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
233 --vtail " { 0, NULL, NULL }\n};\n\n" \
234 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
235 --vtail " static GType type = 0;\n\n" \
236 --vtail " if (!type)\n" \
237 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
238 --vtail " return type;\n}\n\n" \
239 $(libempathy_gtk_headers) ) > xgen-gtc \
240 && cp xgen-gtc $(@F) \
247 libempathy_gtk_handwritten_source += \
248 empathy-location-manager.c
250 libempathy_gtk_headers += \
251 empathy-location-manager.h
254 empathy-location-manager.c \
255 empathy-location-manager.h
259 libempathy_gtk_handwritten_source += \
261 empathy-theme-adium.c
262 libempathy_gtk_headers += \
264 empathy-theme-adium.h
269 empathy-theme-adium.c \
270 empathy-theme-adium.h
275 stamp-empathy-gtk-enum-types.h