Makefile.am 1.86 KB
Newer Older
jpbl's avatar
jpbl committed
1
2
3
4
5
6
7
8
9
10
11
12
13
libexec_PROGRAMS = sflphoned
bin_SCRIPTS = sflphone

if USE_ZEROCONF
ZEROCONFDIR = zeroconf
ZEROCONFLIB = zeroconf/libzeroconf.la
ZEROCONFFLAGS = -DUSE_ZEROCONF
else
ZEROCONFDIR =
ZEROCONFLIB =
ZEROCONFFLAGS =  
endif

yanmorin's avatar
   
yanmorin committed
14
if USE_IAX
yanmorin's avatar
   
yanmorin committed
15
16
17
IAX_LIBS = $(top_builddir)/libs/libiax2/src/libiax.la
IAX_FLAGS = -DUSE_IAX
IAX_CFLAGS = -I$(top_srcdir)/libs/libiax2/src/
18
19
IAXSOURCES = iaxaccount.cpp iaxvoiplink.cpp iaxcall.cpp
IAXHEADERS = iaxaccount.h iaxvoiplink.h iaxcall.h
yanmorin's avatar
   
yanmorin committed
20
21
22
23
24
25
26
else
IAX_LIBS = 
IAX_FLAGS =
IAX_CFLAGS =
IAXSOURCES =
IAXHEADERS =
endif
yanmorin's avatar
   
yanmorin committed
27

28
29
30
31
32
33
34
35
if USE_SAMPLERATE
SAMPLERATE_FLAG=-DUSE_SAMPLERATE
SAMPLERATE_LIB =-lsamplerate
else
SAMPLERATE_FLAG=
SAMPLERATE_LIB=
endif

jpbl's avatar
jpbl committed
36
37
SUBDIRS = audio config gui $(ZEROCONFDIR)

yanmorin's avatar
   
yanmorin committed
38
39
sflphoned_SOURCES = eventthread.cpp 	main.cpp 	voIPLink.cpp \
		managerimpl.cpp	observer.cpp \
yanmorin's avatar
   
yanmorin committed
40
		account.cpp sipaccount.cpp accountcreator.cpp \
yanmorin's avatar
   
yanmorin committed
41
42
                sipvoiplink.cpp call.cpp sipcall.cpp \
		$(IAXSOURCES)
jpbl's avatar
jpbl committed
43

44
sflphoned_CXXFLAGS = -DPREFIX=\"$(prefix)\" -DPROGSHAREDIR=\"${datadir}/sflphone\" $(ZEROCONFFLAGS) $(IAX_FLAGS) $(SFLPHONE_CFLAGS)
jpbl's avatar
jpbl committed
45
46

#sflphoned_LDFLAGS = -static
47
sflphoned_LDADD =  ./libsflphone.la $(SFLPHONE_LIBS) $(ZEROCONFLIB) $(LIB_DNSSD) $(IAX_LIBS) $(EXOSIP_LIBS)
48
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libs $(libccext2_CFLAGS) $(libccgnu2_CFLAGS) $(IAX_CFLAGS) $(USER_INCLUDES) $(SAMPLERATE_FLAG)
jpbl's avatar
jpbl committed
49
50
51
52
53
54
55

#libsflphone_la_LDFLAGS= -version-info 0:1:0
libsflphone_la_LIBADD = \
	$(top_builddir)/libs/stund/libstun.la \
	$(top_builddir)/libs/utilspp/libutilspp.la \
	./audio/libaudio.la \
	./gui/libguiframework.la \
yanmorin's avatar
   
yanmorin committed
56
	./config/libconfig.la \
57
	$(IAX_LIBS) $(SAMPLERATE_LIB)
jpbl's avatar
jpbl committed
58
59
60
61

libsflphone_la_SOURCES =

noinst_LTLIBRARIES = libsflphone.la
yanmorin's avatar
   
yanmorin committed
62
63
noinst_HEADERS = managerimpl.h manager.h global.h observer.h eventthread.h user_cfg.h \
                 voIPLink.h \
yanmorin's avatar
   
yanmorin committed
64
		 account.h sipaccount.h accountcreator.h \
yanmorin's avatar
   
yanmorin committed
65
66
                 sipvoiplink.h  call.h  sipcall.h \
		 $(IAXHEADERS)
yanmorin's avatar
   
yanmorin committed
67