]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
add empathy-irc-network-chooser
[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         $(GTK_CFLAGS)                           \
12         $(LIBNOTIFY_CFLAGS)                             \
13         $(CANBERRA_CFLAGS) \
14         $(ENCHANT_CFLAGS)                               \
15         $(LIBCHAMPLAIN_CFLAGS)                          \
16         $(GEOCLUE_CFLAGS)                               \
17         $(MEEGO_CFLAGS)                         \
18         $(WEBKIT_CFLAGS)                                \
19         $(WARN_CFLAGS)                                  \
20         $(DISABLE_DEPRECATED)
21
22 BUILT_SOURCES =                                         \
23         empathy-gtk-marshal.h                           \
24         empathy-gtk-marshal.c                           \
25         empathy-gtk-marshal.list                        \
26         empathy-gtk-enum-types.h                        \
27         empathy-gtk-enum-types.c
28
29 noinst_LTLIBRARIES = libempathy-gtk.la
30
31 libempathy_gtk_handwritten_source =             \
32         empathy-account-chooser.c               \
33         empathy-account-widget-irc.c            \
34         empathy-account-widget-private.h        \
35         empathy-account-widget-sip.c            \
36         empathy-account-widget.c                \
37         empathy-audio-sink.c                    \
38         empathy-audio-src.c                     \
39         empathy-avatar-chooser.c                \
40         empathy-avatar-image.c                  \
41         empathy-cell-renderer-activatable.c     \
42         empathy-cell-renderer-expander.c        \
43         empathy-cell-renderer-text.c            \
44         empathy-chat-text-view.c                \
45         empathy-chat-view.c                     \
46         empathy-chat.c                          \
47         empathy-contact-dialogs.c               \
48         empathy-contact-list-store.c            \
49         empathy-contact-list-view.c             \
50         empathy-contact-menu.c                  \
51         empathy-linking-dialog.c                \
52         empathy-live-search.c                   \
53         empathy-contact-selector.c              \
54         empathy-contact-selector-dialog.c \
55         empathy-contact-widget.c                \
56         empathy-geometry.c                      \
57         empathy-groups-widget.c                 \
58         empathy-individual-dialogs.c            \
59         empathy-individual-edit-dialog.c        \
60         empathy-individual-information-dialog.c \
61         empathy-individual-linker.c             \
62         empathy-individual-menu.c               \
63         empathy-individual-store.c              \
64         empathy-individual-view.c               \
65         empathy-individual-widget.c             \
66         empathy-irc-network-chooser.c \
67         empathy-irc-network-dialog.c            \
68         empathy-kludge-label.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-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.c                         \
81         empathy-spell.c                         \
82         empathy-status-preset-dialog.c          \
83         empathy-string-parser.c                 \
84         empathy-theme-boxes.c                   \
85         empathy-theme-irc.c                     \
86         empathy-theme-manager.c                 \
87         empathy-tls-dialog.c                    \
88         empathy-ui-utils.c                      \
89         empathy-video-src.c                     \
90         empathy-video-widget.c
91
92 libempathy_gtk_headers =                        \
93         empathy-account-chooser.h               \
94         empathy-account-widget-irc.h            \
95         empathy-account-widget-sip.h            \
96         empathy-account-widget.h                \
97         empathy-audio-sink.h                    \
98         empathy-audio-src.h                     \
99         empathy-avatar-chooser.h                \
100         empathy-avatar-image.h                  \
101         empathy-cell-renderer-activatable.h     \
102         empathy-cell-renderer-expander.h        \
103         empathy-cell-renderer-text.h            \
104         empathy-chat-text-view.h                \
105         empathy-chat-view.h                     \
106         empathy-chat.h                          \
107         empathy-contact-dialogs.h               \
108         empathy-contact-list-store.h            \
109         empathy-contact-list-view.h             \
110         empathy-contact-menu.h                  \
111         empathy-linking-dialog.h                \
112         empathy-live-search.h                   \
113         empathy-contact-selector.h              \
114         empathy-contact-selector-dialog.h \
115         empathy-contact-widget.h                \
116         empathy-geometry.h                      \
117         empathy-groups-widget.h                 \
118         empathy-images.h                        \
119         empathy-individual-dialogs.h            \
120         empathy-individual-edit-dialog.h        \
121         empathy-individual-information-dialog.h \
122         empathy-individual-linker.h             \
123         empathy-individual-menu.h               \
124         empathy-individual-store.h              \
125         empathy-individual-view.h               \
126         empathy-individual-widget.h             \
127         empathy-irc-network-chooser.h \
128         empathy-irc-network-dialog.h            \
129         empathy-kludge-label.h                  \
130         empathy-log-window.h                    \
131         empathy-new-message-dialog.h            \
132         empathy-new-call-dialog.h               \
133         empathy-notify-manager.h                \
134         empathy-persona-store.h                 \
135         empathy-persona-view.h                  \
136         empathy-presence-chooser.h              \
137         empathy-protocol-chooser.h              \
138         empathy-search-bar.h                    \
139         empathy-share-my-desktop.h              \
140         empathy-smiley-manager.h                \
141         empathy-sound.h                         \
142         empathy-spell.h                         \
143         empathy-status-preset-dialog.h          \
144         empathy-string-parser.h                 \
145         empathy-theme-boxes.h                   \
146         empathy-theme-irc.h                     \
147         empathy-theme-manager.h                 \
148         empathy-tls-dialog.h                    \
149         empathy-ui-utils.h                      \
150         empathy-video-src.h                     \
151         empathy-video-widget.h
152
153 libempathy_gtk_la_SOURCES =                     \
154         $(libempathy_gtk_handwritten_source)    \
155         $(libempathy_gtk_headers)               \
156         gcr-simple-certificate.c gcr-simple-certificate.h \
157         totem-subtitle-encoding.c totem-subtitle-encoding.h
158
159 # do not distribute generated files
160 nodist_libempathy_gtk_la_SOURCES =\
161         $(BUILT_SOURCES)
162
163 libempathy_gtk_la_LIBADD =                      \
164         $(EMPATHY_LIBS)                 \
165         $(GTK_LIBS)                     \
166         $(LIBNOTIFY_LIBS)                       \
167         $(CANBERRA_LIBS) \
168         $(ENCHANT_LIBS)                         \
169         $(LIBCHAMPLAIN_LIBS)                    \
170         $(GEOCLUE_LIBS)                         \
171         $(MEEGO_LIBS)                           \
172         $(WEBKIT_LIBS)                          \
173         $(top_builddir)/libempathy/libempathy.la
174
175 check_c_sources = \
176     $(libempathy_gtk_handwritten_source) \
177     $(libempathy_gtk_headers)
178 include $(top_srcdir)/tools/check-coding-style.mk
179 check-local: check-coding-style
180
181 uidir = $(datadir)/empathy
182 ui_DATA =                                       \
183         empathy-contact-widget.ui               \
184         empathy-contact-dialogs.ui              \
185         empathy-account-widget-generic.ui       \
186         empathy-account-widget-jabber.ui        \
187         empathy-account-widget-msn.ui           \
188         empathy-account-widget-sip.ui           \
189         empathy-account-widget-local-xmpp.ui    \
190         empathy-account-widget-irc.ui           \
191         empathy-account-widget-icq.ui           \
192         empathy-account-widget-yahoo.ui         \
193         empathy-account-widget-groupwise.ui     \
194         empathy-account-widget-aim.ui           \
195         empathy-status-preset-dialog.ui         \
196         empathy-log-window.ui                   \
197         empathy-chat.ui                         \
198         empathy-contact-selector-dialog.ui      \
199         empathy-search-bar.ui                   \
200         empathy-individual-widget.ui
201
202 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
203         $(AM_V_GEN)( cd $(srcdir) && \
204         sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
205         $(libempathy_gtk_la_SOURCES) ) \
206         | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
207         @if cmp -s $@.tmp $@; then \
208                 rm $@.tmp; \
209         else \
210                 mv $@.tmp $@; \
211         fi
212
213 %-marshal.h: %-marshal.list Makefile
214         $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
215
216 %-marshal.c: %-marshal.list Makefile
217         $(AM_V_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
218         $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
219
220 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
221         $(AM_V_GEN)true
222 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
223         $(AM_V_GEN)(cd $(srcdir) \
224         && glib-mkenums \
225                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
226                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
227                         --fhead "#include <glib-object.h>\n\n" \
228                         --fhead "G_BEGIN_DECLS\n\n" \
229                         --ftail "G_END_DECLS\n\n" \
230                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
231                         --fprod "#include <libempathy-gtk/@filename@>\n" \
232                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
233                         --eprod "GType @enum_name@_get_type (void);\n" \
234                 $(libempathy_gtk_headers) ) > xgen-gth \
235         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
236         && rm -f xgen-gth \
237         && echo timestamp > $(@F)
238
239 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
240         $(AM_V_GEN)(cd $(srcdir) \
241         && glib-mkenums \
242                         --fhead "#include <config.h>\n" \
243                         --fhead "#include <glib-object.h>\n" \
244                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
245                         --fprod "\n/* enumerations from \"@filename@\" */" \
246                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
247                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
248                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
249                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
250                         --vtail "  static GType type = 0;\n\n" \
251                         --vtail "  if (!type)\n" \
252                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
253                         --vtail "  return type;\n}\n\n" \
254                 $(libempathy_gtk_headers) ) > xgen-gtc \
255         && cp xgen-gtc $(@F) \
256         && rm -f xgen-gtc
257
258 EXTRA_DIST =                    \
259         $(ui_DATA)
260
261 if HAVE_GEOCLUE
262 libempathy_gtk_handwritten_source +=            \
263         empathy-location-manager.c
264
265 libempathy_gtk_headers +=                       \
266         empathy-location-manager.h
267 else
268 EXTRA_DIST +=                                   \
269         empathy-location-manager.c              \
270         empathy-location-manager.h
271 endif
272
273 if HAVE_WEBKIT
274 libempathy_gtk_handwritten_source +=            \
275         empathy-plist.c                         \
276         empathy-theme-adium.c
277 libempathy_gtk_headers +=                       \
278         empathy-plist.h                         \
279         empathy-theme-adium.h
280 else
281 EXTRA_DIST +=                                   \
282         empathy-plist.c                         \
283         empathy-plist.h                         \
284         empathy-theme-adium.c                   \
285         empathy-theme-adium.h
286 endif
287
288 CLEANFILES =                            \
289         $(BUILT_SOURCES)                \
290         stamp-empathy-gtk-enum-types.h