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