-
Notifications
You must be signed in to change notification settings - Fork 751
/
Copy pathrun_omrddrgen.mk.ftl
83 lines (69 loc) · 2.77 KB
/
run_omrddrgen.mk.ftl
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
###############################################################################
# Copyright (c) 2017, 2018 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
# or the Apache License, Version 2.0 which accompanies this distribution and
# is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# This Source Code may also be made available under the following
# Secondary Licenses when the conditions for such availability set
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
# General Public License, version 2 with the GNU Classpath
# Exception [1] and GNU General Public License, version 2 with the
# OpenJDK Assembly Exception [2].
#
# [1] https://www.gnu.org/software/classpath/license.html
# [2] http://openjdk.java.net/legal/assembly-exception.html
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
###############################################################################
TOP_DIR := ../
include $(TOP_DIR)makelib/mkconstants.mk
include $(TOP_DIR)makelib/uma_macros.mk
ifeq (8,$(VERSION_MAJOR))
DDR_JCL_MODULE := jclse7b_
else ifneq (,$(findstring $(VERSION_MAJOR),9 10 11))
DDR_JCL_MODULE := jclse$(VERSION_MAJOR)_
else
DDR_JCL_MODULE := jclse11_
endif
DDR_INPUT_MODULES := j9ddr_misc j9gc j9jvmti j9prt j9shr j9thr j9trc j9vm $(DDR_JCL_MODULE)
DDR_INPUT_DEPENDS := $(addprefix $(TOP_DIR),$(foreach module,$(DDR_INPUT_MODULES),$($(module)_depend)))
<#if uma.spec.type.windows>
DDR_INPUT_FILES := $(addprefix $(TOP_DIR),$(foreach module,$(DDR_INPUT_MODULES),$($(module)_pdb)))
<#elseif uma.spec.flags.uma_gnuDebugSymbols.enabled>
DDR_INPUT_FILES := $(addsuffix .dbg,$(DDR_INPUT_DEPENDS))
</#if>
# The primary goals of this makefile.
DDR_BLOB := $(TOP_DIR)j9ddr.dat
DDR_SUPERSET_FILE := $(TOP_DIR)superset.dat
# Intermediate artifacts produced by this makefile.
DDR_MACRO_LIST := $(TOP_DIR)macroList
# Command-line options for ddrgen.
DDR_OPTIONS := \
--blob $(DDR_BLOB) \
--superset $(DDR_SUPERSET_FILE) \
--blacklist blacklist \
--macrolist $(DDR_MACRO_LIST) \
--overrides overrides \
--show-empty \
#
# All artifacts produced by this makefile.
DDR_PRODUCTS := \
$(DDR_BLOB) \
$(DDR_MACRO_LIST) \
$(DDR_SUPERSET_FILE) \
#
.PHONY : all clean
all : $(DDR_BLOB)
clean :
rm -f $(DDR_PRODUCTS)
$(DDR_BLOB) : $(TOP_DIR)ddrgen$(UMA_DOT_EXE) $(DDR_MACRO_LIST) blacklist $(wildcard overrides*)
$(TOP_DIR)ddrgen $(DDR_OPTIONS) \
$(DDR_INPUT_FILES)
$(DDR_MACRO_LIST) : $(DDR_INPUT_DEPENDS)
@echo Running getmacros for constant discovery
@rm -f $@
bash $(TOP_DIR)omr/ddr/tools/getmacros $(TOP_DIR)