-
Notifications
You must be signed in to change notification settings - Fork 4
/
proj_defs.mk
60 lines (46 loc) · 1.34 KB
/
proj_defs.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
52
53
54
55
56
57
58
59
#// Intel Proprietary
#//
#// Copyright 2021 Intel Corporation All Rights Reserved.
#//
#// Your use of this software is governed by the TDX Source Code LIMITED USE LICENSE.
#//
#// The Materials are provided \“as is,\” without any express or implied warranty of any kind including warranties
#// of merchantability, non-infringement, title, or fitness for a particular purpose.
# proj_defs.mk - Project related defintions
PROJ_FLAGS =
ifndef RELEASE
PROJ_FLAGS += -DDEBUG -g
endif
ifdef DBG_TRACE
PROJ_FLAGS += -DDEBUGFEATURE_TDX_DBG_TRACE
endif
ifdef SEAM_INST_SUPPORT
PROJ_FLAGS += -DSEAM_INSTRUCTIONS_SUPPORTED_IN_COMPILER
endif
ifdef PCONFIG_SUPPORT
PROJ_FLAGS += -DPCONFIG_SUPPORTED_IN_COMPILER
endif
#Versioning
ifdef TDX_MODULE_BUILD_DATE
PROJ_FLAGS += -DTDX_MODULE_BUILD_DATE=$(TDX_MODULE_BUILD_DATE)
else
PROJ_FLAGS += -DTDX_MODULE_BUILD_DATE=$(shell date +%Y%m%d)
endif
ifdef TDX_MODULE_BUILD_NUM
PROJ_FLAGS += -DTDX_MODULE_BUILD_NUM=$(TDX_MODULE_BUILD_NUM)
else
PROJ_FLAGS += -DTDX_MODULE_BUILD_NUM=0
endif
ifdef TDX_MODULE_SEAM_SVN
PROJ_FLAGS += -DTDX_MODULE_SEAM_SVN=$(TDX_MODULE_SEAM_SVN)
else
PROJ_FLAGS += -DTDX_MODULE_SEAM_SVN=0
endif
ifndef TDX_MODULE_MINOR_VER
PROJ_FLAGS += -DTDX_MODULE_MINOR_VER=0
endif
ifndef TDX_MODULE_MAJOR_VER
PROJ_FLAGS += -DTDX_MODULE_MAJOR_VER=1
endif
PRODUCTION_FLAGS =
PROJ_FLAGS += -D_NO_IPP_DEPRECATED