[darcs-to-svn @ initial import]
[empathy.git] / libempathy / Makefile.am
1 AM_CPPFLAGS =                                           \
2         -I.                                             \
3         -I$(top_srcdir)                                 \
4         -DDATADIR=\""$(datadir)"\"                      \
5         -DLOCALEDIR=\""$(datadir)/locale"\"             \
6         $(EMPATHY_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-session.c               empathy-session.h                       \
28         empathy-contact-list.c          empathy-contact-list.h                  \
29         empathy-contact-manager.c       empathy-contact-manager.h               \
30         empathy-tp-chat.c               empathy-tp-chat.h                       \
31         empathy-chandler.c              empathy-chandler.h                      \
32         empathy-marshal-main.c
33
34 libempathy_la_LIBADD =                                  \
35         $(EMPATHY_LIBS)
36
37 libempathy_includedir = $(includedir)/empathy/
38
39 %-marshal.h: %-marshal.list Makefile.am
40         $(GLIB_GENMARSHAL) --header --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.h
41
42 %-marshal.c: %-marshal.list Makefile.am
43         $(GLIB_GENMARSHAL) --body --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.c
44
45 %-marshal-main.c: %-marshal.c %-marshal.h
46
47 empathy-chandler-glue.h: empathy-chandler.xml
48         $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_chandler --mode=glib-server --output=$@ $<
49
50 EXTRA_DIST =                    \
51         empathy-marshal.list    \
52         empathy-chandler.xml
53
54 CLEANFILES = $(BUILT_SOURCES)