summaryrefslogtreecommitdiff
path: root/code/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'code/test/Makefile')
-rw-r--r--code/test/Makefile22
1 files changed, 15 insertions, 7 deletions
diff --git a/code/test/Makefile b/code/test/Makefile
index a6ebb90..6c5a7e5 100644
--- a/code/test/Makefile
+++ b/code/test/Makefile
@@ -9,25 +9,33 @@ dep=../core/libecpcore.a ../core/crypto/libecpcr.a ../core/htable/libecpht.a ../
all: client server basic stress proxy pr_server pr_client
client: client.o init.o $(dep)
- $(CC) -o $@ $(LDFLAGS) $< init.o $(dep)
+ $(CC) -o $@ $< init.o $(dep) $(LDFLAGS)
server: server.o init.o $(dep)
- $(CC) -o $@ $(LDFLAGS) $< init.o $(dep)
+ $(CC) -o $@ $< init.o $(dep) $(LDFLAGS)
basic: basic.o init.o $(dep)
- $(CC) -o $@ $(LDFLAGS) $< init.o $(dep)
+ $(CC) -o $@ $< init.o $(dep) $(LDFLAGS)
stress: stress.o init.o $(dep)
- $(CC) -o $@ $(LDFLAGS) $< init.o $(dep)
+ $(CC) -o $@ $< init.o $(dep) $(LDFLAGS)
proxy: proxy.o init_proxy.o $(dep)
- $(CC) -o $@ $(LDFLAGS) $< init_proxy.o $(dep)
+ $(CC) -o $@ $< init_proxy.o $(dep) $(LDFLAGS)
pr_server: pr_server.o init_proxy.o $(dep)
- $(CC) -o $@ $(LDFLAGS) $< init_proxy.o $(dep)
+ $(CC) -o $@ $< init_proxy.o $(dep) $(LDFLAGS)
pr_client: pr_client.o init_proxy.o $(dep)
- $(CC) -o $@ $(LDFLAGS) $< init_proxy.o $(dep)
+ $(CC) -o $@ $< init_proxy.o $(dep) $(LDFLAGS)
+
+opus_root=../../../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