1 include $(top_srcdir)/tools/shave.mk
2 include $(top_srcdir)/tools/flymake.mk
7 -DDATADIR=\""$(datadir)"\" \
8 -DPKGDATADIR=\""$(pkgdatadir)"\" \
9 $(LIBEMPATHYGTK_CFLAGS) \
11 $(LIBCHAMPLAIN_CFLAGS) \
19 empathy-gtk-marshal.h \
20 empathy-gtk-marshal.c \
21 empathy-gtk-marshal.list \
22 empathy-gtk-enum-types.h \
23 empathy-gtk-enum-types.c
25 lib_LTLIBRARIES = libempathy-gtk.la
27 libempathy_gtk_handwritten_source = \
28 empathy-account-chooser.c \
29 empathy-account-widget.c \
30 empathy-account-widget-private.h \
31 empathy-account-widget-irc.c \
32 empathy-account-widget-sip.c \
33 empathy-avatar-chooser.c \
34 empathy-avatar-image.c \
35 empathy-cell-renderer-activatable.c \
36 empathy-cell-renderer-expander.c \
37 empathy-cell-renderer-text.c \
39 empathy-chat-text-view.c \
42 empathy-contact-dialogs.c \
43 empathy-contact-list-store.c \
44 empathy-contact-list-view.c \
45 empathy-contact-menu.c \
46 empathy-share-my-desktop.c \
47 empathy-contact-selector.c \
48 empathy-contact-widget.c \
50 empathy-audio-sink.c \
53 empathy-video-widget.c \
54 empathy-irc-network-dialog.c \
55 empathy-log-window.c \
56 empathy-new-message-dialog.c \
57 empathy-presence-chooser.c \
58 empathy-protocol-chooser.c \
59 empathy-smiley-manager.c \
62 empathy-status-preset-dialog.c \
63 empathy-theme-boxes.c \
65 empathy-theme-manager.c \
66 empathy-kludge-label.c \
69 libempathy_gtk_la_SOURCES = \
70 $(libempathy_gtk_handwritten_source) \
71 totem-subtitle-encoding.c totem-subtitle-encoding.h
73 # do not distribute generated files
74 nodist_libempathy_gtk_la_SOURCES =\
77 libempathy_gtk_la_LIBADD = \
78 $(LIBEMPATHYGTK_LIBS) \
80 $(LIBCHAMPLAIN_LIBS) \
84 $(top_builddir)/libempathy/libempathy.la
86 libempathy_gtk_la_LDFLAGS = \
87 -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE} \
88 -export-symbols-regex ^empathy_
90 libempathy_gtk_headers = \
91 empathy-account-chooser.h \
92 empathy-account-widget.h \
93 empathy-account-widget-irc.h \
94 empathy-account-widget-sip.h \
95 empathy-avatar-chooser.h \
96 empathy-avatar-image.h \
97 empathy-cell-renderer-activatable.h \
98 empathy-cell-renderer-expander.h \
99 empathy-cell-renderer-text.h \
101 empathy-chat-text-view.h \
102 empathy-chat-view.h \
104 empathy-contact-dialogs.h \
105 empathy-contact-list-store.h \
106 empathy-contact-list-view.h \
107 empathy-contact-menu.h \
108 empathy-share-my-desktop.h \
109 empathy-contact-selector.h \
110 empathy-contact-widget.h \
112 empathy-audio-sink.h \
113 empathy-audio-src.h \
114 empathy-video-src.h \
115 empathy-video-widget.h \
117 empathy-irc-network-dialog.h \
118 empathy-log-window.h \
119 empathy-new-message-dialog.h \
120 empathy-presence-chooser.h \
121 empathy-protocol-chooser.h \
122 empathy-smiley-manager.h \
125 empathy-status-preset-dialog.h \
126 empathy-theme-boxes.h \
127 empathy-theme-irc.h \
128 empathy-theme-manager.h \
129 empathy-kludge-label.h \
133 $(libempathy_gtk_handwritten_source) \
134 $(libempathy_gtk_headers)
135 include $(top_srcdir)/tools/check-coding-style.mk
136 check-local: check-coding-style
138 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
139 libempathy_gtk_include_HEADERS = \
140 $(libempathy_gtk_headers) \
141 empathy-gtk-enum-types.h
143 uidir = $(datadir)/empathy
145 empathy-contact-widget.ui \
146 empathy-contact-dialogs.ui \
147 empathy-account-widget-generic.ui \
148 empathy-account-widget-jabber.ui \
149 empathy-account-widget-msn.ui \
150 empathy-account-widget-sip.ui \
151 empathy-account-widget-local-xmpp.ui \
152 empathy-account-widget-irc.ui \
153 empathy-account-widget-icq.ui \
154 empathy-account-widget-yahoo.ui \
155 empathy-account-widget-groupwise.ui \
156 empathy-account-widget-aim.ui \
157 empathy-status-preset-dialog.ui \
158 empathy-log-window.ui \
160 empathy-new-message-dialog.ui
162 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
163 $(QUIET_GEN)( cd $(srcdir) && \
164 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
165 $(libempathy_gtk_la_SOURCES) ) \
166 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
167 if cmp -s $@.tmp $@; then \
173 %-marshal.h: %-marshal.list Makefile
174 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
176 %-marshal.c: %-marshal.list Makefile
177 $(QUIET_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
178 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
180 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
182 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
183 $(QUIET_GEN)(cd $(srcdir) \
185 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
186 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
187 --fhead "#include <glib-object.h>\n\n" \
188 --fhead "G_BEGIN_DECLS\n\n" \
189 --ftail "G_END_DECLS\n\n" \
190 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
191 --fprod "#include <libempathy-gtk/@filename@>\n" \
192 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
193 --eprod "GType @enum_name@_get_type (void);\n" \
194 $(libempathy_gtk_headers) ) > xgen-gth \
195 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
197 && echo timestamp > $(@F)
199 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
200 $(QUIET_GEN)(cd $(srcdir) \
202 --fhead "#include <config.h>\n" \
203 --fhead "#include <glib-object.h>\n" \
204 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
205 --fprod "\n/* enumerations from \"@filename@\" */" \
206 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
207 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
208 --vtail " { 0, NULL, NULL }\n};\n\n" \
209 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
210 --vtail " static GType type = 0;\n\n" \
211 --vtail " if (!type)\n" \
212 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
213 --vtail " return type;\n}\n\n" \
214 $(libempathy_gtk_headers) ) > xgen-gtc \
215 && cp xgen-gtc $(@F) \
218 pkgconfigdir = $(libdir)/pkgconfig
219 pkgconfig_DATA = libempathy-gtk.pc
225 libempathy_gtk_handwritten_source += \
226 empathy-location-manager.c
228 libempathy_gtk_headers += \
229 empathy-location-manager.h
232 empathy-location-manager.c \
233 empathy-location-manager.h
237 libempathy_gtk_handwritten_source += \
239 empathy-theme-adium.c
240 libempathy_gtk_headers += \
242 empathy-theme-adium.h
247 empathy-theme-adium.c \
248 empathy-theme-adium.h
253 stamp-empathy-gtk-enum-types.h