]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
Add individual-store-channel
[empathy.git] / libempathy-gtk / Makefile.am
1 include $(top_srcdir)/tools/flymake.mk
2
3 AM_CPPFLAGS =                                           \
4         $(ERROR_CFLAGS)                                 \
5         -I.                                             \
6         -I$(top_srcdir)                                 \
7         -DDATADIR=\""$(datadir)"\"                      \
8         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
9         -DGCR_API_SUBJECT_TO_CHANGE                     \
10         $(EMPATHY_CFLAGS)                               \
11         $(YELL_CFLAGS)                                  \
12         $(ENCHANT_CFLAGS)                               \
13         $(LIBCHAMPLAIN_CFLAGS)                          \
14         $(GEOCLUE_CFLAGS)                               \
15         $(GEOCODE_CFLAGS)                               \
16         $(MEEGO_CFLAGS)                                 \
17         $(CHEESE_CFLAGS)                                \
18         $(WARN_CFLAGS)                                  \
19         $(DISABLE_DEPRECATED)
20
21 BUILT_SOURCES =                                         \
22         empathy-gtk-enum-types.h                        \
23         empathy-gtk-enum-types.c
24
25 noinst_LTLIBRARIES = libempathy-gtk.la
26
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                \
43         empathy-chat-view.c                     \
44         empathy-chat.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                \
57         empathy-geometry.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                 \
86         empathy-spell.c                         \
87         empathy-status-preset-dialog.c          \
88         empathy-string-parser.c                 \
89         empathy-theme-boxes.c                   \
90         empathy-theme-irc.c                     \
91         empathy-theme-manager.c                 \
92         empathy-tls-dialog.c                    \
93         empathy-ui-utils.c                      \
94         empathy-plist.c                         \
95         empathy-theme-adium.c                   \
96         empathy-webkit-utils.c                  \
97         $(NULL)
98
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                     \
115         empathy-chat.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                \
128         empathy-geometry.h                      \
129         empathy-groups-widget.h                 \
130         empathy-images.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                 \
158         empathy-spell.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                    \
165         empathy-ui-utils.h                      \
166         empathy-plist.h                         \
167         empathy-theme-adium.h                   \
168         empathy-webkit-utils.h                  \
169         $(NULL)
170
171
172 libempathy_gtk_la_SOURCES =                     \
173         $(libempathy_gtk_handwritten_source)    \
174         $(libempathy_gtk_headers)               \
175         totem-subtitle-encoding.c totem-subtitle-encoding.h
176
177 # do not distribute generated files
178 nodist_libempathy_gtk_la_SOURCES =\
179         $(BUILT_SOURCES)
180
181 libempathy_gtk_la_LIBADD =                      \
182         $(EMPATHY_LIBS)                 \
183         $(EMPATHY_LIBS)                 \
184         $(GTK_LIBS)                     \
185         $(LIBNOTIFY_LIBS)                       \
186         $(CANBERRA_LIBS) \
187         $(ENCHANT_LIBS)                         \
188         $(LIBCHAMPLAIN_LIBS)                    \
189         $(GEOCLUE_LIBS)                         \
190         $(GEOCODE_LIBS)                         \
191         $(GCR_LIBS)                             \
192         $(MEEGO_LIBS)                           \
193         $(CHEESE_LIBS)                          \
194         $(top_builddir)/libempathy/libempathy.la
195
196 check_c_sources = \
197     $(libempathy_gtk_handwritten_source) \
198     $(libempathy_gtk_headers)
199 include $(top_srcdir)/tools/check-coding-style.mk
200 check-local: check-coding-style
201
202 uidir = $(datadir)/empathy
203 ui_DATA =                                       \
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                   \
219         empathy-chat.ui                         \
220         empathy-search-bar.ui                   \
221         empathy-individual-widget.ui
222
223 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
224         $(AM_V_GEN)true
225 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
226         $(AM_V_GEN)(cd $(srcdir) \
227         && glib-mkenums \
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) \
239         && rm -f xgen-gth \
240         && echo timestamp > $(@F)
241
242 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
243         $(AM_V_GEN)(cd $(srcdir) \
244         && glib-mkenums \
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) \
259         && rm -f xgen-gtc
260
261 EXTRA_DIST =                    \
262         $(ui_DATA)
263
264 if HAVE_GEOCLUE
265 libempathy_gtk_handwritten_source +=            \
266         empathy-location-manager.c
267
268 libempathy_gtk_headers +=                       \
269         empathy-location-manager.h
270 else
271 EXTRA_DIST +=                                   \
272         empathy-location-manager.c              \
273         empathy-location-manager.h
274 endif
275
276 CLEANFILES =                            \
277         $(BUILT_SOURCES)                \
278         stamp-empathy-gtk-enum-types.h