annotate make/CompileToolsHotspot.gmk @ 50384:26ebfe8ce852

8199755: Update Graal Reviewed-by: kvn
author dlong
date Tue, 24 Apr 2018 09:04:57 -0700
parents e06f9607f370
children 2cbc42a5764b
rev   line source
thomaswue@42649 1 #
thomaswue@42649 2 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
thomaswue@42649 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
thomaswue@42649 4 #
thomaswue@42649 5 # This code is free software; you can redistribute it and/or modify it
thomaswue@42649 6 # under the terms of the GNU General Public License version 2 only, as
thomaswue@42649 7 # published by the Free Software Foundation. Oracle designates this
thomaswue@42649 8 # particular file as subject to the "Classpath" exception as provided
thomaswue@42649 9 # by Oracle in the LICENSE file that accompanied this code.
thomaswue@42649 10 #
thomaswue@42649 11 # This code is distributed in the hope that it will be useful, but WITHOUT
thomaswue@42649 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
thomaswue@42649 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
thomaswue@42649 14 # version 2 for more details (a copy is included in the LICENSE file that
thomaswue@42649 15 # accompanied this code).
thomaswue@42649 16 #
thomaswue@42649 17 # You should have received a copy of the GNU General Public License version
thomaswue@42649 18 # 2 along with this work; if not, write to the Free Software Foundation,
thomaswue@42649 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
thomaswue@42649 20 #
thomaswue@42649 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
thomaswue@42649 22 # or visit www.oracle.com if you need additional information or have any
thomaswue@42649 23 # questions.
thomaswue@42649 24 #
thomaswue@42649 25
thomaswue@42649 26 # This must be the first rule
thomaswue@42649 27 default: all
thomaswue@42649 28
thomaswue@42649 29 include $(SPEC)
thomaswue@42649 30 include MakeBase.gmk
thomaswue@42649 31
thomaswue@42649 32 include JavaCompilation.gmk
thomaswue@42649 33 include SetupJavaCompilers.gmk
thomaswue@42649 34
thomaswue@42649 35 TARGETS :=
thomaswue@42649 36
thomaswue@42649 37 # Hook to include the corresponding custom file, if present.
ihse@47396 38 $(eval $(call IncludeCustomExtension, hotspot/CompileTools.gmk))
thomaswue@42649 39
thomaswue@42649 40 ifeq ($(INCLUDE_GRAAL), true)
erikj@47217 41 VM_CI_SRC_DIR := $(TOPDIR)/src/jdk.internal.vm.ci/share/classes
thomaswue@42649 42
erikj@47217 43 SRC_DIR := $(TOPDIR)/src/jdk.internal.vm.compiler/share/classes
thomaswue@42649 44
thomaswue@42649 45 ##############################################################################
thomaswue@42649 46 # Compile the annotation processors
thomaswue@42649 47 $(eval $(call SetupJavaCompilation, BUILD_VM_COMPILER_MATCH_PROCESSOR, \
thomaswue@42649 48 SETUP := GENERATE_OLDBYTECODE, \
thomaswue@42649 49 SRC := \
dlong@50384 50 $(SRC_DIR)/jdk.internal.vm.compiler.word/src \
dlong@50384 51 $(SRC_DIR)/jdk.internal.vm.compiler.collections/src \
thomaswue@42649 52 $(SRC_DIR)/org.graalvm.compiler.core/src \
thomaswue@42649 53 $(SRC_DIR)/org.graalvm.compiler.core.common/src \
thomaswue@42649 54 $(SRC_DIR)/org.graalvm.compiler.core.match.processor/src \
thomaswue@42649 55 $(SRC_DIR)/org.graalvm.compiler.api.replacements/src \
thomaswue@42649 56 $(SRC_DIR)/org.graalvm.compiler.asm/src \
thomaswue@42649 57 $(SRC_DIR)/org.graalvm.compiler.bytecode/src \
thomaswue@42649 58 $(SRC_DIR)/org.graalvm.compiler.code/src \
thomaswue@42649 59 $(SRC_DIR)/org.graalvm.compiler.debug/src \
thomaswue@42649 60 $(SRC_DIR)/org.graalvm.compiler.graph/src \
thomaswue@42649 61 $(SRC_DIR)/org.graalvm.compiler.lir/src \
thomaswue@42649 62 $(SRC_DIR)/org.graalvm.compiler.loop/src \
thomaswue@42649 63 $(SRC_DIR)/org.graalvm.compiler.loop.phases/src \
thomaswue@42649 64 $(SRC_DIR)/org.graalvm.compiler.nodeinfo/src \
thomaswue@42649 65 $(SRC_DIR)/org.graalvm.compiler.nodes/src \
thomaswue@42649 66 $(SRC_DIR)/org.graalvm.compiler.options/src \
thomaswue@42649 67 $(SRC_DIR)/org.graalvm.compiler.phases/src \
thomaswue@42649 68 $(SRC_DIR)/org.graalvm.compiler.phases.common/src \
thomaswue@42649 69 $(SRC_DIR)/org.graalvm.compiler.serviceprovider/src \
thomaswue@42649 70 $(SRC_DIR)/org.graalvm.compiler.virtual/src \
dlong@47979 71 $(SRC_DIR)/org.graalvm.graphio/src \
iveresov@46344 72 $(SRC_DIR)/org.graalvm.util/src \
thomaswue@42649 73 $(VM_CI_SRC_DIR)/jdk.vm.ci.code/src \
thomaswue@42649 74 $(VM_CI_SRC_DIR)/jdk.vm.ci.common/src \
thomaswue@42649 75 $(VM_CI_SRC_DIR)/jdk.vm.ci.meta/src \
thomaswue@42649 76 $(VM_CI_SRC_DIR)/jdk.vm.ci.runtime/src \
thomaswue@42649 77 $(VM_CI_SRC_DIR)/jdk.vm.ci.services/src \
thomaswue@42649 78 , \
thomaswue@42649 79 EXCLUDE_FILES := $(EXCLUDE_FILES), \
thomaswue@42649 80 BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.match.processor, \
thomaswue@42649 81 JAR := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.match.processor.jar, \
thomaswue@42649 82 ))
thomaswue@42649 83
thomaswue@42649 84 TARGETS += $(BUILD_VM_COMPILER_MATCH_PROCESSOR)
thomaswue@42649 85
thomaswue@42649 86 ##############################################################################
thomaswue@42649 87
thomaswue@42649 88 $(eval $(call SetupJavaCompilation, BUILD_VM_COMPILER_NODEINFO_PROCESSOR, \
thomaswue@42649 89 SETUP := GENERATE_OLDBYTECODE, \
thomaswue@42649 90 SRC := \
thomaswue@42649 91 $(SRC_DIR)/org.graalvm.compiler.nodeinfo/src \
thomaswue@42649 92 $(SRC_DIR)/org.graalvm.compiler.nodeinfo.processor/src \
thomaswue@42649 93 , \
thomaswue@42649 94 BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.nodeinfo.processor, \
thomaswue@42649 95 JAR := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.nodeinfo.processor.jar, \
thomaswue@42649 96 ))
thomaswue@42649 97
thomaswue@42649 98 TARGETS += $(BUILD_VM_COMPILER_NODEINFO_PROCESSOR)
thomaswue@42649 99
thomaswue@42649 100 ##############################################################################
thomaswue@42649 101
thomaswue@42649 102 $(eval $(call SetupJavaCompilation, BUILD_VM_COMPILER_OPTIONS_PROCESSOR, \
thomaswue@42649 103 SETUP := GENERATE_OLDBYTECODE, \
thomaswue@42649 104 SRC := \
dlong@50384 105 $(SRC_DIR)/jdk.internal.vm.compiler.collections/src \
thomaswue@42649 106 $(SRC_DIR)/org.graalvm.compiler.options/src \
thomaswue@42649 107 $(SRC_DIR)/org.graalvm.compiler.options.processor/src \
iveresov@46344 108 $(SRC_DIR)/org.graalvm.util/src \
thomaswue@42649 109 , \
thomaswue@42649 110 BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.options.processor, \
thomaswue@42649 111 JAR := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.options.processor.jar, \
thomaswue@42649 112 ))
thomaswue@42649 113
thomaswue@42649 114 TARGETS += $(BUILD_VM_COMPILER_OPTIONS_PROCESSOR)
thomaswue@42649 115
thomaswue@42649 116 ##############################################################################
thomaswue@42649 117
thomaswue@42649 118 $(eval $(call SetupJavaCompilation, BUILD_VM_COMPILER_REPLACEMENTS_VERIFIER, \
thomaswue@42649 119 SETUP := GENERATE_OLDBYTECODE, \
thomaswue@42649 120 SRC := \
dlong@50384 121 $(SRC_DIR)/jdk.internal.vm.compiler.word/src \
dlong@50384 122 $(SRC_DIR)/jdk.internal.vm.compiler.collections/src \
iveresov@49916 123 $(SRC_DIR)/org.graalvm.compiler.bytecode/src \
thomaswue@42649 124 $(SRC_DIR)/org.graalvm.compiler.replacements.verifier/src \
thomaswue@42649 125 $(SRC_DIR)/org.graalvm.compiler.api.replacements/src \
thomaswue@42649 126 $(SRC_DIR)/org.graalvm.compiler.code/src \
thomaswue@42649 127 $(SRC_DIR)/org.graalvm.compiler.core.common/src \
thomaswue@42649 128 $(SRC_DIR)/org.graalvm.compiler.debug/src \
thomaswue@42649 129 $(SRC_DIR)/org.graalvm.compiler.graph/src \
thomaswue@42649 130 $(SRC_DIR)/org.graalvm.compiler.nodeinfo/src \
thomaswue@42649 131 $(SRC_DIR)/org.graalvm.compiler.options/src \
thomaswue@42649 132 $(SRC_DIR)/org.graalvm.compiler.serviceprovider/src \
dlong@47979 133 $(SRC_DIR)/org.graalvm.graphio/src \
iveresov@46344 134 $(SRC_DIR)/org.graalvm.util/src \
thomaswue@42649 135 $(VM_CI_SRC_DIR)/jdk.vm.ci.code/src \
thomaswue@42649 136 $(VM_CI_SRC_DIR)/jdk.vm.ci.common/src \
thomaswue@42649 137 $(VM_CI_SRC_DIR)/jdk.vm.ci.meta/src \
thomaswue@42649 138 $(VM_CI_SRC_DIR)/jdk.vm.ci.runtime/src \
thomaswue@42649 139 $(VM_CI_SRC_DIR)/jdk.vm.ci.services/src \
thomaswue@42649 140 , \
thomaswue@42649 141 EXCLUDE_FILES := $(EXCLUDE_FILES), \
thomaswue@42649 142 BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.replacements.verifier, \
thomaswue@42649 143 JAR := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.replacements.verifier.jar, \
thomaswue@42649 144 ))
thomaswue@42649 145
thomaswue@42649 146 TARGETS += $(BUILD_VM_COMPILER_REPLACEMENTS_VERIFIER)
thomaswue@42649 147
thomaswue@42649 148 ##############################################################################
thomaswue@42649 149
thomaswue@42649 150 $(eval $(call SetupJavaCompilation, BUILD_VM_COMPILER_SERVICEPROVIDER_PROCESSOR, \
thomaswue@42649 151 SETUP := GENERATE_OLDBYTECODE, \
thomaswue@42649 152 SRC := \
thomaswue@42649 153 $(SRC_DIR)/org.graalvm.compiler.serviceprovider/src \
thomaswue@42649 154 $(SRC_DIR)/org.graalvm.compiler.serviceprovider.processor/src \
thomaswue@42649 155 $(VM_CI_SRC_DIR)/jdk.vm.ci.services/src \
thomaswue@42649 156 , \
thomaswue@42649 157 EXCLUDE_FILES := $(EXCLUDE_FILES), \
thomaswue@42649 158 BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.serviceprovider.processor, \
thomaswue@42649 159 JAR := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.serviceprovider.processor.jar, \
thomaswue@42649 160 ))
thomaswue@42649 161
thomaswue@42649 162 TARGETS += $(BUILD_VM_COMPILER_SERVICEPROVIDER_PROCESSOR)
thomaswue@42649 163
thomaswue@42649 164 ##############################################################################
thomaswue@42649 165 endif
thomaswue@42649 166
thomaswue@42649 167 all: $(TARGETS)
thomaswue@42649 168
thomaswue@42649 169 .PHONY: all