Makefile.am 1.99 KB
Newer Older
Emmanuel Milou's avatar
Emmanuel Milou committed
1
sflcodecdir = $(libdir)/sflphone/codecs
2
bin_PROGRAMS = sflphoned
jpbl's avatar
jpbl committed
3

4

jpbl's avatar
jpbl committed
5
6
7
8
9
10
11
12
13
14
if USE_ZEROCONF
ZEROCONFDIR = zeroconf
ZEROCONFLIB = zeroconf/libzeroconf.la
ZEROCONFFLAGS = -DUSE_ZEROCONF
else
ZEROCONFDIR =
ZEROCONFLIB =
ZEROCONFFLAGS =  
endif

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

31
32
ALSAFLAG= -lasound

33
SUBDIRS = audio config contact dbus memmanager video mixer $(ZEROCONFDIR)
jpbl's avatar
jpbl committed
34

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

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

#sflphoned_LDFLAGS = -static
44
sflphoned_LDADD =  ./libsflphone.la $(SFLPHONE_LIBS) $(ZEROCONFLIB) $(LIB_DNSSD) $(IAX_LIBS) $(EXOSIP_LIBS) $(ALSAFLAG) 
45
46
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libs $(libccext2_CFLAGS) $(libccgnu2_CFLAGS) $(IAX_CFLAGS) $(USER_INCLUDES) $(libdbuscpp_CFLAGS) \
	      -DCODECS_DIR=\""$(sflcodecdir)"\" 
Emmanuel Milou's avatar
nothing    
Emmanuel Milou committed
47
	      -DENABLE_TRACE
jpbl's avatar
jpbl committed
48
49


50
# libsflphone_la_LDFLAGS= -version-info 0:1:0
jpbl's avatar
jpbl committed
51
52
53
54
libsflphone_la_LIBADD = \
	$(top_builddir)/libs/stund/libstun.la \
	$(top_builddir)/libs/utilspp/libutilspp.la \
	./audio/libaudio.la \
55
	./dbus/libdbus.la \
yanmorin's avatar
   
yanmorin committed
56
	./config/libconfig.la \
57
	./contact/libcontact.la \
58
59
60
	./memmanager/libmemmanager.la \
	./mixer/libmixer.la \
	./video/libvideo.la \
yanmorin's avatar
yanmorin committed
61
	$(IAX_LIBS)
jpbl's avatar
jpbl committed
62
63
64
65

libsflphone_la_SOURCES =

noinst_LTLIBRARIES = libsflphone.la
yanmorin's avatar
   
yanmorin committed
66
noinst_HEADERS = managerimpl.h manager.h global.h observer.h eventthread.h user_cfg.h \
67
                 voiplink.h \
yanmorin's avatar
   
yanmorin committed
68
		 account.h sipaccount.h accountcreator.h \
yanmorin's avatar
   
yanmorin committed
69
70
                 sipvoiplink.h  call.h  sipcall.h \
		 $(IAXHEADERS)
yanmorin's avatar
   
yanmorin committed
71