summaryrefslogtreecommitdiff
path: root/ecp/src/common.mk
blob: a2f86639d12e023c0285c373259a05a3d27431cd (plain)
1
2
3
4
5
6
7
8
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)