aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/contrib/testconv/Makefile
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-03-13 14:33:37 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2014-06-05 14:00:47 +0200
commit136a319e910eec81ea9ff8f8a34c324557109d03 (patch)
treeaa8cc97a2b675a0aaeec42653ae2cc201994fcaf /openbsc/contrib/testconv/Makefile
parent239a853f40879a68487057fbcd0a09a8d3625185 (diff)
mgcp: Add CLI tool to test audio conversion
This tool uses mgcp_transcode.c to convert audio data from stdin to stdout. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/contrib/testconv/Makefile')
-rw-r--r--openbsc/contrib/testconv/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/openbsc/contrib/testconv/Makefile b/openbsc/contrib/testconv/Makefile
new file mode 100644
index 000000000..90adeccca
--- /dev/null
+++ b/openbsc/contrib/testconv/Makefile
@@ -0,0 +1,17 @@
+
+OBJS = testconv_main.o mgcp_transcode.o
+
+CC = gcc
+CFLAGS = -O0 -ggdb -Wall
+LDFLAGS =
+CPPFLAGS = -I../.. -I../../include $(shell pkg-config --cflags libosmocore) $(shell pkg-config --cflags libbcg729)
+LIBS = ../../src/libmgcp/libmgcp.a ../../src/libcommon/libcommon.a $(shell pkg-config --libs libosmocore) $(shell pkg-config --libs libbcg729) -lgsm -lrt
+
+testconv: $(OBJS)
+ $(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
+
+testconv_main.o: testconv_main.c
+mgcp_transcode.o: ../../src/osmo-bsc_mgcp/mgcp_transcode.c
+
+$(OBJS):
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<