1 include $(top_srcdir)/tools/shave.mk
2 include $(top_srcdir)/tools/flymake.mk
8 -DDATADIR=\""$(datadir)"\" \
9 -DPKGDATADIR=\""$(pkgdatadir)"\" \
10 $(LIBEMPATHYGTK_CFLAGS) \
13 $(LIBCHAMPLAIN_CFLAGS) \
21 empathy-gtk-marshal.h \
22 empathy-gtk-marshal.c \
23 empathy-gtk-marshal.list \
24 empathy-gtk-enum-types.h \
25 empathy-gtk-enum-types.c
27 noinst_LTLIBRARIES = libempathy-gtk.la
29 libempathy_gtk_handwritten_source = \
30 empathy-account-chooser.c \
31 empathy-account-widget-irc.c \
32 empathy-account-widget-private.h \
33 empathy-account-widget-sip.c \
34 empathy-account-widget.c \
35 empathy-audio-sink.c \
37 empathy-avatar-chooser.c \
38 empathy-avatar-image.c \
39 empathy-cell-renderer-activatable.c \
40 empathy-cell-renderer-expander.c \
41 empathy-cell-renderer-text.c \
42 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-contact-selector.c \
51 empathy-contact-selector-dialog.c \
52 empathy-contact-widget.c \
54 empathy-irc-network-dialog.c \
55 empathy-kludge-label.c \
56 empathy-log-window.c \
57 empathy-new-message-dialog.c \
58 empathy-notify-manager.c \
59 empathy-presence-chooser.c \
60 empathy-protocol-chooser.c \
61 empathy-share-my-desktop.c \
62 empathy-smiley-manager.c \
65 empathy-status-preset-dialog.c \
66 empathy-theme-boxes.c \
68 empathy-theme-manager.c \
71 empathy-video-widget.c
73 libempathy_gtk_headers = \
74 empathy-account-chooser.h \
75 empathy-account-widget-irc.h \
76 empathy-account-widget-sip.h \
77 empathy-account-widget.h \
78 empathy-audio-sink.h \
80 empathy-avatar-chooser.h \
81 empathy-avatar-image.h \
82 empathy-cell-renderer-activatable.h \
83 empathy-cell-renderer-expander.h \
84 empathy-cell-renderer-text.h \
85 empathy-chat-text-view.h \
89 empathy-contact-dialogs.h \
90 empathy-contact-list-store.h \
91 empathy-contact-list-view.h \
92 empathy-contact-menu.h \
93 empathy-contact-selector.h \
94 empathy-contact-selector-dialog.h \
95 empathy-contact-widget.h \
98 empathy-irc-network-dialog.h \
99 empathy-kludge-label.h \
100 empathy-log-window.h \
101 empathy-new-message-dialog.h \
102 empathy-notify-manager.h \
103 empathy-presence-chooser.h \
104 empathy-protocol-chooser.h \
105 empathy-share-my-desktop.h \
106 empathy-smiley-manager.h \
109 empathy-status-preset-dialog.h \
110 empathy-theme-boxes.h \
111 empathy-theme-irc.h \
112 empathy-theme-manager.h \
114 empathy-video-src.h \
115 empathy-video-widget.h
117 libempathy_gtk_la_SOURCES = \
118 $(libempathy_gtk_handwritten_source) \
119 $(libempathy_gtk_headers) \
120 totem-subtitle-encoding.c totem-subtitle-encoding.h
122 # do not distribute generated files
123 nodist_libempathy_gtk_la_SOURCES =\
126 libempathy_gtk_la_LIBADD = \
127 $(LIBEMPATHYGTK_LIBS) \
130 $(LIBCHAMPLAIN_LIBS) \
134 $(top_builddir)/libempathy/libempathy.la
137 $(libempathy_gtk_handwritten_source) \
138 $(libempathy_gtk_headers)
139 include $(top_srcdir)/tools/check-coding-style.mk
140 check-local: check-coding-style
142 uidir = $(datadir)/empathy
144 empathy-contact-widget.ui \
145 empathy-contact-dialogs.ui \
146 empathy-account-widget-generic.ui \
147 empathy-account-widget-jabber.ui \
148 empathy-account-widget-msn.ui \
149 empathy-account-widget-sip.ui \
150 empathy-account-widget-local-xmpp.ui \
151 empathy-account-widget-irc.ui \
152 empathy-account-widget-icq.ui \
153 empathy-account-widget-yahoo.ui \
154 empathy-account-widget-groupwise.ui \
155 empathy-account-widget-aim.ui \
156 empathy-status-preset-dialog.ui \
157 empathy-log-window.ui \
159 empathy-contact-selector-dialog.ui
161 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
162 $(QUIET_GEN)( cd $(srcdir) && \
163 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
164 $(libempathy_gtk_la_SOURCES) ) \
165 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
166 if cmp -s $@.tmp $@; then \
172 %-marshal.h: %-marshal.list Makefile
173 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
175 %-marshal.c: %-marshal.list Makefile
176 $(QUIET_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
177 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
179 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
181 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
182 $(QUIET_GEN)(cd $(srcdir) \
184 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
185 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
186 --fhead "#include <glib-object.h>\n\n" \
187 --fhead "G_BEGIN_DECLS\n\n" \
188 --ftail "G_END_DECLS\n\n" \
189 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
190 --fprod "#include <libempathy-gtk/@filename@>\n" \
191 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
192 --eprod "GType @enum_name@_get_type (void);\n" \
193 $(libempathy_gtk_headers) ) > xgen-gth \
194 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
196 && echo timestamp > $(@F)
198 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
199 $(QUIET_GEN)(cd $(srcdir) \
201 --fhead "#include <config.h>\n" \
202 --fhead "#include <glib-object.h>\n" \
203 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
204 --fprod "\n/* enumerations from \"@filename@\" */" \
205 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
206 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
207 --vtail " { 0, NULL, NULL }\n};\n\n" \
208 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
209 --vtail " static GType type = 0;\n\n" \
210 --vtail " if (!type)\n" \
211 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
212 --vtail " return type;\n}\n\n" \
213 $(libempathy_gtk_headers) ) > xgen-gtc \
214 && cp xgen-gtc $(@F) \
221 libempathy_gtk_handwritten_source += \
222 empathy-location-manager.c
224 libempathy_gtk_headers += \
225 empathy-location-manager.h
228 empathy-location-manager.c \
229 empathy-location-manager.h
233 libempathy_gtk_handwritten_source += \
235 empathy-theme-adium.c
236 libempathy_gtk_headers += \
238 empathy-theme-adium.h
243 empathy-theme-adium.c \
244 empathy-theme-adium.h
249 stamp-empathy-gtk-enum-types.h