Makefile.am 1.74 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
15
16
17
18
19
IAX_LIBS = $(top_builddir)/libs/libiax2/src/libiax.la
IAX_FLAGS = -DUSE_IAX
IAX_CFLAGS = -I$(top_srcdir)/libs/libiax2/src/
IAXSOURCES = iaxvoiplink.cpp
IAXHEADERS = iaxvoiplink.h

jpbl's avatar
jpbl committed
20
21
SUBDIRS = audio config gui $(ZEROCONFDIR)

yanmorin's avatar
   
yanmorin committed
22
23
sflphoned_SOURCES = eventthread.cpp 	main.cpp 	voIPLink.cpp \
		managerimpl.cpp	observer.cpp \
yanmorin's avatar
   
yanmorin committed
24
25
26
		account.cpp sipaccount.cpp iaxaccount.cpp accountcreator.cpp \
                sipvoiplink.cpp call.cpp sipcall.cpp \
		$(IAXSOURCES)
jpbl's avatar
jpbl committed
27

yanmorin's avatar
   
yanmorin committed
28
sflphoned_CXXFLAGS = -DPREFIX=\"$(prefix)\" -DPROGSHAREDIR=\"${datadir}/sflphone\" $(ZEROCONFFLAGS) $(IAX_FLAGS)
jpbl's avatar
jpbl committed
29
30

#sflphoned_LDFLAGS = -static
yanmorin's avatar
   
yanmorin committed
31
32
sflphoned_LDADD =  ./libsflphone.la $(SFLPHONE_LIBS) $(ZEROCONFLIB) $(LIB_DNSSD) $(IAX_LIBS)
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libs -I$(srcdir)/audio/pacpp/include  $(libccext2_CFLAGS) $(libccgnu2_CFLAGS) $(portaudio_CFLAGS) -I$(top_srcdir)/libs/portaudio/pa_common $(IAX_CFLAGS)
jpbl's avatar
jpbl committed
33
34
35
36
37
38

#libsflphone_la_LDFLAGS= -version-info 0:1:0
libsflphone_la_LIBADD = \
	$(top_builddir)/libs/eXosip2/libeXosip2.la \
	$(top_builddir)/libs/stund/libstun.la \
	$(top_builddir)/libs/utilspp/libutilspp.la \
yanmorin's avatar
   
yanmorin committed
39
	$(top_builddir)/libs/portaudio/libportaudio.la \
jpbl's avatar
jpbl committed
40
41
	./audio/libaudio.la \
	./gui/libguiframework.la \
yanmorin's avatar
   
yanmorin committed
42
43
	./config/libconfig.la \
        $(IAX_LIBS)
jpbl's avatar
jpbl committed
44
45
46
47

libsflphone_la_SOURCES =

noinst_LTLIBRARIES = libsflphone.la
yanmorin's avatar
   
yanmorin committed
48
49
noinst_HEADERS = managerimpl.h manager.h global.h observer.h eventthread.h user_cfg.h \
                 voIPLink.h \
yanmorin's avatar
   
yanmorin committed
50
51
52
		 account.h sipaccount.h iaxaccount.h accountcreator.h \
                 sipvoiplink.h  call.h  sipcall.h \
		 $(IAXHEADERS)
yanmorin's avatar
   
yanmorin committed
53