summaryrefslogtreecommitdiff
path: root/ecp/src
diff options
context:
space:
mode:
Diffstat (limited to 'ecp/src')
-rw-r--r--ecp/src/ecp/Makefile2
-rw-r--r--ecp/src/ecp/common.mk7
-rw-r--r--ecp/src/ecp/crypto/Makefile2
-rw-r--r--ecp/src/platform/common.mk4
4 files changed, 7 insertions, 8 deletions
diff --git a/ecp/src/ecp/Makefile b/ecp/src/ecp/Makefile
index 5fed12a..4590dd3 100644
--- a/ecp/src/ecp/Makefile
+++ b/ecp/src/ecp/Makefile
@@ -2,7 +2,7 @@ include common.mk
obj = core.o timer.o dir.o dir_srv.o
subdirs = crypto $(platform_dir)
-build_dir = ../build-$(platform)
+build_dir = ../../build-$(platform)
include $(platform_dir)/platform_obj.mk
diff --git a/ecp/src/ecp/common.mk b/ecp/src/ecp/common.mk
index a2f8663..4c511f8 100644
--- a/ecp/src/ecp/common.mk
+++ b/ecp/src/ecp/common.mk
@@ -1,9 +1,8 @@
platform ?= posix
pwd := $(abspath $(dir $(firstword $(MAKEFILE_LIST))))
-ecp_dir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))/..)
-src_dir := $(abspath $(ecp_dir)/src)
-platform_dir = $(abspath $(ecp_dir)/platform/$(platform))
+src_dir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))/..)
+platform_dir = $(abspath $(src_dir)/platform/$(platform))
include $(platform_dir)/platform.mk
-CFLAGS += -I$(src_dir) -I$(platform_dir)
+CFLAGS += -I$(src_dir)/ecp -I$(platform_dir)
diff --git a/ecp/src/ecp/crypto/Makefile b/ecp/src/ecp/crypto/Makefile
index b1d2996..3a50965 100644
--- a/ecp/src/ecp/crypto/Makefile
+++ b/ecp/src/ecp/crypto/Makefile
@@ -1,5 +1,5 @@
include ../common.mk
-ssl_dir = ../../../ext/libressl
+ssl_dir = ../../../../ext/libressl
CFLAGS += -I$(ssl_dir)/include
MAKEFLAGS += -I$(pwd)/..
diff --git a/ecp/src/platform/common.mk b/ecp/src/platform/common.mk
index d49792b..18d130d 100644
--- a/ecp/src/platform/common.mk
+++ b/ecp/src/platform/common.mk
@@ -1,3 +1,3 @@
platform ?= posix
-src_dir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../src)
-include $(src_dir)/common.mk
+src_dir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))/..)
+include $(src_dir)/ecp/common.mk