summaryrefslogtreecommitdiff
path: root/ecp/platform/posix
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-01-31 22:22:19 +0100
committerUros Majstorovic <majstor@majstor.org>2022-01-31 22:22:19 +0100
commit76be7c9a79da62e0a52d932bdfdf56671c82e33d (patch)
tree6385d50acb932766a11ded22901f1b333eb9856d /ecp/platform/posix
parent6594778ab99958c3efb7325e4203bb4e593fc1a6 (diff)
build fix
Diffstat (limited to 'ecp/platform/posix')
-rw-r--r--ecp/platform/posix/Makefile3
-rw-r--r--ecp/platform/posix/platform.mk2
-rw-r--r--ecp/platform/posix/platform_obj.mk2
3 files changed, 5 insertions, 2 deletions
diff --git a/ecp/platform/posix/Makefile b/ecp/platform/posix/Makefile
index aebb994..1a3502a 100644
--- a/ecp/platform/posix/Makefile
+++ b/ecp/platform/posix/Makefile
@@ -1,5 +1,4 @@
-include ../posix.mk
-CFLAGS += -I../../src
+include ../common.mk
obj_tr = transport.o
obj_tm = time.o
diff --git a/ecp/platform/posix/platform.mk b/ecp/platform/posix/platform.mk
new file mode 100644
index 0000000..0370c58
--- /dev/null
+++ b/ecp/platform/posix/platform.mk
@@ -0,0 +1,2 @@
+CFLAGS += -O3 -DECP_WITH_PTHREAD=1 -DECP_WITH_HTABLE=1 -DECP_WITH_RBUF=1 -DECP_WITH_MSGQ=1 -DECP_WITH_VCONN=1 -DECP_WITH_DIRSRV -DECP_DEBUG=1
+LDFLAGS += -lm -pthread
diff --git a/ecp/platform/posix/platform_obj.mk b/ecp/platform/posix/platform_obj.mk
new file mode 100644
index 0000000..6ca3b8d
--- /dev/null
+++ b/ecp/platform/posix/platform_obj.mk
@@ -0,0 +1,2 @@
+obj += rbuf.o rbuf_send.o rbuf_recv.o msgq.o
+subdirs += htable vconn