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

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

6
if SFL_VIDEO
7
SFL_VIDEO_SUBDIR = video
8
SFL_VIDEO_LIB=./video/libvideo.la
9
endif
10

11 12
if BUILD_INSTANT_MESSAGING
INSTANT_MESSAGING_SUBDIR = im
13
IM_LIB=./im/libim.la
14 15
endif

Emmanuel Milou's avatar
Emmanuel Milou committed
16 17
# Redefine the USE_IAX variable here, so that it could be used in managerimpl
if USE_IAX
18
IAX_SUBDIR=iax
Emmanuel Milou's avatar
Emmanuel Milou committed
19
IAX_CXXFLAG=-DUSE_IAX
20
IAX_LIB=./iax/libiaxlink.la $(top_builddir)/libs/iax2/libiax2.la
Emmanuel Milou's avatar
Emmanuel Milou committed
21
endif
Emmanuel Milou's avatar
Emmanuel Milou committed
22

23 24 25 26
if USE_NETWORKMANAGER
NETWORKMANAGER=-DUSE_NETWORKMANAGER
endif

27
SUBDIRS = client audio config hooks history sip $(IAX_SUBDIR) $(INSTANT_MESSAGING_SUBDIR) $(SFL_VIDEO_SUBDIR)
28 29 30

sflphoned_SOURCES = main.cpp

31
sflphoned_CXXFLAGS = \
32
		-DPREFIX=\"$(prefix)\" -DPROGSHAREDIR=\"${datadir}/sflphone\" $(IAX_CXXFLAG) $(NETWORKMANAGER) \
Alexandre Savard's avatar
[#3561]  
Alexandre Savard committed
33
		-DVERSION=\"$(VERSION)\"
34

35
# libsflphone
Emmanuel Milou's avatar
Emmanuel Milou committed
36

37
sflphoned_LDADD = ./libsflphone.la $(libssl_LIBS) -lcrypto $(YAML_LIBS)
38
noinst_LTLIBRARIES = libsflphone.la
jpbl's avatar
jpbl committed
39 40

libsflphone_la_LIBADD = \
Emmanuel Milou's avatar
Emmanuel Milou committed
41
	$(IAX_LIB) \
42
	./sip/libsiplink.la \
jpbl's avatar
jpbl committed
43
	./audio/libaudio.la \
44
	./client/dbus/libclient.la \
yanmorin's avatar
 
yanmorin committed
45
	./config/libconfig.la \
46
	./hooks/libhooks.la \
47
	./history/libhistory.la $(SFL_VIDEO_LIB) $(IM_LIB)
jpbl's avatar
jpbl committed
48

Alexandre Savard's avatar
[#3561]  
Alexandre Savard committed
49 50 51 52 53 54 55 56 57
libsflphone_la_LDFLAGS = \
		@CCGNU2_LIBS@ \
		@CCEXT2_LIBS@ \
		@ZRTPCPP_LIBS@ \
		$(PJSIP_LIBS) \
		@CCRTP_LIBS@ \
		@ALSA_LIBS@ \
		@PULSEAUDIO_LIBS@ \
		@SAMPLERATE_LIBS@ \
58
		@SNDFILE_LIBS@ \
Alexandre Savard's avatar
[#3561]  
Alexandre Savard committed
59
		@libssl_LIBS@ \
60
		@UUID_LIBS@ \
61
		@DBUSCPP_LIBS@
Alexandre Savard's avatar
[#3561]  
Alexandre Savard committed
62 63 64 65 66 67 68 69 70 71 72

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

76 77 78 79
libsflphone_la_SOURCES = conference.cpp \
		voiplink.cpp \
		preferences.cpp \
		managerimpl.cpp \
80
		manager.cpp \
81 82 83 84
		eventthread.cpp \
		call.cpp \
		account.cpp \
		logger.cpp \
85
		numbercleaner.cpp \
86
		fileutils.cpp \
87 88
		sflthread.cpp \
		sflthread.h \
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
		conference.h \
		voiplink.h \
		preferences.h \
		managerimpl.h \
		manager.h \
		global.h \
		eventthread.h \
		account.h \
		call.h \
		logger.h \
		numbercleaner.h \
		fileutils.h \
		noncopyable.h \
		cc_config.h \
		sfl_types.h \
		array_size.h \
		account_schema.h \
106 107
		registration_states.h \
		map_utils.h