make/hotspot/lib/CompileDtracePreJvm.gmk
author ihse
Thu, 01 Mar 2018 01:30:10 +0100
branchihse-cflags-rewrite-branch
changeset 56213 85ee4e5a2f92
parent 47216 71c04702a3d5
child 56312 a52bcf4118eb
permissions -rw-r--r--
changeset: 49521:66bf73fcdf4d branch: ihse-cflags-rewrite-branch tag: tip user: ihse date: Thu Mar 01 01:24:12 2018 +0100 summary: Clean up dtrace compilation.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     1
#
56213
85ee4e5a2f92 changeset: 49521:66bf73fcdf4d
ihse
parents: 47216
diff changeset
     2
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
37437
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
ifeq ($(call check-jvm-feature, dtrace), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    27
  ifeq ($(OPENJDK_TARGET_OS), solaris)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    28
    # These files are are generated by CompileDtrace.gmk but consumed by
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    29
    # CompileJvm.gmk
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    30
    DTRACE_OBJ := $(JVM_OUTPUTDIR)/objs/dtrace.o
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    31
    DTRACE_JHELPER_OBJ := $(JVM_OUTPUTDIR)/objs/dtrace_jhelper.o
56213
85ee4e5a2f92 changeset: 49521:66bf73fcdf4d
ihse
parents: 47216
diff changeset
    32
    DTRACE_EXTRA_OBJECT_FILES := $(DTRACE_OBJ) $(DTRACE_JHELPER_OBJ)
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    33
56213
85ee4e5a2f92 changeset: 49521:66bf73fcdf4d
ihse
parents: 47216
diff changeset
    34
    # Since we cannot generated JvmOffsets.cpp as part of the gensrc step,
85ee4e5a2f92 changeset: 49521:66bf73fcdf4d
ihse
parents: 47216
diff changeset
    35
    # we need this special hook to get it to compile with the rest of libjvm.
85ee4e5a2f92 changeset: 49521:66bf73fcdf4d
ihse
parents: 47216
diff changeset
    36
    JVM_OFFSETS_CPP := $(DTRACE_SUPPORT_DIR)/JvmOffsets.cpp
85ee4e5a2f92 changeset: 49521:66bf73fcdf4d
ihse
parents: 47216
diff changeset
    37
    DTRACE_EXTRA_SOURCE_FILES := $(JVM_OFFSETS_CPP)
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    38
  endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    39
endif