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