summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
new file mode 100644
index 0000000..49bcf0d
--- /dev/null
+++ b/test/Makefile
@@ -0,0 +1,29 @@
+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_$@