]> git.0d.be Git - empathy.git/blob - src/Makefile.am
8b9e63a193eace70f33f56415b28ba8c11217a2b
[empathy.git] / src / Makefile.am
1 cppflags =                      \
2         -I.                     \
3         -I$(top_srcdir)         \
4         $(EMPATHY_CFLAGS)       \
5         $(WARN_CFLAGS)
6
7 libs =                                                          \
8         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
9         $(EMPATHY_LIBS)
10
11 bin_PROGRAMS =                  \
12         empathy                 \
13         empathy-chat            \
14         empathy-accounts        \
15         empathy-contact-list
16
17 empathy_SOURCES =                                               \
18         empathy-main.c                                          \
19         empathy-filter.c        empathy-filter.h
20 empathy_CPPFLAGS = $(cppflags)
21 empathy_LDADD = $(libs)
22
23 empathy_accounts_SOURCES = empathy-accounts-main.c
24 empathy_accounts_CPPFLAGS = $(cppflags)
25 empathy_accounts_LDADD = $(libs)
26
27 empathy_chat_SOURCES = empathy-chat-main.c
28 empathy_chat_CPPFLAGS = $(cppflags)
29 empathy_chat_LDADD = $(libs)
30
31 empathy_contact_list_SOURCES = empathy-contact-list-main.c
32 empathy_contact_list_CPPFLAGS = $(cppflags)
33 empathy_contact_list_LDADD = $(libs)
34
35 # MC plugin
36 #pluginlib_LTLIBRARIES = libempathy-filter-plugin.la
37 #libempathy_filter_plugin_la_SOURCES = empathy-filter-plugin.c
38 #libempathy_filter_plugin_la_CPPFLAGS = $(MISSION_CONTROL_PLUGINS_CFLAGS)
39 #libempathy_filter_plugin_la_LIBADD = $(MISSION_CONTROL_PLUGINS_LIBS)
40
41 # Dbus service file
42 servicedir = $(datadir)/dbus-1/services
43 service_in_files = org.gnome.Empathy.Chat.service.in
44 service_DATA = $(service_in_files:.service.in=.service)
45
46 # Rule to make the service file with bindir expanded
47 $(service_DATA): $(service_in_files) Makefile
48         @sed -e "s|\@bindir\@|$(bindir)|" $< > $@
49
50 chandlerdir = $(datadir)/telepathy/managers
51 chandler_DATA = empathy-chat.chandler
52
53 # Empathy filter DBus API
54 empathy-filter-glue.h: empathy-filter.xml
55         $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_filter --mode=glib-server --output=$@ $<
56 empathy-filter-gen.h: empathy-filter.xml
57         $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_filter --mode=glib-client --output=$@ $<
58
59 BUILT_SOURCES =                                                 \
60         org.gnome.Empathy.Chat.service                          \
61         empathy-filter-glue.h                                   \
62         empathy-filter-gen.h
63
64 EXTRA_DIST =                                                    \
65         org.gnome.Empathy.Chat.service.in                       \
66         empathy-filter.xml                                      \
67         $(autostart_DATA)                                       \
68         $(chandler_DATA)
69
70 CLEANFILES = $(BUILT_SOURCES)
71