1 include $(top_srcdir)/tools/flymake.mk
5 -I$(top_srcdir)/libempathy \
6 -I$(top_srcdir)/extensions \
7 -DDATADIR=\""$(datadir)"\" \
8 -DPKGDATADIR=\""$(pkgdatadir)"\" \
9 -DGCR_API_SUBJECT_TO_CHANGE \
14 $(LIBCHAMPLAIN_CFLAGS) \
23 empathy-gtk-enum-types.h \
24 empathy-gtk-enum-types.c
26 libempathy_gtk_handwritten_source = \
27 empathy-account-chooser.c \
28 empathy-account-selector-dialog.c \
29 empathy-avatar-image.c \
30 empathy-bad-password-dialog.c \
31 empathy-base-password-dialog.c \
32 empathy-call-utils.c \
33 empathy-cell-renderer-activatable.c \
34 empathy-cell-renderer-expander.c \
35 empathy-cell-renderer-text.c \
37 empathy-contact-blocking-dialog.c \
38 empathy-contact-chooser.c \
39 empathy-contact-search-dialog.c \
40 empathy-contact-widget.c \
41 empathy-dialpad-widget.c \
42 empathy-dialpad-button.c \
44 empathy-groups-widget.c \
45 empathy-individual-dialogs.c \
46 empathy-individual-edit-dialog.c \
47 empathy-individual-information-dialog.c \
48 empathy-individual-menu.c \
49 empathy-individual-store.c \
50 empathy-individual-store-channel.c \
51 empathy-individual-store-manager.c \
52 empathy-individual-view.c \
53 empathy-individual-widget.c \
54 empathy-input-text-view.c \
55 empathy-local-xmpp-assistant-widget.c \
56 empathy-log-window.c \
57 empathy-new-account-dialog.c \
58 empathy-new-message-dialog.c \
59 empathy-new-call-dialog.c \
60 empathy-notify-manager.c \
61 empathy-password-dialog.c \
62 empathy-presence-chooser.c \
63 empathy-protocol-chooser.c \
64 empathy-roster-contact.c \
65 empathy-roster-group.c \
66 empathy-roster-model.c \
67 empathy-roster-model-aggregator.c \
68 empathy-roster-model-manager.c \
69 empathy-roster-view.c \
70 empathy-search-bar.c \
71 empathy-share-my-desktop.c \
72 empathy-smiley-manager.c \
73 empathy-sound-manager.c \
75 empathy-status-preset-dialog.c \
76 empathy-string-parser.c \
77 empathy-subscription-dialog.c \
78 empathy-theme-manager.c \
79 empathy-tls-dialog.c \
82 empathy-theme-adium.c \
83 empathy-webkit-utils.c \
86 libempathy_gtk_headers = \
87 empathy-account-chooser.h \
88 empathy-account-selector-dialog.h \
89 empathy-avatar-image.h \
90 empathy-bad-password-dialog.h \
91 empathy-base-password-dialog.h \
92 empathy-call-utils.h \
93 empathy-cell-renderer-activatable.h \
94 empathy-cell-renderer-expander.h \
95 empathy-cell-renderer-text.h \
97 empathy-contact-blocking-dialog.h \
98 empathy-contact-chooser.h \
99 empathy-contact-search-dialog.h \
100 empathy-contact-widget.h \
101 empathy-dialpad-widget.h \
102 empathy-dialpad-button.h \
104 empathy-groups-widget.h \
106 empathy-individual-dialogs.h \
107 empathy-individual-edit-dialog.h \
108 empathy-individual-information-dialog.h \
109 empathy-individual-menu.h \
110 empathy-individual-store.h \
111 empathy-individual-store-channel.h \
112 empathy-individual-store-manager.h \
113 empathy-individual-view.h \
114 empathy-individual-widget.h \
115 empathy-input-text-view.h \
116 empathy-local-xmpp-assistant-widget.h \
117 empathy-log-window.h \
118 empathy-new-account-dialog.h \
119 empathy-new-message-dialog.h \
120 empathy-new-call-dialog.h \
121 empathy-notify-manager.h \
122 empathy-password-dialog.h \
123 empathy-presence-chooser.h \
124 empathy-protocol-chooser.h \
125 empathy-roster-contact.h \
126 empathy-roster-group.h \
127 empathy-roster-model.h \
128 empathy-roster-model-aggregator.h \
129 empathy-roster-model-manager.h \
130 empathy-roster-view.h \
131 empathy-search-bar.h \
132 empathy-share-my-desktop.h \
133 empathy-smiley-manager.h \
134 empathy-sound-manager.h \
136 empathy-status-preset-dialog.h \
137 empathy-string-parser.h \
138 empathy-subscription-dialog.h \
139 empathy-theme-manager.h \
140 empathy-tls-dialog.h \
143 empathy-theme-adium.h \
144 empathy-webkit-utils.h \
147 pkglib_LTLIBRARIES = libempathy-gtk.la
149 # libempathy-gtk's API is not stable and will never be, so use -release to make the
150 # SONAME of the plugin library change with every Empathy release.
151 libempathy_gtk_la_LDFLAGS = \
153 -release $(VERSION) \
156 libempathy_gtk_la_SOURCES = \
157 $(libempathy_gtk_handwritten_source) \
158 $(libempathy_gtk_headers) \
161 # do not distribute generated files
162 nodist_libempathy_gtk_la_SOURCES =\
165 libempathy_gtk_la_LIBADD = \
173 $(LIBCHAMPLAIN_LIBS) \
179 $(top_builddir)/libempathy/libempathy.la
182 $(libempathy_gtk_handwritten_source) \
183 $(libempathy_gtk_headers)
184 include $(top_srcdir)/tools/check-coding-style.mk
185 check-local: check-coding-style
187 account_widgets_ui_files = \
188 empathy-account-widget-generic.ui \
189 empathy-account-widget-jabber.ui \
190 empathy-account-widget-msn.ui \
191 empathy-account-widget-sip.ui \
192 empathy-account-widget-local-xmpp.ui \
193 empathy-account-widget-irc.ui \
194 empathy-account-widget-icq.ui \
195 empathy-account-widget-yahoo.ui \
196 empathy-account-widget-groupwise.ui \
197 empathy-account-widget-aim.ui \
200 uidir = $(datadir)/empathy
202 empathy-contact-widget.ui \
203 empathy-contact-blocking-dialog.ui \
204 empathy-status-preset-dialog.ui \
205 empathy-log-window.ui \
207 empathy-search-bar.ui \
208 empathy-individual-widget.ui
210 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
212 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
213 $(AM_V_GEN)(cd $(srcdir) \
215 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
216 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
217 --fhead "#include <glib-object.h>\n\n" \
218 --fhead "G_BEGIN_DECLS\n\n" \
219 --ftail "G_END_DECLS\n\n" \
220 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
221 --fprod '#include "@filename@"\n' \
222 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
223 --eprod "GType @enum_name@_get_type (void);\n" \
224 $(libempathy_gtk_headers) ) > xgen-gth \
225 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
227 && echo timestamp > $(@F)
229 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
230 $(AM_V_GEN)(cd $(srcdir) \
232 --fhead "#include <config.h>\n" \
233 --fhead "#include <glib-object.h>\n" \
234 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
235 --fprod "\n/* enumerations from \"@filename@\" */" \
236 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
237 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
238 --vtail " { 0, NULL, NULL }\n};\n\n" \
239 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
240 --vtail " static GType type = 0;\n\n" \
241 --vtail " if (!type)\n" \
242 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
243 --vtail " return type;\n}\n\n" \
244 $(libempathy_gtk_headers) ) > xgen-gtc \
245 && cp xgen-gtc $(@F) \
252 geoclue-interface.c: geoclue-interface.h
253 geoclue-interface.h: Makefile.am
255 --interface-prefix org.freedesktop.GeoClue2. \
256 --c-namespace GClue \
257 --generate-c-code geoclue-interface \
261 geoclue-interface.h \
264 libempathy_gtk_handwritten_source += \
265 empathy-location-manager.c \
266 empathy-geoclue-helper.c
268 libempathy_gtk_headers += \
269 empathy-location-manager.h \
270 empathy-geoclue-helper.h
274 empathy-location-manager.c \
275 empathy-location-manager.h
280 stamp-empathy-gtk-enum-types.h