]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Do not build voip chandler if building without voip support. Fixes bug
[empathy.git] / src / Makefile.am
1 AM_CPPFLAGS =                                           \
2         -I$(top_srcdir)                                 \
3         -DPREFIX="\"$(prefix)"\"                        \
4         -DSYSCONFDIR=\""$(sysconfdir)"\"                \
5         -DDATADIR=\""$(datadir)"\"                      \
6         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
7         -DLIBDIR=\""$(libdir)"\"                        \
8         -DLOCALEDIR=\""$(datadir)/locale"\"             \
9         $(EMPATHY_CFLAGS)                               \
10         $(WARN_CFLAGS)
11
12 LDADD =                                                         \
13         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
14         $(top_builddir)/libempathy/libempathy.la                \
15         $(EMPATHY_LIBS)
16
17 bin_PROGRAMS =                  \
18         empathy                 \
19         empathy-accounts
20
21 libexec_PROGRAMS =              \
22         empathy-chat-chandler
23
24 empathy_SOURCES = empathy.c
25 empathy_accounts_SOURCES = empathy-accounts.c
26 empathy_chat_chandler_SOURCES = empathy-chat-chandler.c
27
28 # Dbus service files
29 servicedir = $(datadir)/dbus-1/services
30 service_DATA =                                                  \
31         org.gnome.Empathy.Chat.service
32
33 %.service: %.service.in Makefile
34         @sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
35
36 chandlerdir = $(datadir)/telepathy/managers
37 chandler_DATA =                                                 \
38         empathy-chat.chandler
39
40 BUILT_SOURCES =                                                 \
41         $(service_DATA)
42
43 EXTRA_DIST =                                                    \
44         org.gnome.Empathy.Chat.service.in                       \
45         org.gnome.Empathy.Call.service.in                       \
46         $(autostart_DATA)                                       \
47         $(chandler_DATA)
48
49 CLEANFILES = $(BUILT_SOURCES)
50
51 if HAVE_VOIP
52 libexec_PROGRAMS += empathy-call-chandler
53 empathy_call_chandler_SOURCES = empathy-call-chandler.c
54 service_DATA += org.gnome.Empathy.Call.service
55 chandler_DATA += empathy-call.chandler
56 endif
57