summaryrefslogtreecommitdiff
path: root/ecp/test/Makefile
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-08-05 03:38:22 +0200
committerUros Majstorovic <majstor@majstor.org>2020-08-05 03:38:22 +0200
commit5cd610a07468137066ea4daa5176c3e7045113b0 (patch)
treea6a5b572572f8f37ec2cb87332fa46e9bcc53aa7 /ecp/test/Makefile
parent2473a7d5c51806ab8651cd3c4e07a15b62084eb5 (diff)
ecp moved to root; fixed utils and tests
Diffstat (limited to 'ecp/test/Makefile')
-rw-r--r--ecp/test/Makefile51
1 files changed, 51 insertions, 0 deletions
diff --git a/ecp/test/Makefile b/ecp/test/Makefile
new file mode 100644
index 0000000..863a3ef
--- /dev/null
+++ b/ecp/test/Makefile
@@ -0,0 +1,51 @@
+include ../src/Makefile.posix
+CFLAGS += -I../src -I../util -Wno-int-to-void-pointer-cast
+
+dep=../src/build-posix/*.a ../util/libecputil.a
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
+
+all: basic client server echo frag stress vcs vc_server vc_client vc_client_t
+
+basic: basic.o init.o $(dep)
+ $(CC) -o $@ $< init.o $(dep) $(LDFLAGS)
+
+client: client.o init.o $(dep)
+ $(CC) -o $@ $< init.o $(dep) $(LDFLAGS)
+
+server: server.o init.o $(dep)
+ $(CC) -o $@ $< init.o $(dep) $(LDFLAGS)
+
+echo: echo.o init.o $(dep)
+ $(CC) -o $@ $< init.o $(dep) $(LDFLAGS)
+
+frag: frag.o init.o $(dep)
+ $(CC) -o $@ $< init.o $(dep) $(LDFLAGS)
+
+stress: stress.o init.o $(dep)
+ $(CC) -o $@ $< init.o $(dep) $(LDFLAGS)
+
+vcs: vcs.o init_vconn.o $(dep)
+ $(CC) -o $@ $< init_vconn.o $(dep) $(LDFLAGS)
+
+vc_server: vc_server.o init_vconn.o $(dep)
+ $(CC) -o $@ $< init_vconn.o $(dep) $(LDFLAGS)
+
+vc_client: vc_client.o init_vconn.o $(dep)
+ $(CC) -o $@ $< init_vconn.o $(dep) $(LDFLAGS)
+
+vc_client_t: vc_client_t.o init_vconn.o $(dep)
+ $(CC) -o $@ $< init_vconn.o $(dep) $(LDFLAGS)
+
+
+opus_root=/opt/my/opus-1.1.5
+voip.o: voip.c
+ $(CC) $(CFLAGS) -I $(opus_root)/include -c $<
+
+voip: voip.o init.o $(dep)
+ $(CC) -o $@ $< init.o $(dep) $(opus_root)/.libs/libopus.a -lm $(LDFLAGS) -l asound
+
+clean:
+ rm -f *.o
+ rm -f basic client server echo frag stress vcs vc_server vc_client vc_client_t voip