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) \
17 empathy-gtk-marshal.h \
18 empathy-gtk-marshal.c \
19 empathy-gtk-marshal.list \
20 empathy-gtk-enum-types.h \
21 empathy-gtk-enum-types.c
23 lib_LTLIBRARIES = libempathy-gtk.la
25 libempathy_gtk_handwritten_source = \
26 empathy-account-chooser.c \
27 empathy-account-widget.c \
28 empathy-account-widget-irc.c \
29 empathy-account-widget-sip.c \
30 empathy-avatar-chooser.c \
31 empathy-avatar-image.c \
32 empathy-cell-renderer-activatable.c \
33 empathy-cell-renderer-expander.c \
34 empathy-cell-renderer-text.c \
36 empathy-chat-text-view.c \
39 empathy-contact-dialogs.c \
40 empathy-contact-list-store.c \
41 empathy-contact-list-view.c \
42 empathy-contact-menu.c \
43 empathy-contact-selector.c \
44 empathy-contact-widget.c \
46 empathy-audio-sink.c \
49 empathy-video-widget.c \
50 empathy-irc-network-dialog.c \
51 empathy-log-window.c \
52 empathy-new-message-dialog.c \
53 empathy-presence-chooser.c \
54 empathy-profile-chooser.c \
55 empathy-smiley-manager.c \
57 empathy-status-preset-dialog.c \
58 empathy-theme-boxes.c \
60 empathy-theme-manager.c \
63 libempathy_gtk_la_SOURCES = \
64 $(libempathy_gtk_handwritten_source) \
65 totem-subtitle-encoding.c totem-subtitle-encoding.h
67 # do not distribute generated files
68 nodist_libempathy_gtk_la_SOURCES =\
71 libempathy_gtk_la_LIBADD = \
72 $(LIBEMPATHYGTK_LIBS) \
74 $(LIBCHAMPLAIN_LIBS) \
76 $(top_builddir)/libempathy/libempathy.la
78 libempathy_gtk_la_LDFLAGS = \
79 -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE} \
80 -export-symbols-regex ^empathy_
82 libempathy_gtk_headers = \
83 empathy-account-chooser.h \
84 empathy-account-widget.h \
85 empathy-account-widget-irc.h \
86 empathy-account-widget-sip.h \
87 empathy-avatar-chooser.h \
88 empathy-avatar-image.h \
89 empathy-cell-renderer-activatable.h \
90 empathy-cell-renderer-expander.h \
91 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-contact-selector.h \
101 empathy-contact-widget.h \
103 empathy-audio-sink.h \
104 empathy-audio-src.h \
105 empathy-video-src.h \
106 empathy-video-widget.h \
108 empathy-irc-network-dialog.h \
109 empathy-log-window.h \
110 empathy-new-message-dialog.h \
111 empathy-presence-chooser.h \
112 empathy-profile-chooser.h \
113 empathy-smiley-manager.h \
115 empathy-status-preset-dialog.h \
116 empathy-theme-boxes.h \
117 empathy-theme-irc.h \
118 empathy-theme-manager.h \
122 $(libempathy_gtk_handwritten_source) \
123 $(libempathy_gtk_headers)
124 include $(top_srcdir)/tools/check-coding-style.mk
125 check-local: check-coding-style
127 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
128 libempathy_gtk_include_HEADERS = \
129 $(libempathy_gtk_headers) \
130 empathy-gtk-enum-types.h
132 uidir = $(datadir)/empathy
134 empathy-contact-widget.ui \
135 empathy-contact-dialogs.ui \
136 empathy-account-widget-generic.ui \
137 empathy-account-widget-jabber.ui \
138 empathy-account-widget-msn.ui \
139 empathy-account-widget-sip.ui \
140 empathy-account-widget-salut.ui \
141 empathy-account-widget-irc.ui \
142 empathy-account-widget-icq.ui \
143 empathy-account-widget-yahoo.ui \
144 empathy-account-widget-groupwise.ui \
145 empathy-account-widget-aim.ui \
146 empathy-status-preset-dialog.ui \
147 empathy-log-window.ui \
149 empathy-new-message-dialog.ui
151 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
152 $(QUIET_GEN)( cd $(srcdir) && \
153 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
154 $(libempathy_gtk_la_SOURCES) ) \
155 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
156 if cmp -s $@.tmp $@; then \
162 %-marshal.h: %-marshal.list Makefile
163 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
165 %-marshal.c: %-marshal.list Makefile
166 $(QUIET_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
167 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
169 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
171 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
172 $(QUIET_GEN)(cd $(srcdir) \
174 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
175 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
176 --fhead "#include <glib-object.h>\n\n" \
177 --fhead "G_BEGIN_DECLS\n\n" \
178 --ftail "G_END_DECLS\n\n" \
179 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
180 --fprod "#include <libempathy-gtk/@filename@>\n" \
181 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
182 --eprod "GType @enum_name@_get_type (void);\n" \
183 $(libempathy_gtk_headers) ) > xgen-gth \
184 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
186 && echo timestamp > $(@F)
188 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
189 $(QUIET_GEN)(cd $(srcdir) \
191 --fhead "#include <config.h>\n" \
192 --fhead "#include <glib-object.h>\n" \
193 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
194 --fprod "\n/* enumerations from \"@filename@\" */" \
195 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
196 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
197 --vtail " { 0, NULL, NULL }\n};\n\n" \
198 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
199 --vtail " static GType type = 0;\n\n" \
200 --vtail " if (!type)\n" \
201 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
202 --vtail " return type;\n}\n\n" \
203 $(libempathy_gtk_headers) ) > xgen-gtc \
204 && cp xgen-gtc $(@F) \
207 pkgconfigdir = $(libdir)/pkgconfig
208 pkgconfig_DATA = libempathy-gtk.pc
214 libempathy_gtk_handwritten_source += \
215 empathy-location-manager.c
217 libempathy_gtk_headers += \
218 empathy-location-manager.h
221 empathy-location-manager.c \
222 empathy-location-manager.h
227 stamp-empathy-gtk-enum-types.h