Makefile.am 1.77 KB
Newer Older
1
bin_PROGRAMS = sflphoned
jpbl's avatar
jpbl committed
2 3 4 5 6 7 8 9 10 11 12

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

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

Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
30
SUBDIRS = audio config dbus $(ZEROCONFDIR)
jpbl's avatar
jpbl committed
31

32
sflphoned_SOURCES = eventthread.cpp 	main.cpp 	voiplink.cpp \
yanmorin's avatar
 
yanmorin committed
33
		managerimpl.cpp	observer.cpp \
yanmorin's avatar
 
yanmorin committed
34
		account.cpp sipaccount.cpp accountcreator.cpp \
yanmorin's avatar
 
yanmorin committed
35 36
                sipvoiplink.cpp call.cpp sipcall.cpp \
		$(IAXSOURCES)
jpbl's avatar
jpbl committed
37

yanmorin's avatar
yanmorin committed
38
sflphoned_CXXFLAGS = -DPREFIX=\"$(prefix)\" -DPROGSHAREDIR=\"${datadir}/sflphone\" $(ZEROCONFFLAGS) $(IAX_FLAGS) $(SFLPHONE_CFLAGS) $(SIP_CFLAGS)
jpbl's avatar
jpbl committed
39 40

#sflphoned_LDFLAGS = -static
41
sflphoned_LDADD =  ./libsflphone.la $(SFLPHONE_LIBS) $(ZEROCONFLIB) $(LIB_DNSSD) $(IAX_LIBS) $(EXOSIP_LIBS) 
42
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libs $(libccext2_CFLAGS) $(libccgnu2_CFLAGS) $(IAX_CFLAGS) $(USER_INCLUDES) $(libdbuscpp_CFLAGS)
jpbl's avatar
jpbl committed
43 44


45
# libsflphone_la_LDFLAGS= -version-info 0:1:0
jpbl's avatar
jpbl committed
46 47 48 49
libsflphone_la_LIBADD = \
	$(top_builddir)/libs/stund/libstun.la \
	$(top_builddir)/libs/utilspp/libutilspp.la \
	./audio/libaudio.la \
50
	./dbus/libdbus.la \
yanmorin's avatar
 
yanmorin committed
51
	./config/libconfig.la \
yanmorin's avatar
yanmorin committed
52
	$(IAX_LIBS)
jpbl's avatar
jpbl committed
53 54 55 56

libsflphone_la_SOURCES =

noinst_LTLIBRARIES = libsflphone.la
yanmorin's avatar
 
yanmorin committed
57
noinst_HEADERS = managerimpl.h manager.h global.h observer.h eventthread.h user_cfg.h \
58
                 voiplink.h \
yanmorin's avatar
 
yanmorin committed
59
		 account.h sipaccount.h accountcreator.h \
yanmorin's avatar
 
yanmorin committed
60 61
                 sipvoiplink.h  call.h  sipcall.h \
		 $(IAXHEADERS)
yanmorin's avatar
 
yanmorin committed
62