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) \
19 $(EGGLISTBOX_CFLAGS) \
24 empathy-gtk-enum-types.h \
25 empathy-gtk-enum-types.c
27 libempathy_gtk_handwritten_source = \
28 empathy-account-chooser.c \
29 empathy-account-selector-dialog.c \
30 empathy-avatar-image.c \
31 empathy-bad-password-dialog.c \
32 empathy-base-password-dialog.c \
33 empathy-call-utils.c \
34 empathy-cell-renderer-activatable.c \
35 empathy-cell-renderer-expander.c \
36 empathy-cell-renderer-text.c \
38 empathy-contact-blocking-dialog.c \
39 empathy-contact-chooser.c \
40 empathy-contact-search-dialog.c \
41 empathy-contact-widget.c \
42 empathy-dialpad-widget.c \
43 empathy-dialpad-button.c \
45 empathy-groups-widget.c \
46 empathy-individual-dialogs.c \
47 empathy-individual-edit-dialog.c \
48 empathy-individual-information-dialog.c \
49 empathy-individual-menu.c \
50 empathy-individual-store.c \
51 empathy-individual-store-channel.c \
52 empathy-individual-store-manager.c \
53 empathy-individual-view.c \
54 empathy-individual-widget.c \
55 empathy-input-text-view.c \
56 empathy-local-xmpp-assistant-widget.c \
57 empathy-log-window.c \
58 empathy-new-account-dialog.c \
59 empathy-new-message-dialog.c \
60 empathy-new-call-dialog.c \
61 empathy-notify-manager.c \
62 empathy-password-dialog.c \
63 empathy-presence-chooser.c \
64 empathy-protocol-chooser.c \
65 empathy-roster-contact.c \
66 empathy-roster-group.c \
67 empathy-roster-model.c \
68 empathy-roster-model-aggregator.c \
69 empathy-roster-model-manager.c \
70 empathy-roster-view.c \
71 empathy-search-bar.c \
72 empathy-share-my-desktop.c \
73 empathy-smiley-manager.c \
74 empathy-sound-manager.c \
76 empathy-status-preset-dialog.c \
77 empathy-string-parser.c \
78 empathy-subscription-dialog.c \
79 empathy-theme-manager.c \
80 empathy-tls-dialog.c \
83 empathy-theme-adium.c \
84 empathy-webkit-utils.c \
87 libempathy_gtk_headers = \
88 empathy-account-chooser.h \
89 empathy-account-selector-dialog.h \
90 empathy-avatar-image.h \
91 empathy-bad-password-dialog.h \
92 empathy-base-password-dialog.h \
93 empathy-call-utils.h \
94 empathy-cell-renderer-activatable.h \
95 empathy-cell-renderer-expander.h \
96 empathy-cell-renderer-text.h \
98 empathy-contact-blocking-dialog.h \
99 empathy-contact-chooser.h \
100 empathy-contact-search-dialog.h \
101 empathy-contact-widget.h \
102 empathy-dialpad-widget.h \
103 empathy-dialpad-button.h \
105 empathy-groups-widget.h \
107 empathy-individual-dialogs.h \
108 empathy-individual-edit-dialog.h \
109 empathy-individual-information-dialog.h \
110 empathy-individual-menu.h \
111 empathy-individual-store.h \
112 empathy-individual-store-channel.h \
113 empathy-individual-store-manager.h \
114 empathy-individual-view.h \
115 empathy-individual-widget.h \
116 empathy-input-text-view.h \
117 empathy-local-xmpp-assistant-widget.h \
118 empathy-log-window.h \
119 empathy-new-account-dialog.h \
120 empathy-new-message-dialog.h \
121 empathy-new-call-dialog.h \
122 empathy-notify-manager.h \
123 empathy-password-dialog.h \
124 empathy-presence-chooser.h \
125 empathy-protocol-chooser.h \
126 empathy-roster-contact.h \
127 empathy-roster-group.h \
128 empathy-roster-model.h \
129 empathy-roster-model-aggregator.h \
130 empathy-roster-model-manager.h \
131 empathy-roster-view.h \
132 empathy-search-bar.h \
133 empathy-share-my-desktop.h \
134 empathy-smiley-manager.h \
135 empathy-sound-manager.h \
137 empathy-status-preset-dialog.h \
138 empathy-string-parser.h \
139 empathy-subscription-dialog.h \
140 empathy-theme-manager.h \
141 empathy-tls-dialog.h \
144 empathy-theme-adium.h \
145 empathy-webkit-utils.h \
148 pkglib_LTLIBRARIES = libempathy-gtk.la
150 # libempathy-gtk's API is not stable and will never be, so use -release to make the
151 # SONAME of the plugin library change with every Empathy release.
152 libempathy_gtk_la_LDFLAGS = \
154 -release $(VERSION) \
157 libempathy_gtk_la_SOURCES = \
158 $(libempathy_gtk_handwritten_source) \
159 $(libempathy_gtk_headers) \
162 # do not distribute generated files
163 nodist_libempathy_gtk_la_SOURCES =\
166 libempathy_gtk_la_LIBADD = \
174 $(LIBCHAMPLAIN_LIBS) \
180 $(top_builddir)/libempathy/libempathy.la
183 $(libempathy_gtk_handwritten_source) \
184 $(libempathy_gtk_headers)
185 include $(top_srcdir)/tools/check-coding-style.mk
186 check-local: check-coding-style
188 account_widgets_ui_files = \
189 empathy-account-widget-generic.ui \
190 empathy-account-widget-jabber.ui \
191 empathy-account-widget-msn.ui \
192 empathy-account-widget-sip.ui \
193 empathy-account-widget-local-xmpp.ui \
194 empathy-account-widget-irc.ui \
195 empathy-account-widget-icq.ui \
196 empathy-account-widget-yahoo.ui \
197 empathy-account-widget-groupwise.ui \
198 empathy-account-widget-aim.ui \
201 uidir = $(datadir)/empathy
203 empathy-contact-widget.ui \
204 empathy-contact-blocking-dialog.ui \
205 empathy-status-preset-dialog.ui \
206 empathy-log-window.ui \
208 empathy-search-bar.ui \
209 empathy-individual-widget.ui
211 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
213 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
214 $(AM_V_GEN)(cd $(srcdir) \
216 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
217 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
218 --fhead "#include <glib-object.h>\n\n" \
219 --fhead "G_BEGIN_DECLS\n\n" \
220 --ftail "G_END_DECLS\n\n" \
221 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
222 --fprod '#include "@filename@"\n' \
223 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
224 --eprod "GType @enum_name@_get_type (void);\n" \
225 $(libempathy_gtk_headers) ) > xgen-gth \
226 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
228 && echo timestamp > $(@F)
230 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
231 $(AM_V_GEN)(cd $(srcdir) \
233 --fhead "#include <config.h>\n" \
234 --fhead "#include <glib-object.h>\n" \
235 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
236 --fprod "\n/* enumerations from \"@filename@\" */" \
237 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
238 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
239 --vtail " { 0, NULL, NULL }\n};\n\n" \
240 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
241 --vtail " static GType type = 0;\n\n" \
242 --vtail " if (!type)\n" \
243 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
244 --vtail " return type;\n}\n\n" \
245 $(libempathy_gtk_headers) ) > xgen-gtc \
246 && cp xgen-gtc $(@F) \
253 geoclue-interface.c: geoclue-interface.h
254 geoclue-interface.h: Makefile.am
256 --interface-prefix org.freedesktop.GeoClue2. \
257 --c-namespace GClue \
258 --generate-c-code geoclue-interface \
262 geoclue-interface.h \
265 libempathy_gtk_handwritten_source += \
266 empathy-location-manager.c \
267 empathy-geoclue-helper.c
269 libempathy_gtk_headers += \
270 empathy-location-manager.h \
271 empathy-geoclue-helper.h
275 empathy-location-manager.c \
276 empathy-location-manager.h
281 stamp-empathy-gtk-enum-types.h