forked from black-parrot/black-parrot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.common
27 lines (22 loc) · 1010 Bytes
/
Makefile.common
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
## Set common environment variables
TOP ?= $(shell git rev-parse --show-toplevel)
## Export the variables for environment substitutions in makefile
export BP_COMMON_DIR := $(TOP)/bp_common
export BP_FE_DIR := $(TOP)/bp_fe
export BP_BE_DIR := $(TOP)/bp_be
export BP_ME_DIR := $(TOP)/bp_me
export BP_TOP_DIR := $(TOP)/bp_top
export BP_EXTERNAL_DIR := $(TOP)/external
export BASEJUMP_STL_DIR := $(BP_EXTERNAL_DIR)/basejump_stl
export HARDFLOAT_DIR := $(BP_EXTERNAL_DIR)/HardFloat
export BP_TOOLS_DIR ?= $(TOP)/tools
export BP_HDK_DIR ?= $(TOP)/../hdk
export BP_SDK_DIR ?= $(TOP)/../sdk
## Setup CAD tools
# If the machine you are working on is bsg_cadenv compliant, then you do not
# need to setup the cad tools, simply put bsg_cadenv in the same root dir.
BSG_CADENV_DIR ?= $(TOP)/external/bsg_cadenv
-include $(BSG_CADENV_DIR)/cadenv.mk
-include $(BP_TOOLS_DIR)/Makefile.common
-include $(BP_SDK_DIR)/Makefile.common
-include $(BP_HDK_DIR)/Makefile.common