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-list-store.c \
49 empathy-contact-list-view.c \
50 empathy-contact-menu.c \
51 empathy-contactinfo-utils.c \
52 empathy-linking-dialog.c \
53 empathy-live-search.c \
54 empathy-contact-search-dialog.c \
55 empathy-contact-widget.c \
56 empathy-dialpad-widget.c \
58 empathy-groups-widget.c \
59 empathy-individual-dialogs.c \
60 empathy-individual-edit-dialog.c \
61 empathy-individual-information-dialog.c \
62 empathy-individual-linker.c \
63 empathy-individual-menu.c \
64 empathy-individual-store.c \
65 empathy-individual-store-channel.c \
66 empathy-individual-store-manager.c \
67 empathy-individual-view.c \
68 empathy-individual-widget.c \
69 empathy-input-text-view.c \
70 empathy-irc-network-chooser.c \
71 empathy-irc-network-chooser-dialog.c \
72 empathy-irc-network-dialog.c \
73 empathy-log-window.c \
74 empathy-new-message-dialog.c \
75 empathy-new-call-dialog.c \
76 empathy-notify-manager.c \
77 empathy-password-dialog.c \
78 empathy-persona-store.c \
79 empathy-persona-view.c \
80 empathy-presence-chooser.c \
81 empathy-protocol-chooser.c \
82 empathy-search-bar.c \
83 empathy-share-my-desktop.c \
84 empathy-smiley-manager.c \
85 empathy-sound-manager.c \
87 empathy-status-preset-dialog.c \
88 empathy-string-parser.c \
89 empathy-theme-boxes.c \
91 empathy-theme-manager.c \
92 empathy-tls-dialog.c \
95 empathy-theme-adium.c \
96 empathy-webkit-utils.c \
99 libempathy_gtk_headers = \
100 empathy-account-chooser.h \
101 empathy-account-selector-dialog.h \
102 empathy-account-widget-irc.h \
103 empathy-account-widget-sip.h \
104 empathy-account-widget.h \
105 empathy-avatar-chooser.h \
106 empathy-avatar-image.h \
107 empathy-bad-password-dialog.h \
108 empathy-base-password-dialog.h \
109 empathy-call-utils.h \
110 empathy-cell-renderer-activatable.h \
111 empathy-cell-renderer-expander.h \
112 empathy-cell-renderer-text.h \
113 empathy-chat-text-view.h \
114 empathy-chat-view.h \
116 empathy-contact-blocking-dialog.h \
117 empathy-contact-dialogs.h \
118 empathy-contact-chooser.h \
119 empathy-contact-list-store.h \
120 empathy-contact-list-view.h \
121 empathy-contact-menu.h \
122 empathy-linking-dialog.h \
123 empathy-live-search.h \
124 empathy-contact-search-dialog.h \
125 empathy-contact-widget.h \
126 empathy-contactinfo-utils.h \
127 empathy-dialpad-widget.h \
129 empathy-groups-widget.h \
131 empathy-individual-dialogs.h \
132 empathy-individual-edit-dialog.h \
133 empathy-individual-information-dialog.h \
134 empathy-individual-linker.h \
135 empathy-individual-menu.h \
136 empathy-individual-store.h \
137 empathy-individual-store-channel.h \
138 empathy-individual-store-manager.h \
139 empathy-individual-view.h \
140 empathy-individual-widget.h \
141 empathy-input-text-view.h \
142 empathy-irc-network-chooser.h \
143 empathy-irc-network-chooser-dialog.h \
144 empathy-irc-network-dialog.h \
145 empathy-log-window.h \
146 empathy-new-message-dialog.h \
147 empathy-new-call-dialog.h \
148 empathy-notify-manager.h \
149 empathy-password-dialog.h \
150 empathy-persona-store.h \
151 empathy-persona-view.h \
152 empathy-presence-chooser.h \
153 empathy-protocol-chooser.h \
154 empathy-search-bar.h \
155 empathy-share-my-desktop.h \
156 empathy-smiley-manager.h \
157 empathy-sound-manager.h \
159 empathy-status-preset-dialog.h \
160 empathy-string-parser.h \
161 empathy-theme-boxes.h \
162 empathy-theme-irc.h \
163 empathy-theme-manager.h \
164 empathy-tls-dialog.h \
167 empathy-theme-adium.h \
168 empathy-webkit-utils.h \
172 libempathy_gtk_la_SOURCES = \
173 $(libempathy_gtk_handwritten_source) \
174 $(libempathy_gtk_headers) \
175 totem-subtitle-encoding.c totem-subtitle-encoding.h
177 # do not distribute generated files
178 nodist_libempathy_gtk_la_SOURCES =\
181 libempathy_gtk_la_LIBADD = \
188 $(LIBCHAMPLAIN_LIBS) \
194 $(top_builddir)/libempathy/libempathy.la
197 $(libempathy_gtk_handwritten_source) \
198 $(libempathy_gtk_headers)
199 include $(top_srcdir)/tools/check-coding-style.mk
200 check-local: check-coding-style
202 uidir = $(datadir)/empathy
204 empathy-contact-widget.ui \
205 empathy-contact-dialogs.ui \
206 empathy-contact-blocking-dialog.ui \
207 empathy-account-widget-generic.ui \
208 empathy-account-widget-jabber.ui \
209 empathy-account-widget-msn.ui \
210 empathy-account-widget-sip.ui \
211 empathy-account-widget-local-xmpp.ui \
212 empathy-account-widget-irc.ui \
213 empathy-account-widget-icq.ui \
214 empathy-account-widget-yahoo.ui \
215 empathy-account-widget-groupwise.ui \
216 empathy-account-widget-aim.ui \
217 empathy-status-preset-dialog.ui \
218 empathy-log-window.ui \
220 empathy-search-bar.ui \
221 empathy-individual-widget.ui
223 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
225 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
226 $(AM_V_GEN)(cd $(srcdir) \
228 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
229 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
230 --fhead "#include <glib-object.h>\n\n" \
231 --fhead "G_BEGIN_DECLS\n\n" \
232 --ftail "G_END_DECLS\n\n" \
233 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
234 --fprod "#include <libempathy-gtk/@filename@>\n" \
235 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
236 --eprod "GType @enum_name@_get_type (void);\n" \
237 $(libempathy_gtk_headers) ) > xgen-gth \
238 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
240 && echo timestamp > $(@F)
242 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
243 $(AM_V_GEN)(cd $(srcdir) \
245 --fhead "#include <config.h>\n" \
246 --fhead "#include <glib-object.h>\n" \
247 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
248 --fprod "\n/* enumerations from \"@filename@\" */" \
249 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
250 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
251 --vtail " { 0, NULL, NULL }\n};\n\n" \
252 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
253 --vtail " static GType type = 0;\n\n" \
254 --vtail " if (!type)\n" \
255 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
256 --vtail " return type;\n}\n\n" \
257 $(libempathy_gtk_headers) ) > xgen-gtc \
258 && cp xgen-gtc $(@F) \
265 libempathy_gtk_handwritten_source += \
266 empathy-location-manager.c
268 libempathy_gtk_headers += \
269 empathy-location-manager.h
272 empathy-location-manager.c \
273 empathy-location-manager.h
278 stamp-empathy-gtk-enum-types.h