Fix typo in var name and don't link empathy-call-chandler on libemp-extensions.la...
[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         empathy-logs
21
22 libexec_PROGRAMS =              \
23         empathy-chat-chandler
24
25 empathy_SOURCES = empathy.c
26 empathy_accounts_SOURCES = empathy-accounts.c
27 empathy_logs_SOURCES = empathy-logs.c
28 empathy_chat_chandler_SOURCES = empathy-chat-chandler.c
29
30 # Dbus service files
31 servicedir = $(datadir)/dbus-1/services
32 service_DATA =                                                  \
33         org.gnome.Empathy.Chat.service
34
35 %.service: %.service.in Makefile
36         @sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
37
38 chandlerdir = $(datadir)/telepathy/managers
39 chandler_DATA =                                                 \
40         empathy-chat.chandler
41
42 BUILT_SOURCES =                                                 \
43         $(service_DATA)
44
45 EXTRA_DIST =                                                    \
46         org.gnome.Empathy.Chat.service.in                       \
47         org.gnome.Empathy.Call.service.in                       \
48         $(autostart_DATA)                                       \
49         $(chandler_DATA)
50
51 CLEANFILES = $(BUILT_SOURCES)
52
53 if HAVE_VOIP
54 libexec_PROGRAMS += empathy-call-chandler
55 empathy_call_chandler_SOURCES = empathy-call-chandler.c
56 service_DATA += org.gnome.Empathy.Call.service
57 chandler_DATA += empathy-call.chandler
58 else
59 EXTRA_DIST += empathy-call.chandler
60 endif
61