-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile.variable
27 lines (26 loc) · 1009 Bytes
/
Makefile.variable
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
####################################
# Get the directory of the Makefile
####################################
WORKSPACE_DIR := $(CURDIR)
####################################
# Define Common Macros
####################################
MAXIMUM_CPU_CORES?=$(shell grep -c ^processor /proc/cpuinfo)
COMPILER_NAME=gcc-linaro-7.2.1-2017.11-x86_64_arm-eabi
####################################
# Define Common Dirs
####################################
SW_DIR= $(WORKSPACE_DIR)/software
TOOLS_DIR= $(WORKSPACE_DIR)/tools
CMAKE_PROJECT_DIR = $(TOOLS_DIR)/build/CMake
BUILD_DIR = $(CMAKE_PROJECT_DIR)/Build
BUILD_TESTS_DIR = $(CMAKE_PROJECT_DIR)/Test
INSTALL_DIR = $(CMAKE_PROJECT_DIR)/output
BINARY_INSTALL_DIR = $(INSTALL_DIR)/build
TESTS_INSTALL_DIR = $(INSTALL_DIR)/tests
UNIT_TESTS_INSTALL_DIR = $(TESTS_INSTALL_DIR)/unit
COMPILER_DIR=/opt/compilers
TOOLCHAIN_DIR=$(COMPILER_DIR)/$(COMPILER_NAME)
CMOCK_DIR = $(TOOLS_DIR)/frameworks/CMock
UNITY_ROOT= $(CMOCK_DIR)/vendor/unity
####################################