1 include $(top_srcdir)/tools/flymake.mk
7 -DDATADIR=\""$(datadir)"\" \
8 -DPKGDATADIR=\""$(pkgdatadir)"\" \
9 -DGCR_API_SUBJECT_TO_CHANGE \
13 $(LIBCHAMPLAIN_CFLAGS) \
22 empathy-gtk-enum-types.h \
23 empathy-gtk-enum-types.c
25 noinst_LTLIBRARIES = libempathy-gtk.la
27 libempathy_gtk_handwritten_source = \
28 empathy-account-chooser.c \
29 empathy-account-selector-dialog.c \
30 empathy-account-widget-irc.c \
31 empathy-account-widget-private.h \
32 empathy-account-widget-sip.c \
33 empathy-account-widget.c \
34 empathy-avatar-chooser.c \
35 empathy-avatar-image.c \
36 empathy-bad-password-dialog.c \
37 empathy-base-password-dialog.c \
38 empathy-call-utils.c \
39 empathy-cell-renderer-activatable.c \
40 empathy-cell-renderer-expander.c \
41 empathy-cell-renderer-text.c \
42 empathy-chat-text-view.c \
45 empathy-contact-blocking-dialog.c \
46 empathy-contact-dialogs.c \
47 empathy-contact-chooser.c \
48 empathy-contact-menu.c \
49 empathy-contactinfo-utils.c \
50 empathy-linking-dialog.c \
51 empathy-live-search.c \
52 empathy-contact-search-dialog.c \
53 empathy-contact-widget.c \
54 empathy-dialpad-widget.c \
56 empathy-groups-widget.c \
57 empathy-individual-dialogs.c \
58 empathy-individual-edit-dialog.c \
59 empathy-individual-information-dialog.c \
60 empathy-individual-linker.c \
61 empathy-individual-menu.c \
62 empathy-individual-store.c \
63 empathy-individual-store-channel.c \
64 empathy-individual-store-manager.c \
65 empathy-individual-view.c \
66 empathy-individual-widget.c \
67 empathy-input-text-view.c \
68 empathy-irc-network-chooser.c \
69 empathy-irc-network-chooser-dialog.c \
70 empathy-irc-network-dialog.c \
71 empathy-log-window.c \
72 empathy-new-message-dialog.c \
73 empathy-new-call-dialog.c \
74 empathy-notify-manager.c \
75 empathy-password-dialog.c \
76 empathy-persona-store.c \
77 empathy-persona-view.c \
78 empathy-presence-chooser.c \
79 empathy-protocol-chooser.c \
80 empathy-search-bar.c \
81 empathy-share-my-desktop.c \
82 empathy-smiley-manager.c \
83 empathy-sound-manager.c \
85 empathy-status-preset-dialog.c \
86 empathy-string-parser.c \
87 empathy-theme-boxes.c \
89 empathy-theme-manager.c \
90 empathy-tls-dialog.c \
93 empathy-theme-adium.c \
94 empathy-webkit-utils.c \
97 libempathy_gtk_headers = \
98 empathy-account-chooser.h \
99 empathy-account-selector-dialog.h \
100 empathy-account-widget-irc.h \
101 empathy-account-widget-sip.h \
102 empathy-account-widget.h \
103 empathy-avatar-chooser.h \
104 empathy-avatar-image.h \
105 empathy-bad-password-dialog.h \
106 empathy-base-password-dialog.h \
107 empathy-call-utils.h \
108 empathy-cell-renderer-activatable.h \
109 empathy-cell-renderer-expander.h \
110 empathy-cell-renderer-text.h \
111 empathy-chat-text-view.h \
112 empathy-chat-view.h \
114 empathy-contact-blocking-dialog.h \
115 empathy-contact-dialogs.h \
116 empathy-contact-chooser.h \
117 empathy-contact-menu.h \
118 empathy-linking-dialog.h \
119 empathy-live-search.h \
120 empathy-contact-search-dialog.h \
121 empathy-contact-widget.h \
122 empathy-contactinfo-utils.h \
123 empathy-dialpad-widget.h \
125 empathy-groups-widget.h \
127 empathy-individual-dialogs.h \
128 empathy-individual-edit-dialog.h \
129 empathy-individual-information-dialog.h \
130 empathy-individual-linker.h \
131 empathy-individual-menu.h \
132 empathy-individual-store.h \
133 empathy-individual-store-channel.h \
134 empathy-individual-store-manager.h \
135 empathy-individual-view.h \
136 empathy-individual-widget.h \
137 empathy-input-text-view.h \
138 empathy-irc-network-chooser.h \
139 empathy-irc-network-chooser-dialog.h \
140 empathy-irc-network-dialog.h \
141 empathy-log-window.h \
142 empathy-new-message-dialog.h \
143 empathy-new-call-dialog.h \
144 empathy-notify-manager.h \
145 empathy-password-dialog.h \
146 empathy-persona-store.h \
147 empathy-persona-view.h \
148 empathy-presence-chooser.h \
149 empathy-protocol-chooser.h \
150 empathy-search-bar.h \
151 empathy-share-my-desktop.h \
152 empathy-smiley-manager.h \
153 empathy-sound-manager.h \
155 empathy-status-preset-dialog.h \
156 empathy-string-parser.h \
157 empathy-theme-boxes.h \
158 empathy-theme-irc.h \
159 empathy-theme-manager.h \
160 empathy-tls-dialog.h \
163 empathy-theme-adium.h \
164 empathy-webkit-utils.h \
168 libempathy_gtk_la_SOURCES = \
169 $(libempathy_gtk_handwritten_source) \
170 $(libempathy_gtk_headers) \
171 totem-subtitle-encoding.c totem-subtitle-encoding.h
173 # do not distribute generated files
174 nodist_libempathy_gtk_la_SOURCES =\
177 libempathy_gtk_la_LIBADD = \
184 $(LIBCHAMPLAIN_LIBS) \
190 $(top_builddir)/libempathy/libempathy.la
193 $(libempathy_gtk_handwritten_source) \
194 $(libempathy_gtk_headers)
195 include $(top_srcdir)/tools/check-coding-style.mk
196 check-local: check-coding-style
198 uidir = $(datadir)/empathy
200 empathy-contact-widget.ui \
201 empathy-contact-dialogs.ui \
202 empathy-contact-blocking-dialog.ui \
203 empathy-account-widget-generic.ui \
204 empathy-account-widget-jabber.ui \
205 empathy-account-widget-msn.ui \
206 empathy-account-widget-sip.ui \
207 empathy-account-widget-local-xmpp.ui \
208 empathy-account-widget-irc.ui \
209 empathy-account-widget-icq.ui \
210 empathy-account-widget-yahoo.ui \
211 empathy-account-widget-groupwise.ui \
212 empathy-account-widget-aim.ui \
213 empathy-status-preset-dialog.ui \
214 empathy-log-window.ui \
216 empathy-search-bar.ui \
217 empathy-individual-widget.ui
219 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
221 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
222 $(AM_V_GEN)(cd $(srcdir) \
224 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
225 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
226 --fhead "#include <glib-object.h>\n\n" \
227 --fhead "G_BEGIN_DECLS\n\n" \
228 --ftail "G_END_DECLS\n\n" \
229 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
230 --fprod "#include <libempathy-gtk/@filename@>\n" \
231 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
232 --eprod "GType @enum_name@_get_type (void);\n" \
233 $(libempathy_gtk_headers) ) > xgen-gth \
234 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
236 && echo timestamp > $(@F)
238 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
239 $(AM_V_GEN)(cd $(srcdir) \
241 --fhead "#include <config.h>\n" \
242 --fhead "#include <glib-object.h>\n" \
243 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
244 --fprod "\n/* enumerations from \"@filename@\" */" \
245 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
246 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
247 --vtail " { 0, NULL, NULL }\n};\n\n" \
248 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
249 --vtail " static GType type = 0;\n\n" \
250 --vtail " if (!type)\n" \
251 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
252 --vtail " return type;\n}\n\n" \
253 $(libempathy_gtk_headers) ) > xgen-gtc \
254 && cp xgen-gtc $(@F) \
261 libempathy_gtk_handwritten_source += \
262 empathy-location-manager.c
264 libempathy_gtk_headers += \
265 empathy-location-manager.h
268 empathy-location-manager.c \
269 empathy-location-manager.h
274 stamp-empathy-gtk-enum-types.h