-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.mk
27 lines (24 loc) · 1.04 KB
/
config.mk
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
# -----------------------------------------------
# Configure project paths
#
# - assumes PROJ_ROOT is defined by calling Makefile
# - at a minimum, must provide:
#
# LIB_ROOT: path to common FPGA library providing scripts/tools
# SRC_ROOT: path to main source (i.e. RTL) library
# CFG_ROOT__LOCAL: path to local config files (for device config, etc.)
# OUT_ROOT__LOCAL: path to local output directory
#
# -----------------------------------------------
LIB_ROOT := $(abspath $(PROJ_ROOT))
SRC_ROOT := $(abspath $(PROJ_ROOT)/src)
CFG_ROOT__LOCAL := $(abspath $(PROJ_ROOT)/cfg)
OUTPUT_ROOT__LOCAL := $(abspath $(PROJ_ROOT)/.out)
# -----------------------------------------------
# Include paths to common scripts/tools
# -----------------------------------------------
include $(LIB_ROOT)/paths.mk
# -----------------------------------------------
# Include standard project Makefile snippet
# -----------------------------------------------
include $(SCRIPTS_ROOT)/Makefiles/proj_config_base.mk