summaryrefslogtreecommitdiff
path: root/test/Makefile
blob: 82fc79f382ddc9cb30611c01c43b2ca759375ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
CFLAGS=`cppunit-config --cflags`
LIBS=`cppunit-config --libs`

all: connectivity amrwb init rtp srtp opus raw

connectivity:
	g++ -g test_$@.cc -L../src/.libs -llrtp -I../src -o test_$@
	LD_LIBRARY_PATH=../src/.libs ./test_$@

amrwb:
	g++ -g test_$@.cc -L../src/.libs -llrtp -lm -I../src -o test_$@
	LD_LIBRARY_PATH=../src/.libs ./test_$@

opus:
	g++ -g test_$@.cc -L../src/.libs -llrtp -lm -I../src -lopus -lao -o test_$@
	LD_LIBRARY_PATH=../src/.libs ./test_$@

init:
	g++ -g test_$@.cc -L../src/.libs -llrtp -I../src -o test_$@
	LD_LIBRARY_PATH=../src/.libs ./test_$@

raw:
	g++ -g test_$@.cc -L../src/.libs -llrtp -I../src -o test_$@
	LD_LIBRARY_PATH=../src/.libs ./test_$@

rtp:
	g++ -g test_$@.cc ../src/rtp.cc -o test_$@
	./test_$@

srtp:
	g++ -g -DUSE_CRYPTO test_$@.cc ../src/rtp.cc ../src/srtp.cc ../src/asc2bin.cc -lsrtp -o test_$@
	./test_$@

asc2bin:
	g++ ${CFLAGS} ${LIBS} -g test.cc test_$@.cc -o test_$@
	./test_$@