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-call-utils.c \
37 empathy-cell-renderer-activatable.c \
38 empathy-cell-renderer-expander.c \
39 empathy-cell-renderer-text.c \
40 empathy-chat-text-view.c \
43 empathy-contact-blocking-dialog.c \
44 empathy-contact-dialogs.c \
45 empathy-contact-chooser.c \
46 empathy-contact-list-store.c \
47 empathy-contact-list-view.c \
48 empathy-contact-menu.c \
49 empathy-linking-dialog.c \
50 empathy-live-search.c \
51 empathy-contact-search-dialog.c \
52 empathy-contact-selector.c \
53 empathy-contact-selector-dialog.c \
54 empathy-contact-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-view.c \
64 empathy-individual-widget.c \
65 empathy-input-text-view.c \
66 empathy-irc-network-chooser.c \
67 empathy-irc-network-chooser-dialog.c \
68 empathy-irc-network-dialog.c \
69 empathy-log-window.c \
70 empathy-new-message-dialog.c \
71 empathy-new-call-dialog.c \
72 empathy-notify-manager.c \
73 empathy-password-dialog.c \
74 empathy-persona-store.c \
75 empathy-persona-view.c \
76 empathy-presence-chooser.c \
77 empathy-protocol-chooser.c \
78 empathy-search-bar.c \
79 empathy-share-my-desktop.c \
80 empathy-smiley-manager.c \
81 empathy-sound-manager.c \
83 empathy-status-preset-dialog.c \
84 empathy-string-parser.c \
85 empathy-theme-boxes.c \
87 empathy-theme-manager.c \
88 empathy-tls-dialog.c \
91 empathy-theme-adium.c \
92 empathy-webkit-utils.c \
95 libempathy_gtk_headers = \
96 empathy-account-chooser.h \
97 empathy-account-selector-dialog.h \
98 empathy-account-widget-irc.h \
99 empathy-account-widget-sip.h \
100 empathy-account-widget.h \
101 empathy-avatar-chooser.h \
102 empathy-avatar-image.h \
103 empathy-call-utils.h \
104 empathy-cell-renderer-activatable.h \
105 empathy-cell-renderer-expander.h \
106 empathy-cell-renderer-text.h \
107 empathy-chat-text-view.h \
108 empathy-chat-view.h \
110 empathy-contact-blocking-dialog.h \
111 empathy-contact-dialogs.h \
112 empathy-contact-chooser.h \
113 empathy-contact-list-store.h \
114 empathy-contact-list-view.h \
115 empathy-contact-menu.h \
116 empathy-linking-dialog.h \
117 empathy-live-search.h \
118 empathy-contact-search-dialog.h \
119 empathy-contact-selector.h \
120 empathy-contact-selector-dialog.h \
121 empathy-contact-widget.h \
123 empathy-groups-widget.h \
125 empathy-individual-dialogs.h \
126 empathy-individual-edit-dialog.h \
127 empathy-individual-information-dialog.h \
128 empathy-individual-linker.h \
129 empathy-individual-menu.h \
130 empathy-individual-store.h \
131 empathy-individual-view.h \
132 empathy-individual-widget.h \
133 empathy-input-text-view.h \
134 empathy-irc-network-chooser.h \
135 empathy-irc-network-chooser-dialog.h \
136 empathy-irc-network-dialog.h \
137 empathy-log-window.h \
138 empathy-new-message-dialog.h \
139 empathy-new-call-dialog.h \
140 empathy-notify-manager.h \
141 empathy-password-dialog.h \
142 empathy-persona-store.h \
143 empathy-persona-view.h \
144 empathy-presence-chooser.h \
145 empathy-protocol-chooser.h \
146 empathy-search-bar.h \
147 empathy-share-my-desktop.h \
148 empathy-smiley-manager.h \
149 empathy-sound-manager.h \
151 empathy-status-preset-dialog.h \
152 empathy-string-parser.h \
153 empathy-theme-boxes.h \
154 empathy-theme-irc.h \
155 empathy-theme-manager.h \
156 empathy-tls-dialog.h \
159 empathy-theme-adium.h \
160 empathy-webkit-utils.h \
164 libempathy_gtk_la_SOURCES = \
165 $(libempathy_gtk_handwritten_source) \
166 $(libempathy_gtk_headers) \
167 totem-subtitle-encoding.c totem-subtitle-encoding.h
169 # do not distribute generated files
170 nodist_libempathy_gtk_la_SOURCES =\
173 libempathy_gtk_la_LIBADD = \
180 $(LIBCHAMPLAIN_LIBS) \
186 $(top_builddir)/libempathy/libempathy.la
189 $(libempathy_gtk_handwritten_source) \
190 $(libempathy_gtk_headers)
191 include $(top_srcdir)/tools/check-coding-style.mk
192 check-local: check-coding-style
194 uidir = $(datadir)/empathy
196 empathy-contact-widget.ui \
197 empathy-contact-dialogs.ui \
198 empathy-contact-blocking-dialog.ui \
199 empathy-account-widget-generic.ui \
200 empathy-account-widget-jabber.ui \
201 empathy-account-widget-msn.ui \
202 empathy-account-widget-sip.ui \
203 empathy-account-widget-local-xmpp.ui \
204 empathy-account-widget-irc.ui \
205 empathy-account-widget-icq.ui \
206 empathy-account-widget-yahoo.ui \
207 empathy-account-widget-groupwise.ui \
208 empathy-account-widget-aim.ui \
209 empathy-status-preset-dialog.ui \
210 empathy-log-window.ui \
212 empathy-contact-selector-dialog.ui \
213 empathy-search-bar.ui \
214 empathy-individual-widget.ui
216 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
218 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
219 $(AM_V_GEN)(cd $(srcdir) \
221 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
222 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
223 --fhead "#include <glib-object.h>\n\n" \
224 --fhead "G_BEGIN_DECLS\n\n" \
225 --ftail "G_END_DECLS\n\n" \
226 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
227 --fprod "#include <libempathy-gtk/@filename@>\n" \
228 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
229 --eprod "GType @enum_name@_get_type (void);\n" \
230 $(libempathy_gtk_headers) ) > xgen-gth \
231 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
233 && echo timestamp > $(@F)
235 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
236 $(AM_V_GEN)(cd $(srcdir) \
238 --fhead "#include <config.h>\n" \
239 --fhead "#include <glib-object.h>\n" \
240 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
241 --fprod "\n/* enumerations from \"@filename@\" */" \
242 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
243 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
244 --vtail " { 0, NULL, NULL }\n};\n\n" \
245 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
246 --vtail " static GType type = 0;\n\n" \
247 --vtail " if (!type)\n" \
248 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
249 --vtail " return type;\n}\n\n" \
250 $(libempathy_gtk_headers) ) > xgen-gtc \
251 && cp xgen-gtc $(@F) \
258 libempathy_gtk_handwritten_source += \
259 empathy-location-manager.c
261 libempathy_gtk_headers += \
262 empathy-location-manager.h
265 empathy-location-manager.c \
266 empathy-location-manager.h
271 stamp-empathy-gtk-enum-types.h