3 include $(top_srcdir)/tools/flymake.mk
7 -I$(top_srcdir)/tp-account-widgets \
8 -I$(top_srcdir)/libempathy \
9 -I$(top_srcdir)/extensions \
10 -DDATADIR=\""$(datadir)"\" \
11 -DPKGDATADIR=\""$(pkgdatadir)"\" \
12 -DGCR_API_SUBJECT_TO_CHANGE \
16 $(LIBCHAMPLAIN_CFLAGS) \
21 $(EGGLISTBOX_CFLAGS) \
26 empathy-gtk-enum-types.h \
27 empathy-gtk-enum-types.c
29 libempathy_gtk_handwritten_source = \
30 empathy-account-chooser.c \
31 empathy-account-selector-dialog.c \
32 empathy-avatar-image.c \
33 empathy-bad-password-dialog.c \
34 empathy-base-password-dialog.c \
35 empathy-call-utils.c \
36 empathy-cell-renderer-activatable.c \
37 empathy-cell-renderer-expander.c \
38 empathy-cell-renderer-text.c \
40 empathy-contact-blocking-dialog.c \
41 empathy-contact-chooser.c \
42 empathy-contact-search-dialog.c \
43 empathy-contact-widget.c \
44 empathy-dialpad-widget.c \
45 empathy-dialpad-button.c \
47 empathy-groups-widget.c \
48 empathy-individual-dialogs.c \
49 empathy-individual-edit-dialog.c \
50 empathy-individual-information-dialog.c \
51 empathy-individual-menu.c \
52 empathy-individual-store.c \
53 empathy-individual-store-channel.c \
54 empathy-individual-store-manager.c \
55 empathy-individual-view.c \
56 empathy-individual-widget.c \
57 empathy-input-text-view.c \
58 empathy-local-xmpp-assistant-widget.c \
59 empathy-log-window.c \
60 empathy-new-account-dialog.c \
61 empathy-new-message-dialog.c \
62 empathy-new-call-dialog.c \
63 empathy-notify-manager.c \
64 empathy-password-dialog.c \
65 empathy-presence-chooser.c \
66 empathy-protocol-chooser.c \
67 empathy-roster-contact.c \
68 empathy-roster-group.c \
69 empathy-roster-model.c \
70 empathy-roster-model-aggregator.c \
71 empathy-roster-model-manager.c \
72 empathy-roster-view.c \
73 empathy-search-bar.c \
74 empathy-share-my-desktop.c \
75 empathy-smiley-manager.c \
76 empathy-sound-manager.c \
78 empathy-status-preset-dialog.c \
79 empathy-string-parser.c \
80 empathy-subscription-dialog.c \
81 empathy-theme-manager.c \
82 empathy-tls-dialog.c \
86 empathy-theme-adium.c \
87 empathy-webkit-utils.c \
90 libempathy_gtk_headers = \
91 empathy-account-chooser.h \
92 empathy-account-selector-dialog.h \
93 empathy-avatar-image.h \
94 empathy-bad-password-dialog.h \
95 empathy-base-password-dialog.h \
96 empathy-call-utils.h \
97 empathy-cell-renderer-activatable.h \
98 empathy-cell-renderer-expander.h \
99 empathy-cell-renderer-text.h \
101 empathy-contact-blocking-dialog.h \
102 empathy-contact-chooser.h \
103 empathy-contact-search-dialog.h \
104 empathy-contact-widget.h \
105 empathy-dialpad-widget.h \
106 empathy-dialpad-button.h \
108 empathy-groups-widget.h \
110 empathy-individual-dialogs.h \
111 empathy-individual-edit-dialog.h \
112 empathy-individual-information-dialog.h \
113 empathy-individual-menu.h \
114 empathy-individual-store.h \
115 empathy-individual-store-channel.h \
116 empathy-individual-store-manager.h \
117 empathy-individual-view.h \
118 empathy-individual-widget.h \
119 empathy-input-text-view.h \
120 empathy-local-xmpp-assistant-widget.h \
121 empathy-log-window.h \
122 empathy-new-account-dialog.h \
123 empathy-new-message-dialog.h \
124 empathy-new-call-dialog.h \
125 empathy-notify-manager.h \
126 empathy-password-dialog.h \
127 empathy-presence-chooser.h \
128 empathy-protocol-chooser.h \
129 empathy-roster-contact.h \
130 empathy-roster-group.h \
131 empathy-roster-model.h \
132 empathy-roster-model-aggregator.h \
133 empathy-roster-model-manager.h \
134 empathy-roster-view.h \
135 empathy-search-bar.h \
136 empathy-share-my-desktop.h \
137 empathy-smiley-manager.h \
138 empathy-sound-manager.h \
140 empathy-status-preset-dialog.h \
141 empathy-string-parser.h \
142 empathy-subscription-dialog.h \
143 empathy-theme-manager.h \
144 empathy-tls-dialog.h \
146 empathy-user-info.h \
148 empathy-theme-adium.h \
149 empathy-webkit-utils.h \
152 pkglib_LTLIBRARIES = libempathy-gtk.la
154 # libempathy-gtk's API is not stable and will never be, so use -release to make the
155 # SONAME of the plugin library change with every Empathy release.
156 libempathy_gtk_la_LDFLAGS = \
158 -release $(VERSION) \
161 libempathy_gtk_la_SOURCES = \
162 $(libempathy_gtk_handwritten_source) \
163 $(libempathy_gtk_headers) \
166 # do not distribute generated files
167 nodist_libempathy_gtk_la_SOURCES =\
170 libempathy_gtk_la_LIBADD = \
177 $(LIBCHAMPLAIN_LIBS) \
183 $(top_builddir)/tp-account-widgets/libtp-account-widgets.la \
184 $(top_builddir)/libempathy-gtk/egg-list-box/libegglistbox.la \
185 $(top_builddir)/libempathy/libempathy.la
188 $(libempathy_gtk_handwritten_source) \
189 $(libempathy_gtk_headers)
190 include $(top_srcdir)/tools/check-coding-style.mk
191 check-local: check-coding-style
193 account_widgets_ui_files = \
194 empathy-account-widget-generic.ui \
195 empathy-account-widget-jabber.ui \
196 empathy-account-widget-msn.ui \
197 empathy-account-widget-sip.ui \
198 empathy-account-widget-local-xmpp.ui \
199 empathy-account-widget-irc.ui \
200 empathy-account-widget-icq.ui \
201 empathy-account-widget-yahoo.ui \
202 empathy-account-widget-groupwise.ui \
203 empathy-account-widget-aim.ui \
206 uidir = $(datadir)/empathy
208 empathy-contact-widget.ui \
209 empathy-contact-blocking-dialog.ui \
210 empathy-status-preset-dialog.ui \
211 empathy-log-window.ui \
213 empathy-search-bar.ui \
214 empathy-individual-widget.ui
216 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
218 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
219 $(AM_V_GEN)(cd $(srcdir) \
221 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
222 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
223 --fhead "#include <glib-object.h>\n\n" \
224 --fhead "G_BEGIN_DECLS\n\n" \
225 --ftail "G_END_DECLS\n\n" \
226 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
227 --fprod '#include "@filename@"\n' \
228 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
229 --eprod "GType @enum_name@_get_type (void);\n" \
230 $(libempathy_gtk_headers) ) > xgen-gth \
231 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
233 && echo timestamp > $(@F)
235 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
236 $(AM_V_GEN)(cd $(srcdir) \
238 --fhead "#include <config.h>\n" \
239 --fhead "#include <glib-object.h>\n" \
240 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
241 --fprod "\n/* enumerations from \"@filename@\" */" \
242 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
243 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
244 --vtail " { 0, NULL, NULL }\n};\n\n" \
245 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
246 --vtail " static GType type = 0;\n\n" \
247 --vtail " if (!type)\n" \
248 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
249 --vtail " return type;\n}\n\n" \
250 $(libempathy_gtk_headers) ) > xgen-gtc \
251 && cp xgen-gtc $(@F) \
258 libempathy_gtk_handwritten_source += \
259 empathy-location-manager.c
261 libempathy_gtk_headers += \
262 empathy-location-manager.h
265 empathy-location-manager.c \
266 empathy-location-manager.h
271 stamp-empathy-gtk-enum-types.h