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