Makefile.am 1.9 KB
Newer Older
1
include ../globals.mak
jpbl's avatar
jpbl committed
2

3 4 5
libexecdir=$(libdir)/sflphone
libexec_PROGRAMS = sflphoned

6 7
# all: indent

8
SUBDIRS = dbus audio config hooks history sip iax im
9

10
sflphoned_SOURCES = main.cpp
jpbl's avatar
jpbl committed
11

Emmanuel Milou's avatar
Emmanuel Milou committed
12 13 14 15 16 17 18 19
# Redefine the USE_IAX variable here, so that it could be used in managerimpl
if USE_IAX
IAX_CXXFLAG=-DUSE_IAX
IAX_LIB=./iax/libiaxlink.la
else
IAX_CXXFLAG=
IAX_LIB=
endif
Emmanuel Milou's avatar
Emmanuel Milou committed
20

21 22 23 24 25 26
if USE_NETWORKMANAGER
NETWORKMANAGER=-DUSE_NETWORKMANAGER
else
NETWORKMANAGER=
endif

27
sflphoned_CXXFLAGS = \
28
		-DPREFIX=\"$(prefix)\" -DPROGSHAREDIR=\"${datadir}/sflphone\" $(IAX_CXXFLAG) $(NETWORKMANAGER) \
Alexandre Savard's avatar
[#3561]  
Alexandre Savard committed
29
		-DVERSION=\"$(VERSION)\"
30

31
# libsflphone
Emmanuel Milou's avatar
Emmanuel Milou committed
32

33
sflphoned_LDADD = ./libsflphone.la $(libssl_LIBS) -lcrypto $(YAML_LIBS)
34
noinst_LTLIBRARIES = libsflphone.la
jpbl's avatar
jpbl committed
35

36
noinst_HEADERS = \
37
		global.h \
Tristan Matthews's avatar
Tristan Matthews committed
38
		codec.h \
39
		conference.h \
40
		voiplink.h \
41
		preferences.h \
42 43 44 45 46 47
		managerimpl.h \
		manager.h \
		global.h \
		eventthread.h \
		account.h \
		call.h \
Julien Bonjean's avatar
Julien Bonjean committed
48
		logger.h \
49
		numbercleaner.h \
50
		fileutils.h \
51
		noncopyable.h \
52 53
		cc_thread.h \
		cc_config.h
Emmanuel Milou's avatar
Emmanuel Milou committed
54

jpbl's avatar
jpbl committed
55
libsflphone_la_LIBADD = \
56
	$(top_builddir)/libs/iax2/libiax2.la \
Emmanuel Milou's avatar
Emmanuel Milou committed
57
	$(IAX_LIB) \
58
	./im/libim.la \
59
	./sip/libsiplink.la \
jpbl's avatar
jpbl committed
60
	./audio/libaudio.la \
61
	./dbus/libdbus.la \
yanmorin's avatar
 
yanmorin committed
62
	./config/libconfig.la \
63
	./hooks/libhooks.la \
64
	./history/libhistory.la
jpbl's avatar
jpbl committed
65

Alexandre Savard's avatar
[#3561]  
Alexandre Savard committed
66 67 68 69 70 71 72 73 74 75
libsflphone_la_LDFLAGS = \
		@CCGNU2_LIBS@ \
		@CCEXT2_LIBS@ \
		@ZRTPCPP_LIBS@ \
		$(PJSIP_LIBS) \
		@CCRTP_LIBS@ \
		@ALSA_LIBS@ \
		@PULSEAUDIO_LIBS@ \
		@SAMPLERATE_LIBS@ \
		@libssl_LIBS@ \
76
		@UUID_LIBS@ \
77
		@DBUSCPP_LIBS@
Alexandre Savard's avatar
[#3561]  
Alexandre Savard committed
78 79 80 81 82 83 84 85 86 87 88

libsflphone_la_CFLAGS = \
		@CCGNU2_CFLAGS@ \
		@CCEXT2_CFLAGS@ \
		@ZRTPCPP_CFLAGS@ \
		$(PJSIP_CFLAGS) \
		@CCRTP_CFLAGS@ \
		@ALSA_CFLAGS@ \
		@PULSEAUDIO_CFLAGS@ \
		@SAMPLERATE_CFLAGS@ \
		@libssl_CFLAGS@ \
89
		@UUID_CFLAGS@
Alexandre Savard's avatar
[#3561]  
Alexandre Savard committed
90

91 92 93 94
libsflphone_la_SOURCES = conference.cpp \
		voiplink.cpp \
		preferences.cpp \
		managerimpl.cpp \
95
		manager.cpp \
96 97 98 99 100 101 102
		managerimpl_registration.cpp \
		eventthread.cpp \
		call.cpp \
		account.cpp \
		logger.cpp \
		numbercleaner.cpp \
		fileutils.cpp