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

3
bin_PROGRAMS = sflphoned
4

yanmorin's avatar
   
yanmorin committed
5
if USE_IAX
6
# Use the global instead of locally built
yanmorin's avatar
   
yanmorin committed
7
IAX_FLAGS = -DUSE_IAX
8
9
IAXSOURCES = iaxaccount.cpp iaxvoiplink.cpp iaxcall.cpp
IAXHEADERS = iaxaccount.h iaxvoiplink.h iaxcall.h
yanmorin's avatar
   
yanmorin committed
10
11
12
13
14
else
IAX_FLAGS =
IAXSOURCES =
IAXHEADERS =
endif
yanmorin's avatar
   
yanmorin committed
15

16
SUBDIRS = audio config dbus plug-in
17

18
# Add here the cpp files to be build with sflphone
Yun Liu's avatar
Yun Liu committed
19
sflphoned_SOURCES = \
20
		voiplink.cpp \
21
		main.cpp \
22
23
24
		managerimpl.cpp \
		observer.cpp \
		samplerateconverter.cpp \
25
		eventthread.cpp \
26
27
		sipaccount.cpp \
		accountcreator.cpp \
28
        sipvoiplink.cpp \
29
		call.cpp \
30
		account.cpp \
31
		sipcall.cpp \
32
		$(IAXSOURCES) 
jpbl's avatar
jpbl committed
33

34
35
36
sflphoned_CXXFLAGS = \
		-DPREFIX=\"$(prefix)\" -DPROGSHAREDIR=\"${datadir}/sflphone\" \
		$(IAX_FLAGS)
jpbl's avatar
jpbl committed
37
38


39
40
41
42
43
44
# Add here the dynamic libraries sflphoned should be linked against
sflphoned_LDADD = \
		./libsflphone.la \
		@CCGNU2_LIBS@ \
		@CCEXT2_LIBS@ \
		$(IAX_LIBS) \
45
		$(PJSIP_LIBS) \
46
47
48
49
		@DBUSCPP_LIBS@ \
		@CCRTP_LIBS@ \
		@ALSA_LIBS@ \
		@PULSEAUDIO_LIBS@ \
50
		@SAMPLERATE_LIBS@ 
jpbl's avatar
jpbl committed
51

Emmanuel Milou's avatar
Emmanuel Milou committed
52
53
#sflphoned_LDFLAGS=-pg

54
noinst_LTLIBRARIES = libsflphone.la
jpbl's avatar
jpbl committed
55

56
noinst_HEADERS = \
57
        voiplink.h \
58
59
60
61
62
63
64
65
66
67
		managerimpl.h \
		manager.h \
		global.h \
		observer.h \
		eventthread.h \
		user_cfg.h \
		samplerateconverter.h \
		account.h \
		sipaccount.h \
		accountcreator.h \
68
        sipvoiplink.h \
69
		call.h \
70
		sipcall.h 
71
		
jpbl's avatar
jpbl committed
72
libsflphone_la_LIBADD = \
73
74
	$(src)/libs/stund/libstun.la \
    	$(src)/libs/utilspp/libutilspp.la \
jpbl's avatar
jpbl committed
75
	./audio/libaudio.la \
76
	./dbus/libdbus.la \
yanmorin's avatar
   
yanmorin committed
77
	./config/libconfig.la \
78
	./plug-in/libplugin.la \
79
	./plug-in/audiorecorder/libaudiorecorder.la \
80
	$(IAX_LIBS) 
jpbl's avatar
jpbl committed
81
82

libsflphone_la_SOURCES =