make/CompileToolsHotspot.gmk
author pliden
Tue, 10 Sep 2019 11:11:31 +0200
changeset 58066 8407928b9fe5
parent 52804 28094715ae71
permissions -rw-r--r--
8230566: ZGC: Don't substitute klass pointer during array clearing Reviewed-by: stefank, eosterlund
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
42649
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
     1
#
52804
28094715ae71 8214718: Update missing copyright year in build system
ihse
parents: 50330
diff changeset
     2
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
42649
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
     4
#
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    10
#
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    15
# accompanied this code).
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    16
#
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    20
#
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    23
# questions.
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    24
#
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    25
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    26
# This must be the first rule
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    27
default: all
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    28
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    29
include $(SPEC)
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    30
include MakeBase.gmk
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    31
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    32
include JavaCompilation.gmk
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    33
include SetupJavaCompilers.gmk
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    34
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    35
TARGETS :=
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    36
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    37
# Hook to include the corresponding custom file, if present.
47314
743814386712 8188814: Simplify IncludeCustomExtension
ihse
parents: 47217
diff changeset
    38
$(eval $(call IncludeCustomExtension, hotspot/CompileTools.gmk))
42649
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    39
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    40
ifeq ($(INCLUDE_GRAAL), true)
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    41
  VM_CI_SRC_DIR := $(TOPDIR)/src/jdk.internal.vm.ci/share/classes
42649
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    42
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    43
  SRC_DIR := $(TOPDIR)/src/jdk.internal.vm.compiler/share/classes
42649
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    44
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    45
  ##############################################################################
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    46
  # Compile the annotation processors
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    47
  $(eval $(call SetupJavaCompilation, BUILD_VM_COMPILER_MATCH_PROCESSOR, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    48
      SETUP := GENERATE_OLDBYTECODE, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    49
      SRC := \
50330
2cbc42a5764b 8202670: Update Graal
dlong
parents: 49873
diff changeset
    50
          $(SRC_DIR)/org.graalvm.compiler.processor/src \
42649
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    51
          $(SRC_DIR)/org.graalvm.compiler.core.match.processor/src \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    52
          , \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    53
      EXCLUDE_FILES := $(EXCLUDE_FILES), \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    54
      BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.match.processor, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    55
      JAR := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.match.processor.jar, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    56
  ))
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    57
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    58
  TARGETS += $(BUILD_VM_COMPILER_MATCH_PROCESSOR)
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    59
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    60
  ##############################################################################
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    61
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    62
  $(eval $(call SetupJavaCompilation, BUILD_VM_COMPILER_NODEINFO_PROCESSOR, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    63
      SETUP := GENERATE_OLDBYTECODE, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    64
      SRC := \
50330
2cbc42a5764b 8202670: Update Graal
dlong
parents: 49873
diff changeset
    65
          $(SRC_DIR)/org.graalvm.compiler.processor/src \
42649
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    66
          $(SRC_DIR)/org.graalvm.compiler.nodeinfo.processor/src \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    67
          , \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    68
      BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.nodeinfo.processor, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    69
      JAR := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.nodeinfo.processor.jar, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    70
  ))
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    71
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    72
  TARGETS += $(BUILD_VM_COMPILER_NODEINFO_PROCESSOR)
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    73
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    74
  ##############################################################################
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    75
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    76
  $(eval $(call SetupJavaCompilation, BUILD_VM_COMPILER_OPTIONS_PROCESSOR, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    77
      SETUP := GENERATE_OLDBYTECODE, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    78
      SRC := \
50330
2cbc42a5764b 8202670: Update Graal
dlong
parents: 49873
diff changeset
    79
          $(SRC_DIR)/org.graalvm.compiler.processor/src \
42649
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    80
          $(SRC_DIR)/org.graalvm.compiler.options.processor/src \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    81
          , \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    82
      BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.options.processor, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    83
      JAR := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.options.processor.jar, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    84
  ))
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    85
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    86
  TARGETS += $(BUILD_VM_COMPILER_OPTIONS_PROCESSOR)
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    87
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    88
  ##############################################################################
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    89
50330
2cbc42a5764b 8202670: Update Graal
dlong
parents: 49873
diff changeset
    90
  $(eval $(call SetupJavaCompilation, BUILD_VM_COMPILER_REPLACEMENTS_PROCESSOR, \
42649
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    91
      SETUP := GENERATE_OLDBYTECODE, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    92
      SRC := \
50330
2cbc42a5764b 8202670: Update Graal
dlong
parents: 49873
diff changeset
    93
          $(SRC_DIR)/org.graalvm.compiler.processor/src \
2cbc42a5764b 8202670: Update Graal
dlong
parents: 49873
diff changeset
    94
          $(SRC_DIR)/org.graalvm.compiler.replacements.processor/src \
42649
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    95
          , \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    96
      EXCLUDE_FILES := $(EXCLUDE_FILES), \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    97
      BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.replacements.verifier, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    98
      JAR := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.replacements.verifier.jar, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
    99
  ))
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   100
50330
2cbc42a5764b 8202670: Update Graal
dlong
parents: 49873
diff changeset
   101
  TARGETS += $(BUILD_VM_COMPILER_REPLACEMENTS_PROCESSOR)
42649
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   102
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   103
  ##############################################################################
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   104
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   105
  $(eval $(call SetupJavaCompilation, BUILD_VM_COMPILER_SERVICEPROVIDER_PROCESSOR, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   106
      SETUP := GENERATE_OLDBYTECODE, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   107
      SRC := \
50330
2cbc42a5764b 8202670: Update Graal
dlong
parents: 49873
diff changeset
   108
          $(SRC_DIR)/org.graalvm.compiler.processor/src \
42649
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   109
          $(SRC_DIR)/org.graalvm.compiler.serviceprovider.processor/src \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   110
          , \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   111
      EXCLUDE_FILES := $(EXCLUDE_FILES), \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   112
      BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.serviceprovider.processor, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   113
      JAR := $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.serviceprovider.processor.jar, \
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   114
  ))
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   115
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   116
  TARGETS += $(BUILD_VM_COMPILER_SERVICEPROVIDER_PROCESSOR)
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   117
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   118
  ##############################################################################
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   119
endif
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   120
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   121
all: $(TARGETS)
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   122
28238583a459 8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff changeset
   123
.PHONY: all