]> git.0d.be Git - empathy.git/blob - libempathy/Makefile.am
Use libtool -version-info. Fixes bug #460579 (Laurent Bigonville).
[empathy.git] / libempathy / Makefile.am
1 AM_CPPFLAGS =                                           \
2         -I.                                             \
3         -I$(top_srcdir)                                 \
4         -DDATADIR=\""$(datadir)"\"                      \
5         $(LIBEMPATHY_CFLAGS)                            \
6         $(WARN_CFLAGS)
7
8 BUILT_SOURCES =                                         \
9         empathy-marshal.h                               \
10         empathy-marshal.c                               \
11         empathy-filter-glue.h                           \
12         empathy-chandler-glue.h
13
14 lib_LTLIBRARIES = libempathy.la
15
16 libempathy_la_SOURCES =                                 \
17         empathy-conf.c                                  \
18         empathy-contact.c                               \
19         empathy-avatar.c                                \
20         empathy-time.c                                  \
21         empathy-presence.c                              \
22         empathy-debug.c                                 \
23         empathy-utils.c                                 \
24         empathy-message.c                               \
25         empathy-chatroom-manager.c                      \
26         empathy-chatroom.c                              \
27         empathy-contact-list.c                          \
28         empathy-contact-manager.c                       \
29         empathy-tp-group.c                              \
30         empathy-tp-contact-list.c                       \
31         empathy-tp-chat.c                               \
32         empathy-tp-chatroom.c                           \
33         empathy-tp-roomlist.c                           \
34         empathy-chandler.c                              \
35         empathy-filter.c                                \
36         empathy-idle.c                                  \
37         empathy-log-manager.c                           \
38         empathy-marshal-main.c
39
40 libempathy_la_LIBADD =          \
41         $(LIBEMPATHY_LIBS)
42
43 libempathy_la_LDFLAGS =         \
44         -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE}
45
46 libempathydir = $(includedir)/libempathy/
47 libempathy_HEADERS =                            \
48         empathy-conf.h                          \
49         empathy-contact.h                       \
50         empathy-avatar.h                        \
51         empathy-time.h                          \
52         empathy-presence.h                      \
53         empathy-debug.h                         \
54         empathy-utils.h                         \
55         empathy-message.h                       \
56         empathy-chatroom-manager.h              \
57         empathy-chatroom.h                      \
58         empathy-contact-list.h                  \
59         empathy-contact-manager.h               \
60         empathy-tp-group.h                      \
61         empathy-tp-contact-list.h               \
62         empathy-tp-chat.h                       \
63         empathy-tp-chatroom.h                   \
64         empathy-tp-roomlist.h                   \
65         empathy-chandler.h                      \
66         empathy-filter.h                        \
67         empathy-idle.h                          \
68         empathy-log-manager.h
69
70 %-marshal.h: %-marshal.list Makefile.am
71         $(GLIB_GENMARSHAL) --header --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.h
72
73 %-marshal.c: %-marshal.list Makefile.am
74         $(GLIB_GENMARSHAL) --body --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.c
75
76 %-marshal-main.c: %-marshal.c %-marshal.h
77
78 empathy-chandler-glue.h: empathy-chandler.xml
79         $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_chandler --mode=glib-server --output=$@ $<
80 empathy-filter-glue.h: empathy-filter.xml
81         $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_filter --mode=glib-server --output=$@ $<
82
83 dtddir = $(datadir)/empathy
84 dtd_DATA =                                      \
85         empathy-chatroom-manager.dtd
86
87 stylesheetdir = $(datadir)/empathy
88 stylesheet_DATA =               \
89         empathy-log-manager.xsl
90
91 pkgconfigdir = $(libdir)/pkgconfig
92 pkgconfig_DATA = libempathy.pc
93
94 EXTRA_DIST =                    \
95         empathy-marshal.list    \
96         empathy-chandler.xml    \
97         empathy-filter.xml      \
98         $(stylesheet_DATA)      \
99         $(dtd_DATA)
100
101 CLEANFILES = $(BUILT_SOURCES)