aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorTaras Kondratiuk <taras.kondratiuk@linaro.org>2014-05-06 15:14:38 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2014-05-12 14:08:59 +0400
commit4748b6af6ca9693899899fecbe612d7c3ada40d5 (patch)
treebc90fafb753ebf78e628e377e475ea1b21148836 /Makefile.inc
parentefd8297795c8cd54cff28443f40e04ec14fdf839 (diff)
tests: Do not use platform directory
Test applications should not differ from any other ODP application in a way they use ODP library and headers. They shall use them from DESTDIR. The fact that they are placed in ODP repo do not allow them to abuse it. By using directly library and includes from platform directly we break modularity. Tests' Makefile must have information about platform's include directory structure. So tests' Makefile should be updated every time structure changes. Things get even worse if platform include directory structure differs between implementations (which is a valid case). Removing direct access to platform directory also makes hard to build and install library from tests' Makefile. Only unconditional install is possible, but this adds unnecessary overhead on each test build. So this patch removes this ability. Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 2fa3d97b5..866ab799f 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -7,6 +7,7 @@ PLATFORM ?= linux-generic
OBJ_DIR = ./obj
ODP_DIR = $(ODP_ROOT)/platform/$(PLATFORM)
+export DESTDIR = $(ODP_ROOT)/build
CC ?= gcc
LD ?= gcc