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-chooser.c \
33 empathy-avatar-image.c \
34 empathy-bad-password-dialog.c \
35 empathy-base-password-dialog.c \
36 empathy-calendar-button.c \
37 empathy-call-utils.c \
38 empathy-cell-renderer-activatable.c \
39 empathy-cell-renderer-expander.c \
40 empathy-cell-renderer-text.c \
42 empathy-contact-blocking-dialog.c \
43 empathy-contact-chooser.c \
44 empathy-contactinfo-utils.c \
45 empathy-contact-search-dialog.c \
46 empathy-contact-widget.c \
47 empathy-dialpad-widget.c \
48 empathy-dialpad-button.c \
50 empathy-groups-widget.c \
51 empathy-individual-dialogs.c \
52 empathy-individual-edit-dialog.c \
53 empathy-individual-information-dialog.c \
54 empathy-individual-menu.c \
55 empathy-individual-store.c \
56 empathy-individual-store-channel.c \
57 empathy-individual-store-manager.c \
58 empathy-individual-view.c \
59 empathy-individual-widget.c \
60 empathy-input-text-view.c \
61 empathy-local-xmpp-assistant-widget.c \
62 empathy-log-window.c \
63 empathy-new-account-dialog.c \
64 empathy-new-message-dialog.c \
65 empathy-new-call-dialog.c \
66 empathy-notify-manager.c \
67 empathy-password-dialog.c \
68 empathy-presence-chooser.c \
69 empathy-protocol-chooser.c \
70 empathy-roster-contact.c \
71 empathy-roster-group.c \
72 empathy-roster-model.c \
73 empathy-roster-model-aggregator.c \
74 empathy-roster-model-manager.c \
75 empathy-roster-view.c \
76 empathy-search-bar.c \
77 empathy-share-my-desktop.c \
78 empathy-smiley-manager.c \
79 empathy-sound-manager.c \
81 empathy-status-preset-dialog.c \
82 empathy-string-parser.c \
83 empathy-subscription-dialog.c \
84 empathy-theme-manager.c \
85 empathy-tls-dialog.c \
89 empathy-theme-adium.c \
90 empathy-webkit-utils.c \
93 libempathy_gtk_headers = \
94 empathy-account-chooser.h \
95 empathy-account-selector-dialog.h \
96 empathy-avatar-chooser.h \
97 empathy-avatar-image.h \
98 empathy-bad-password-dialog.h \
99 empathy-base-password-dialog.h \
100 empathy-calendar-button.h \
101 empathy-call-utils.h \
102 empathy-cell-renderer-activatable.h \
103 empathy-cell-renderer-expander.h \
104 empathy-cell-renderer-text.h \
106 empathy-contact-blocking-dialog.h \
107 empathy-contact-chooser.h \
108 empathy-contact-search-dialog.h \
109 empathy-contact-widget.h \
110 empathy-contactinfo-utils.h \
111 empathy-dialpad-widget.h \
112 empathy-dialpad-button.h \
114 empathy-groups-widget.h \
116 empathy-individual-dialogs.h \
117 empathy-individual-edit-dialog.h \
118 empathy-individual-information-dialog.h \
119 empathy-individual-menu.h \
120 empathy-individual-store.h \
121 empathy-individual-store-channel.h \
122 empathy-individual-store-manager.h \
123 empathy-individual-view.h \
124 empathy-individual-widget.h \
125 empathy-input-text-view.h \
126 empathy-local-xmpp-assistant-widget.h \
127 empathy-log-window.h \
128 empathy-new-account-dialog.h \
129 empathy-new-message-dialog.h \
130 empathy-new-call-dialog.h \
131 empathy-notify-manager.h \
132 empathy-password-dialog.h \
133 empathy-presence-chooser.h \
134 empathy-protocol-chooser.h \
135 empathy-roster-contact.h \
136 empathy-roster-group.h \
137 empathy-roster-model.h \
138 empathy-roster-model-aggregator.h \
139 empathy-roster-model-manager.h \
140 empathy-roster-view.h \
141 empathy-search-bar.h \
142 empathy-share-my-desktop.h \
143 empathy-smiley-manager.h \
144 empathy-sound-manager.h \
146 empathy-status-preset-dialog.h \
147 empathy-string-parser.h \
148 empathy-subscription-dialog.h \
149 empathy-theme-manager.h \
150 empathy-tls-dialog.h \
152 empathy-user-info.h \
154 empathy-theme-adium.h \
155 empathy-webkit-utils.h \
158 pkglib_LTLIBRARIES = libempathy-gtk.la
160 # libempathy-gtk's API is not stable and will never be, so use -release to make the
161 # SONAME of the plugin library change with every Empathy release.
162 libempathy_gtk_la_LDFLAGS = \
164 -release $(VERSION) \
167 libempathy_gtk_la_SOURCES = \
168 $(libempathy_gtk_handwritten_source) \
169 $(libempathy_gtk_headers) \
172 # do not distribute generated files
173 nodist_libempathy_gtk_la_SOURCES =\
176 libempathy_gtk_la_LIBADD = \
183 $(LIBCHAMPLAIN_LIBS) \
189 $(top_builddir)/tp-account-widgets/libtp-account-widgets.la \
190 $(top_builddir)/libempathy-gtk/egg-list-box/libegglistbox.la \
191 $(top_builddir)/libempathy/libempathy.la
194 $(libempathy_gtk_handwritten_source) \
195 $(libempathy_gtk_headers)
196 include $(top_srcdir)/tools/check-coding-style.mk
197 check-local: check-coding-style
199 account_widgets_ui_files = \
200 empathy-account-widget-generic.ui \
201 empathy-account-widget-jabber.ui \
202 empathy-account-widget-msn.ui \
203 empathy-account-widget-sip.ui \
204 empathy-account-widget-local-xmpp.ui \
205 empathy-account-widget-irc.ui \
206 empathy-account-widget-icq.ui \
207 empathy-account-widget-yahoo.ui \
208 empathy-account-widget-groupwise.ui \
209 empathy-account-widget-aim.ui \
212 uidir = $(datadir)/empathy
214 empathy-contact-widget.ui \
215 empathy-contact-blocking-dialog.ui \
216 empathy-status-preset-dialog.ui \
217 empathy-log-window.ui \
219 empathy-search-bar.ui \
220 empathy-individual-widget.ui
222 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
224 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
225 $(AM_V_GEN)(cd $(srcdir) \
227 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
228 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
229 --fhead "#include <glib-object.h>\n\n" \
230 --fhead "G_BEGIN_DECLS\n\n" \
231 --ftail "G_END_DECLS\n\n" \
232 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
233 --fprod '#include "@filename@"\n' \
234 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
235 --eprod "GType @enum_name@_get_type (void);\n" \
236 $(libempathy_gtk_headers) ) > xgen-gth \
237 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
239 && echo timestamp > $(@F)
241 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
242 $(AM_V_GEN)(cd $(srcdir) \
244 --fhead "#include <config.h>\n" \
245 --fhead "#include <glib-object.h>\n" \
246 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
247 --fprod "\n/* enumerations from \"@filename@\" */" \
248 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
249 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
250 --vtail " { 0, NULL, NULL }\n};\n\n" \
251 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
252 --vtail " static GType type = 0;\n\n" \
253 --vtail " if (!type)\n" \
254 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
255 --vtail " return type;\n}\n\n" \
256 $(libempathy_gtk_headers) ) > xgen-gtc \
257 && cp xgen-gtc $(@F) \
264 libempathy_gtk_handwritten_source += \
265 empathy-location-manager.c
267 libempathy_gtk_headers += \
268 empathy-location-manager.h
271 empathy-location-manager.c \
272 empathy-location-manager.h
277 stamp-empathy-gtk-enum-types.h