]> git.0d.be Git - empathy.git/blob - src/Makefile.am
86ffade6b1dca987a788302713823552c47392da
[empathy.git] / src / Makefile.am
1 cflags = $(EMPATHY_CFLAGS)                                      \
2          $(WARN_CFLAGS)
3
4 libs =  $(top_builddir)/libempathy/libempathy.la                \
5         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
6         $(EMPATHY_LIBS)
7
8 bin_PROGRAMS = empathy empathy-accounts empathy-chat empathy-contact-list
9
10 empathy_SOURCES = empathy-main.c
11 empathy_CPPFLAGS = $(cflags)
12 empathy_LDFLAGS = $(libs)
13
14 empathy_accounts_SOURCES = empathy-accounts-main.c
15 empathy_accounts_CPPFLAGS = $(cflags)
16 empathy_accounts_LDFLAGS = $(libs)
17
18 empathy_chat_SOURCES = empathy-chat-main.c
19 empathy_chat_CPPFLAGS = $(cflags)
20 empathy_chat_LDFLAGS = $(libs)
21
22 empathy_contact_list_SOURCES = empathy-contact-list-main.c
23 empathy_contact_list_CPPFLAGS = $(cflags)
24 empathy_contact_list_LDFLAGS = $(libs)
25
26 # MC plugin
27 pluginlib_LTLIBRARIES = libempathy-filter-plugin.la
28 libempathy_filter_plugin_la_SOURCES = empathy-filter-plugin.c
29 libempathy_filter_plugin_la_CPPFLAGS = $(MISSION_CONTROL_PLUGINS_CFLAGS)
30 libempathy_filter_plugin_la_LDFLAGS = $(MISSION_CONTROL_PLUGINS_LIBS)
31
32 # Dbus service file
33 servicedir = $(datadir)/dbus-1/services
34 service_in_files = org.gnome.Empathy.Chat.service.in
35 service_DATA = $(service_in_files:.service.in=.service)
36
37 # Rule to make the service file with bindir expanded
38 $(service_DATA): $(service_in_files) Makefile
39         @sed -e "s|\@bindir\@|$(bindir)|" $< > $@
40
41 chandlerdir = $(datadir)/telepathy/managers
42 chandler_DATA = empathy-chat.chandler
43
44 autostartdir = $(datadir)/gnome/autostart
45 autostart_in_files = empathy.desktop.in
46 autostart_DATA = $(autostart_in_files:.desktop.in=.desktop)
47 @INTLTOOL_DESKTOP_RULE@
48
49 BUILT_SOURCES =                                                 \
50         org.gnome.Empathy.Chat.service
51
52 EXTRA_DIST =                                                    \
53         org.gnome.Empathy.Chat.service.in                       \
54         $(autostart_DATA)                                       \
55         $(chandler_DATA)
56
57 CLEANFILES = $(BUILT_SOURCES)
58