]> git.0d.be Git - empathy.git/blob - libempathy/Makefile.am
[darcs-to-svn @ Improve build system]
[empathy.git] / libempathy / Makefile.am
1 AM_CPPFLAGS =                                           \
2         -I.                                             \
3         -I$(top_srcdir)                                 \
4         -DDATADIR=\""$(datadir)"\"                      \
5         -DLOCALEDIR=\""$(datadir)/locale"\"             \
6         $(LIBEMPATHY_CFLAGS)                            \
7         $(WARN_CFLAGS)
8
9 BUILT_SOURCES =                                         \
10         empathy-marshal.h                               \
11         empathy-marshal.c                               \
12         empathy-chandler-glue.h
13
14 noinst_LTLIBRARIES = libempathy.la
15
16 libempathy_la_SOURCES =                                                         \
17         gossip-conf.c                   gossip-conf.h                           \
18         gossip-contact.c                gossip-contact.h                        \
19         gossip-avatar.c                 gossip-avatar.h                         \
20         gossip-time.c                   gossip-time.h                           \
21         gossip-presence.c               gossip-presence.h                       \
22         gossip-telepathy-group.c        gossip-telepathy-group.h                \
23         gossip-paths.c                  gossip-paths.h                          \
24         gossip-debug.c                  gossip-debug.h                          \
25         gossip-utils.c                  gossip-utils.h                          \
26         gossip-message.c                gossip-message.h                        \
27         empathy-contact-list.c          empathy-contact-list.h                  \
28         empathy-contact-manager.c       empathy-contact-manager.h               \
29         empathy-tp-chat.c               empathy-tp-chat.h                       \
30         empathy-chandler.c              empathy-chandler.h                      \
31         empathy-marshal-main.c
32
33 libempathy_la_LIBADD =          \
34         $(LIBEMPATHY_LIBS)
35
36 libempathy_includedir = $(includedir)/empathy/
37
38 %-marshal.h: %-marshal.list Makefile.am
39         $(GLIB_GENMARSHAL) --header --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.h
40
41 %-marshal.c: %-marshal.list Makefile.am
42         $(GLIB_GENMARSHAL) --body --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.c
43
44 %-marshal-main.c: %-marshal.c %-marshal.h
45
46 empathy-chandler-glue.h: empathy-chandler.xml
47         $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_chandler --mode=glib-server --output=$@ $<
48
49 EXTRA_DIST =                    \
50         empathy-marshal.list    \
51         empathy-chandler.xml
52
53 CLEANFILES = $(BUILT_SOURCES)