Makefile.am 2.44 KB
Newer Older
1
sflcodecdir = $(libdir)/sflphone/codecs/
jpbl's avatar
jpbl committed
2
3

noinst_LTLIBRARIES = libaudio.la
4
noinst_PROGRAMS = libcodec_ulaw.so libcodec_alaw.so libcodec_gsm.so libcodec_speex.so
5
6
7

libcodec_ulaw_so_SOURCES = ulaw.cpp
libcodec_ulaw_so_CFLAGS = -fPIC -g -Wall 
8
libcodec_ulaw_so_LDFLAGS = -shared -lc
9
10
11

libcodec_alaw_so_SOURCES = alaw.cpp
libcodec_alaw_so_CFLAGS = -fPIC -g -Wall 
12
libcodec_alaw_so_LDFLAGS = -shared -lc
13
14
15

libcodec_gsm_so_SOURCES = gsmcodec.cpp
libcodec_gsm_so_CFLAGS = -fPIC -g -Wall 
16
17
18
19
20
libcodec_gsm_so_LDFLAGS = -shared -lc -lgsm

libcodec_speex_so_SOURCES = CodecSpeex.cpp
libcodec_speex_so_CFLAGS = -fPIC -g -Wall 
libcodec_speex_so_LDFLAGS = -shared -lc -lspeex
jpbl's avatar
jpbl committed
21
22

if USE_SPEEX
yanmorin's avatar
yanmorin committed
23
SPEEX_SOURCES_CPP=CodecSpeex.cpp
jpbl's avatar
jpbl committed
24
25
26
SPEEX_FLAG=-DHAVE_SPEEX
SPEEX_LIB=-lspeex
else
yanmorin's avatar
yanmorin committed
27
SPEEX_SOURCES_CPP=
jpbl's avatar
jpbl committed
28
29
30
31
SPEEX_FLAG=
SPEEX_LIB=
endif

Emmanuel Milou's avatar
Emmanuel Milou committed
32
#SUBDIRS = ilbc
33
 
34
libaudio_la_SOURCES =      audiofile.cpp	 tonelist.cpp     \
Emmanuel Milou's avatar
Emmanuel Milou committed
35
audiortp.cpp         dtmf.cpp   tone.cpp  audiolayer.cpp audiodevice.cpp  dtmfgenerator.cpp   \
36
tonegenerator.cpp   codecDescriptor.cpp \
yanmorin's avatar
yanmorin committed
37
audioloop.cpp ringbuffer.cpp $(SPEEX_SOURCES_CPP)
jpbl's avatar
jpbl committed
38

39
40
AM_CXXFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libs $(libccext2_CFLAGS) $(libdbuscpp_CFLAGS) $(libccrtp1_CFLAGS) $(USER_INCLUDES) \
 	      -DCODECS_DIR=\""$(sflcodecdir)"\"	
yanmorin's avatar
yanmorin committed
41
libaudio_la_CPPFLAGS = $(SPEEX_FLAG)
jpbl's avatar
jpbl committed
42

43
noinst_HEADERS = audioloop.h       common.h ringbuffer.h           audiofile.h  \
44
 tonelist.h         audiortp.h audiocodec.h    audiolayer.h audiodevice.h \
Emmanuel Milou's avatar
Emmanuel Milou committed
45
 dtmfgenerator.h         tonegenerator.h     \
yanmorin's avatar
   
yanmorin committed
46
 codecDescriptor.h    dtmf.h tone.h \
jpbl's avatar
jpbl committed
47
 CodecSpeex.h
48

49
50
install-exec-local:	install-libcodec_ulaw_so install-libcodec_alaw_so install-libcodec_gsm_so install-libcodec_speex_so
uninstall-local:  uninstall-libcodec_ulaw_so uninstall-libcodec_alaw_so uninstall-libcodec_gsm_so uninstall-libcodec_speex_so
51
52

install-libcodec_ulaw_so: libcodec_ulaw.so
53
	mkdir -p $(sflcodecdir)
54
55
56
57
58
	$(INSTALL_PROGRAM)  libcodec_ulaw.so $(sflcodecdir)
install-libcodec_alaw_so: libcodec_alaw.so
	$(INSTALL_PROGRAM)  libcodec_alaw.so $(sflcodecdir)
install-libcodec_gsm_so: libcodec_gsm.so
	$(INSTALL_PROGRAM)  libcodec_gsm.so $(sflcodecdir)
59
60
install-libcodec_speex_so: libcodec_speex.so
	$(INSTALL_PROGRAM)  libcodec_speex.so $(sflcodecdir)
61
62
63
64
65
66

uninstall-libcodec_ulaw_so:
	rm -f $(sflcodecdir)/libcodec_ulaw.so
uninstall-libcodec_alaw_so:
	rm -f $(sflcodecdir)/libcodec_alaw.so
uninstall-libcodec_gsm_so:
67
	rm -f $(sflcodecdir)/libcodec_gsm.so  
68
69
uninstall-libcodec_speex_so:
	rm -f $(sflcodecdir)/libcodec_speex.so  
70
	rm -rf $(sflcodecdir)