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-widget.c \
53 empathy-irc-network-dialog.c \
54 empathy-kludge-label.c \
55 empathy-log-window.c \
56 empathy-new-message-dialog.c \
57 empathy-notify-manager.c \
58 empathy-presence-chooser.c \
59 empathy-protocol-chooser.c \
60 empathy-share-my-desktop.c \
61 empathy-smiley-manager.c \
64 empathy-status-preset-dialog.c \
65 empathy-theme-boxes.c \
67 empathy-theme-manager.c \
70 empathy-video-widget.c
72 libempathy_gtk_headers = \
73 empathy-account-chooser.h \
74 empathy-account-widget-irc.h \
75 empathy-account-widget-sip.h \
76 empathy-account-widget.h \
77 empathy-audio-sink.h \
79 empathy-avatar-chooser.h \
80 empathy-avatar-image.h \
81 empathy-cell-renderer-activatable.h \
82 empathy-cell-renderer-expander.h \
83 empathy-cell-renderer-text.h \
84 empathy-chat-text-view.h \
88 empathy-contact-dialogs.h \
89 empathy-contact-list-store.h \
90 empathy-contact-list-view.h \
91 empathy-contact-menu.h \
92 empathy-contact-selector.h \
93 empathy-contact-widget.h \
96 empathy-irc-network-dialog.h \
97 empathy-kludge-label.h \
98 empathy-log-window.h \
99 empathy-new-message-dialog.h \
100 empathy-notify-manager.h \
101 empathy-presence-chooser.h \
102 empathy-protocol-chooser.h \
103 empathy-share-my-desktop.h \
104 empathy-smiley-manager.h \
107 empathy-status-preset-dialog.h \
108 empathy-theme-boxes.h \
109 empathy-theme-irc.h \
110 empathy-theme-manager.h \
112 empathy-video-src.h \
113 empathy-video-widget.h
115 libempathy_gtk_la_SOURCES = \
116 $(libempathy_gtk_handwritten_source) \
117 $(libempathy_gtk_headers) \
118 totem-subtitle-encoding.c totem-subtitle-encoding.h
120 # do not distribute generated files
121 nodist_libempathy_gtk_la_SOURCES =\
124 libempathy_gtk_la_LIBADD = \
125 $(LIBEMPATHYGTK_LIBS) \
128 $(LIBCHAMPLAIN_LIBS) \
132 $(top_builddir)/libempathy/libempathy.la
135 $(libempathy_gtk_handwritten_source) \
136 $(libempathy_gtk_headers)
137 include $(top_srcdir)/tools/check-coding-style.mk
138 check-local: check-coding-style
140 uidir = $(datadir)/empathy
142 empathy-contact-widget.ui \
143 empathy-contact-dialogs.ui \
144 empathy-account-widget-generic.ui \
145 empathy-account-widget-jabber.ui \
146 empathy-account-widget-msn.ui \
147 empathy-account-widget-sip.ui \
148 empathy-account-widget-local-xmpp.ui \
149 empathy-account-widget-irc.ui \
150 empathy-account-widget-icq.ui \
151 empathy-account-widget-yahoo.ui \
152 empathy-account-widget-groupwise.ui \
153 empathy-account-widget-aim.ui \
154 empathy-status-preset-dialog.ui \
155 empathy-log-window.ui \
157 empathy-new-message-dialog.ui
159 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
160 $(QUIET_GEN)( cd $(srcdir) && \
161 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
162 $(libempathy_gtk_la_SOURCES) ) \
163 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
164 if cmp -s $@.tmp $@; then \
170 %-marshal.h: %-marshal.list Makefile
171 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
173 %-marshal.c: %-marshal.list Makefile
174 $(QUIET_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
175 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
177 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
179 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
180 $(QUIET_GEN)(cd $(srcdir) \
182 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
183 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
184 --fhead "#include <glib-object.h>\n\n" \
185 --fhead "G_BEGIN_DECLS\n\n" \
186 --ftail "G_END_DECLS\n\n" \
187 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
188 --fprod "#include <libempathy-gtk/@filename@>\n" \
189 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
190 --eprod "GType @enum_name@_get_type (void);\n" \
191 $(libempathy_gtk_headers) ) > xgen-gth \
192 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
194 && echo timestamp > $(@F)
196 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
197 $(QUIET_GEN)(cd $(srcdir) \
199 --fhead "#include <config.h>\n" \
200 --fhead "#include <glib-object.h>\n" \
201 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
202 --fprod "\n/* enumerations from \"@filename@\" */" \
203 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
204 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
205 --vtail " { 0, NULL, NULL }\n};\n\n" \
206 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
207 --vtail " static GType type = 0;\n\n" \
208 --vtail " if (!type)\n" \
209 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
210 --vtail " return type;\n}\n\n" \
211 $(libempathy_gtk_headers) ) > xgen-gtc \
212 && cp xgen-gtc $(@F) \
219 libempathy_gtk_handwritten_source += \
220 empathy-location-manager.c
222 libempathy_gtk_headers += \
223 empathy-location-manager.h
226 empathy-location-manager.c \
227 empathy-location-manager.h
231 libempathy_gtk_handwritten_source += \
233 empathy-theme-adium.c
234 libempathy_gtk_headers += \
236 empathy-theme-adium.h
241 empathy-theme-adium.c \
242 empathy-theme-adium.h
247 stamp-empathy-gtk-enum-types.h