-
Notifications
You must be signed in to change notification settings - Fork 11
/
include.mk
51 lines (40 loc) · 1.29 KB
/
include.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
################################################################################
# Shared targets used across Makefiles in Galapagos. Contains:
# - guard-%
#
# Author: Varun Sharma
#
# Changelog:
# 1.0 - Apr. 9 2019 - Created (VS)
################################################################################
ifndef GALAPAGOS_PATH
$(error GALAPAGOS_PATH is not set)
endif
ifndef GALAPAGOS_HLS_VERSION
$(error GALAPAGOS_HLS_VERSION is not set)
endif
ifndef GALAPAGOS_PART
$(error GALAPAGOS_PART is not set)
endif
ifndef GALAPAGOS_VIVADO_PATH
$(error GALAPAGOS_VIVADO_PATH is not set)
endif
ifndef GALAPAGOS_BOARD_NAME
$(error GALAPAGOS_BOARD_NAME is not set)
endif
ifndef GALAPAGOS_HLS_PATH
$(error GALAPAGOS_HLS_PATH is not set)
endif
ifndef GALAPAGOS_PART_FAMILY
$(error GALAPAGOS_PART_FAMILY is not set)
endif
INCLUDE_UTIL=-I $(GALAPAGOS_PATH)/util/Catch2/single_include/catch2 -I$(GALAPAGOS_PATH)/util/spdlog/include
# GALAPAGOS_BOARD is not asserted because it's optional to have a board file
# Asserts that the specified variable exists. It can be used as a prerequisite
# for running other targets. E.g. adding guard-FOO to a target enforces that
# the variable FOO is defined before running the target.
guard-%:
@ if [ "${${*}}" = "" ]; then \
echo "Variable $* not set"; \
exit 1; \
fi