Makefile.am 1.47 KB
Newer Older
1
include $(top_srcdir)/globals.mak
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
2

3
noinst_LTLIBRARIES = libdbus.la
4

5
BUILT_SOURCES=                      \
6
7
8
    callmanager-glue.h              \
    configurationmanager-glue.h     \
    instance-glue.h
9
10
11

# Rule to generate the binding headers
%-glue.h: %-introspec.xml Makefile.am
12
	dbusxx-xml2cpp $< --adaptor=$@
13

14
libdbus_la_SOURCES = \
15
16
17
    callmanager.cpp \
    configurationmanager.cpp  \
    instance.cpp  \
18
    dbusmanager.cpp
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
19

20
if USE_NETWORKMANAGER
21
libdbus_la_SOURCES += networkmanager.cpp
22
23
24
25
26
NETWORKMANAGER=-DUSE_NETWORKMANAGER
else
NETWORKMANAGER=
endif

27
28
29
30
libdbus_la_CXXFLAGS = \
            -DPREFIX=\"$(prefix)\" \
            -DPROGSHAREDIR=\"${datadir}/sflphone\" \
            $(NETWORKMANAGER)
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
31

32
33
34
35
36
noinst_HEADERS =            \
    callmanager.h           \
    configurationmanager.h  \
    instance.h              \
    dbusmanager.h           \
37
38
    networkmanager_proxy.h  \
    networkmanager.h        \
39
    $(BUILT_SOURCES)
40

41
# Dbus service file
Rafaël Carré's avatar
Rafaël Carré committed
42
servicedir = $(datadir)/dbus-1/services
43
44
45
46
47
service_in_files = org.sflphone.SFLphone.service.in
service_DATA = $(service_in_files:.service.in=.service)

# Rule to make the service file with bindir expanded
$(service_DATA): $(service_in_files) Makefile
48
	sed -e "s|libexec|$(libdir)/sflphone|" $<> $@
49

50
51
52
53
54
EXTRA_DIST = README $(service_in_files) \
			 callmanager-introspec.xml \
			 configurationmanager-introspec.xml \
			 instance-introspec.xml \
			 org.freedesktop.NetworkManager.xml
55
56

CLEANFILES= \
57
58
    $(BUILT_SOURCES) \
	org.sflphone.SFLphone.service