make/hotspot/gensrc/GenerateSources.gmk
author egahlin
Tue, 15 May 2018 20:24:34 +0200
changeset 50113 caf115bb98ad
parent 47314 743814386712
child 52804 28094715ae71
permissions -rw-r--r--
8199712: Flight Recorder Reviewed-by: coleenp, ihse, erikj, dsamersoff, mseledtsov, egahlin, mgronlun Contributed-by: erik.gahlin@oracle.com, markus.gronlund@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     1
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     2
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     4
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    10
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    15
# accompanied this code).
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    16
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    20
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    23
# questions.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    24
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    25
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    26
default: all
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    27
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    28
include $(SPEC)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    29
include MakeBase.gmk
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    30
include JavaCompilation.gmk
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    31
include NativeCompilation.gmk
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    32
include TextFileProcessing.gmk
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    33
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    34
include HotspotCommon.gmk
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    35
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    36
# The real work is done in these files
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    37
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    38
include gensrc/GensrcAdlc.gmk
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    39
include gensrc/GensrcDtrace.gmk
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    40
include gensrc/GensrcJvmti.gmk
50113
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 47314
diff changeset
    41
include gensrc/GensrcJfr.gmk
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    42
47314
743814386712 8188814: Simplify IncludeCustomExtension
ihse
parents: 47217
diff changeset
    43
$(eval $(call IncludeCustomExtension, hotspot/gensrc/GenerateSources.gmk))
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    44
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    45
# While technically the rules below are "gendata" which can be done in parallel
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    46
# with native compilation, let's keep it here for simplicity.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    47
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    48
# The Xusage.txt file needs to have platform specific path separator
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    49
$(eval $(call SetupTextFileProcessing, CREATE_XUSAGE, \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    50
    SOURCE_FILES := $(TOPDIR)/src/hotspot/share/Xusage.txt, \
41277
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents: 38097
diff changeset
    51
    OUTPUT_FILE := $(JVM_LIB_OUTPUTDIR)/Xusage.txt, \
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    52
    REPLACEMENTS := separated by ;> => separated by $(PATH_SEP)> ; , \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    53
))
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    54
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    55
TARGETS += $(CREATE_XUSAGE)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    56
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    57
# Setup the hotspot launcher script for developer use
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    58
$(eval $(call SetupTextFileProcessing, CREATE_HOTSPOT_LAUNCHER, \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    59
    SOURCE_FILES := $(TOPDIR)/make/hotspot/hotspot.script, \
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    60
    OUTPUT_FILE := $(JVM_OUTPUTDIR)/hotspot, \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    61
    REPLACEMENTS := \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    62
        @@LIBARCH@@ => $(OPENJDK_TARGET_CPU_LEGACY_LIB) ; \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    63
        @@JDK_IMPORT_PATH@@ => $(JDK_OUTPUTDIR) ; , \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    64
))
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    65
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    66
CHMOD_HOTSPOT_LAUNCHER := $(JVM_VARIANT_OUTPUTDIR)/libjvm/_hotspot-script-chmod.marker
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    67
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    68
$(CHMOD_HOTSPOT_LAUNCHER): $(CREATE_HOTSPOT_LAUNCHER)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    69
	$(CHMOD) +x $<
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    70
	$(TOUCH) $@
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    71
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    72
TARGETS += $(CREATE_HOTSPOT_LAUNCHER) $(CHMOD_HOTSPOT_LAUNCHER)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    73
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    74
all: $(TARGETS)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    75
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    76
.PHONY: all