]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Do not run multiple instances of empathy. Fixes bug #501805 (Marco Barisione).
[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 =                       \
26         empathy.c                       \
27         bacon-message-connection.c      \
28         bacon-message-connection.h
29 empathy_accounts_SOURCES = empathy-accounts.c
30 empathy_logs_SOURCES = empathy-logs.c
31 empathy_chat_chandler_SOURCES = empathy-chat-chandler.c
32
33 # Dbus service files
34 servicedir = $(datadir)/dbus-1/services
35 service_DATA =                                                  \
36         org.gnome.Empathy.Chat.service
37
38 %.service: %.service.in Makefile
39         @sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
40
41 chandlerdir = $(datadir)/telepathy/managers
42 chandler_DATA =                                                 \
43         empathy-chat.chandler
44
45 BUILT_SOURCES =                                                 \
46         $(service_DATA)
47
48 EXTRA_DIST =                                                    \
49         org.gnome.Empathy.Chat.service.in                       \
50         org.gnome.Empathy.Call.service.in                       \
51         $(autostart_DATA)                                       \
52         $(chandler_DATA)
53
54 CLEANFILES = $(BUILT_SOURCES)
55
56 if HAVE_VOIP
57 libexec_PROGRAMS += empathy-call-chandler
58 empathy_call_chandler_SOURCES = empathy-call-chandler.c
59 service_DATA += org.gnome.Empathy.Call.service
60 chandler_DATA += empathy-call.chandler
61 else
62 EXTRA_DIST += empathy-call.chandler
63 endif
64