summaryrefslogtreecommitdiff
path: root/code/test
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2018-01-11 18:03:01 +0100
committerUros Majstorovic <majstor@majstor.org>2018-01-11 18:03:01 +0100
commitdea99b85dc52341265ae2e8463afee8a9709127a (patch)
tree4d4c52d046e76374314d5c88137e406a3d238ec2 /code/test
parenteb8c9fe176721d5e8dd24febec88e1665ca70c26 (diff)
fe310 platform introdiced
Diffstat (limited to 'code/test')
-rw-r--r--code/test/Makefile7
-rw-r--r--code/test/init_vconn.c2
-rw-r--r--code/test/vc_client.c2
-rw-r--r--code/test/vc_server.c2
-rw-r--r--code/test/vcs.c2
5 files changed, 8 insertions, 7 deletions
diff --git a/code/test/Makefile b/code/test/Makefile
index ec9730f..26b89f6 100644
--- a/code/test/Makefile
+++ b/code/test/Makefile
@@ -1,7 +1,8 @@
-CFLAGS=-I../core -I../vconn -I../util -O3 -Wno-int-to-void-pointer-cast
-LDFLAGS=-lm -pthread
+include ../Makefile.platform
+CFLAGS=$(CFLAGS_PL) -I../core -I../util -Wno-int-to-void-pointer-cast
+LDFLAGS=$(LDFLAGS_PL)
-dep=../core/libecpcore.a ../core/crypto/libecpcr.a ../core/htable/libecpht.a ../core/posix/libecptr.a ../core/posix/libecptm.a ../vconn/libecpvconn.a ../util/libecputil.a
+dep=../core/libecpcore.a ../core/crypto/libecpcr.a ../core/htable/libecpht.a ../core/posix/libecptr.a ../core/posix/libecptm.a ../core/vconn/libecpvconn.a ../util/libecputil.a
%.o: %.c
$(CC) $(CFLAGS) -c $<
diff --git a/code/test/init_vconn.c b/code/test/init_vconn.c
index 2e82598..29c8db5 100644
--- a/code/test/init_vconn.c
+++ b/code/test/init_vconn.c
@@ -3,7 +3,7 @@
#include <unistd.h>
#include "core.h"
-#include "vconn.h"
+#include "vconn/vconn.h"
static int v_rng(void *buf, size_t bufsize) {
int fd;
diff --git a/code/test/vc_client.c b/code/test/vc_client.c
index 9ea3d1b..e654e76 100644
--- a/code/test/vc_client.c
+++ b/code/test/vc_client.c
@@ -4,7 +4,7 @@
#include <stdlib.h>
#include "core.h"
-#include "vconn.h"
+#include "vconn/vconn.h"
#include "util.h"
ECPContext ctx;
diff --git a/code/test/vc_server.c b/code/test/vc_server.c
index 8525ad4..04b8104 100644
--- a/code/test/vc_server.c
+++ b/code/test/vc_server.c
@@ -4,7 +4,7 @@
#include <stdlib.h>
#include "core.h"
-#include "vconn.h"
+#include "vconn/vconn.h"
#include "util.h"
ECPContext ctx;
diff --git a/code/test/vcs.c b/code/test/vcs.c
index 1dbf67d..23e2557 100644
--- a/code/test/vcs.c
+++ b/code/test/vcs.c
@@ -5,7 +5,7 @@
#include "core.h"
#include "util.h"
-#include "vconn.h"
+#include "vconn/vconn.h"
ECPContext ctx;
ECPSocket sock;