]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
721bd82e22e5e2f0b57617e30f3f64e508f8173e
[empathy.git] / libempathy-gtk / Makefile.am
1 AM_CPPFLAGS =                                           \
2         -I.                                             \
3         -I$(top_srcdir)                                 \
4         -DDATADIR=\""$(datadir)"\"                      \
5         $(EMPATHY_CFLAGS)                               \
6         $(WARN_CFLAGS)
7
8 BUILT_SOURCES =                                         \
9         empathy-gtk-enum-types.h                        \
10         empathy-gtk-enum-types.c
11
12 lib_LTLIBRARIES = libempathy-gtk.la
13
14 libempathy_gtk_la_SOURCES =                     \
15         ephy-spinner.c ephy-spinner.h           \
16         empathy-main-window.c                   \
17         empathy-status-icon.c                   \
18         empathy-contact-widget.c                \
19         empathy-contact-dialogs.c               \
20         empathy-accounts-dialog.c               \
21         empathy-account-widget-generic.c        \
22         empathy-account-widget-jabber.c         \
23         empathy-account-widget-msn.c            \
24         empathy-account-widget-salut.c          \
25         empathy-profile-chooser.c               \
26         empathy-cell-renderer-expander.c        \
27         empathy-cell-renderer-text.c            \
28         empathy-cell-renderer-activatable.c     \
29         empathy-spell.c                         \
30         empathy-spell-dialog.c                  \
31         empathy-contact-list-store.c            \
32         empathy-contact-list-view.c             \
33         empathy-preferences.c                   \
34         empathy-theme.c                         \
35         empathy-theme-boxes.c                   \
36         empathy-theme-irc.c                     \
37         empathy-theme-manager.c                 \
38         empathy-smiley-manager.c                \
39         empathy-chat-window.c                   \
40         empathy-chat.c                          \
41         empathy-chat-view.c                     \
42         empathy-private-chat.c                  \
43         empathy-group-chat.c                    \
44         empathy-geometry.c                      \
45         empathy-presence-chooser.c              \
46         empathy-about-dialog.c                  \
47         empathy-account-chooser.c               \
48         empathy-new-chatroom-dialog.c           \
49         empathy-chatrooms-window.c              \
50         empathy-log-window.c                    \
51         empathy-call-window.c                   \
52         empathy-avatar-chooser.c                \
53         empathy-avatar-image.c                  \
54         empathy-ui-utils.c                      \
55         empathy-new-message-dialog.c
56
57 # do not distribute generated files
58 nodist_libempathy_gtk_la_SOURCES =\
59         $(BUILT_SOURCES)
60
61 libempathy_gtk_la_LIBADD =                      \
62         $(EMPATHY_LIBS)                         \
63         $(top_builddir)/libempathy/libempathy.la
64
65 libempathy_gtk_la_LDFLAGS =                \
66        -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE}
67
68 libempathy_gtk_headers =                        \
69         empathy-images.h                        \
70         empathy-main-window.h                   \
71         empathy-status-icon.h                   \
72         empathy-contact-widget.h                \
73         empathy-contact-dialogs.h               \
74         empathy-accounts-dialog.h               \
75         empathy-account-widget-generic.h        \
76         empathy-account-widget-jabber.h         \
77         empathy-account-widget-msn.h            \
78         empathy-account-widget-salut.h          \
79         empathy-profile-chooser.h               \
80         empathy-cell-renderer-expander.h        \
81         empathy-cell-renderer-text.h            \
82         empathy-cell-renderer-activatable.h     \
83         empathy-spell.h                         \
84         empathy-spell-dialog.h                  \
85         empathy-contact-list-store.h            \
86         empathy-contact-list-view.h             \
87         empathy-preferences.h                   \
88         empathy-theme.h                         \
89         empathy-theme-boxes.h                   \
90         empathy-theme-irc.h                     \
91         empathy-theme-manager.h                 \
92         empathy-smiley-manager.h                \
93         empathy-chat-window.h                   \
94         empathy-chat.h                          \
95         empathy-chat-view.h                     \
96         empathy-private-chat.h                  \
97         empathy-group-chat.h                    \
98         empathy-geometry.h                      \
99         empathy-presence-chooser.h              \
100         empathy-about-dialog.h                  \
101         empathy-account-chooser.h               \
102         empathy-new-chatroom-dialog.h           \
103         empathy-chatrooms-window.h              \
104         empathy-log-window.h                    \
105         empathy-call-window.h                   \
106         empathy-avatar-chooser.h                \
107         empathy-avatar-image.h                  \
108         empathy-ui-utils.h                      \
109         empathy-new-message-dialog.h
110
111 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
112 libempathy_gtk_include_HEADERS =                \
113         $(libempathy_gtk_headers)               \
114         empathy-gtk-enum-types.h
115
116 gladedir = $(datadir)/empathy
117 glade_DATA =                                    \
118         empathy-main-window.glade               \
119         empathy-status-icon.glade               \
120         empathy-contact-widget.glade            \
121         empathy-contact-dialogs.glade           \
122         empathy-preferences.glade               \
123         empathy-presence-chooser.glade          \
124         empathy-accounts-dialog.glade           \
125         empathy-account-widget-jabber.glade     \
126         empathy-account-widget-msn.glade        \
127         empathy-account-widget-salut.glade      \
128         empathy-new-chatroom-dialog.glade       \
129         empathy-group-chat.glade                \
130         empathy-chatrooms-window.glade          \
131         empathy-spell-dialog.glade              \
132         empathy-log-window.glade                \
133         empathy-call-window.glade               \
134         empathy-chat.glade                      \
135         empathy-new-message-dialog.glade
136
137 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
138         @true
139 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
140         (cd $(srcdir) \
141         && glib-mkenums \
142                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
143                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
144                         --fhead "#include <glib-object.h>\n\n" \
145                         --fhead "G_BEGIN_DECLS\n\n" \
146                         --ftail "G_END_DECLS\n\n" \
147                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
148                         --fprod "#include <libempathy-gtk/@filename@>\n" \
149                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
150                         --eprod "GType @enum_name@_get_type (void);\n" \
151                 $(libempathy_gtk_headers) ) > xgen-gth \
152         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
153         && rm -f xgen-gth \
154         && echo timestamp > $(@F)
155
156 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
157         (cd $(srcdir) \
158         && glib-mkenums \
159                         --fhead "#include <config.h>\n" \
160                         --fhead "#include <glib-object.h>\n" \
161                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
162                         --fprod "\n/* enumerations from \"@filename@\" */" \
163                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
164                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
165                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
166                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
167                         --vtail "  static GType type = 0;\n\n" \
168                         --vtail "  if (!type)\n" \
169                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
170                         --vtail "  return type;\n}\n\n" \
171                 $(libempathy_gtk_headers) ) > xgen-gtc \
172         && cp xgen-gtc $(@F) \
173         && rm -f xgen-gtc
174
175 pkgconfigdir = $(libdir)/pkgconfig
176 pkgconfig_DATA = libempathy-gtk.pc
177
178 EXTRA_DIST =                    \
179         $(glade_DATA)
180
181 CLEANFILES =                            \
182         $(BUILT_SOURCES)                \
183         stamp-empathy-gtk-enum-types.h