summaryrefslogtreecommitdiff
path: root/ecp/src/common.mk
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/src/common.mk
parent6594778ab99958c3efb7325e4203bb4e593fc1a6 (diff)
build fix
Diffstat (limited to 'ecp/src/common.mk')
-rw-r--r--ecp/src/common.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/ecp/src/common.mk b/ecp/src/common.mk
new file mode 100644
index 0000000..a2f8663
--- /dev/null
+++ b/ecp/src/common.mk
@@ -0,0 +1,9 @@
+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))
+
+include $(platform_dir)/platform.mk
+CFLAGS += -I$(src_dir) -I$(platform_dir)