hotspot/make/solaris/makefiles/dtrace.make
author dcubed
Fri, 16 Sep 2011 16:21:20 -0700
changeset 10559 a94d067da388
parent 7397 5b173b4ca846
child 11721 dcd1f62c9caf
permissions -rw-r--r--
7071904: 4/4 HotSpot: Full Debug Symbols Summary: Add support for .debuginfo files for HSX libraries. Reviewed-by: poonam, dholmes, never
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
#
10559
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
     2
# Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
# accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
#
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4493
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4493
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4493
diff changeset
    21
# questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
#  
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
# Rules to build jvm_db/dtrace, used by vm.make
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
4493
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
    27
# We build libjvm_dtrace/libjvm_db/dtrace for COMPILER1 and COMPILER2
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
    28
# but not for CORE or KERNEL configurations.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
ifneq ("${TYPE}", "CORE")
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
ifneq ("${TYPE}", "KERNEL")
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
ifdef USE_GCC
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
dtraceCheck:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
	$(QUIETLY) echo "**NOTICE** Dtrace support disabled for gcc builds"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
JVM_DB = libjvm_db
4493
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
    41
LIBJVM_DB = libjvm_db.so
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
    42
LIBJVM_DB_G = libjvm$(G_SUFFIX)_db.so
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
10559
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
    44
LIBJVM_DB_DEBUGINFO = libjvm_db.debuginfo
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
    45
LIBJVM_DB_G_DEBUGINFO = libjvm$(G_SUFFIX)_db.debuginfo
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
    46
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
JVM_DTRACE = jvm_dtrace
4493
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
    48
LIBJVM_DTRACE = libjvm_dtrace.so
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
    49
LIBJVM_DTRACE_G = libjvm$(G_SUFFIX)_dtrace.so
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
10559
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
    51
LIBJVM_DTRACE_DEBUGINFO = libjvm_dtrace.debuginfo
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
    52
LIBJVM_DTRACE_G_DEBUGINFO = libjvm$(G_SUFFIX)_dtrace.debuginfo
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
    53
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
JVMOFFS = JvmOffsets
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
JVMOFFS.o = $(JVMOFFS).o
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
GENOFFS = generate$(JVMOFFS)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
DTRACE_SRCDIR = $(GAMMADIR)/src/os/$(Platform_os_family)/dtrace
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
DTRACE = dtrace
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
DTRACE.o = $(DTRACE).o
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
# to remove '-g' option which causes link problems
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
# also '-z nodefs' is used as workaround
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
GENOFFS_CFLAGS = $(shell echo $(CFLAGS) | sed -e 's/ -g / /g' -e 's/ -g0 / /g';)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
ifdef LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
DTRACE_OPTS = -64 -D_LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
# making libjvm_db
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
# Use mapfile with libjvm_db.so
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
LIBJVM_DB_MAPFILE = $(MAKEFILES_DIR)/mapfile-vers-jvm_db
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
LFLAGS_JVM_DB += $(MAPFLAG:FILENAME=$(LIBJVM_DB_MAPFILE))
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
# Use mapfile with libjvm_dtrace.so
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
LIBJVM_DTRACE_MAPFILE = $(MAKEFILES_DIR)/mapfile-vers-jvm_dtrace
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
LFLAGS_JVM_DTRACE += $(MAPFLAG:FILENAME=$(LIBJVM_DTRACE_MAPFILE))
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
ifdef USE_GCC
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
LFLAGS_JVM_DB += -D_REENTRANT $(PICFLAG)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
LFLAGS_JVM_DTRACE += -D_REENTRANT $(PICFLAG)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
LFLAGS_JVM_DB += -mt $(PICFLAG) -xnolib
4493
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
    85
LFLAGS_JVM_DTRACE += -mt $(PICFLAG) -xnolib -ldl
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
ISA = $(subst i386,i486,$(shell isainfo -n))
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
# Making 64/libjvm_db.so: 64-bit version of libjvm_db.so which handles 32-bit libjvm.so
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
ifneq ("${ISA}","${BUILDARCH}")
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
XLIBJVM_DB = 64/$(LIBJVM_DB)
4493
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
    94
XLIBJVM_DB_G = 64/$(LIBJVM_DB_G)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
XLIBJVM_DTRACE = 64/$(LIBJVM_DTRACE)
4493
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
    96
XLIBJVM_DTRACE_G = 64/$(LIBJVM_DTRACE_G)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
10559
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
    98
XLIBJVM_DB_DEBUGINFO = 64/$(LIBJVM_DB_DEBUGINFO)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
    99
XLIBJVM_DB_G_DEBUGINFO = 64/$(LIBJVM_DB_G_DEBUGINFO)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   100
XLIBJVM_DTRACE_DEBUGINFO = 64/$(LIBJVM_DTRACE_DEBUGINFO)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   101
XLIBJVM_DTRACE_G_DEBUGINFO = 64/$(LIBJVM_DTRACE_G_DEBUGINFO)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   102
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
$(XLIBJVM_DB): $(DTRACE_SRCDIR)/$(JVM_DB).c $(JVMOFFS).h $(LIBJVM_DB_MAPFILE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
	@echo Making $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
	$(QUIETLY) mkdir -p 64/ ; \
1552
45c617d33fa6 6767659: Conversion from i486 to x86 missed some entries in makefiles
kvn
parents: 670
diff changeset
   106
	$(CC) $(SYMFLAG) $(ARCHFLAG/$(ISA)) -D$(TYPE) -I. -I$(GENERATED) \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
		$(SHARED_FLAG) $(LFLAGS_JVM_DB) -o $@ $(DTRACE_SRCDIR)/$(JVM_DB).c -lc
4493
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
   108
	[ -f $(XLIBJVM_DB_G) ] || { ln -s $(LIBJVM_DB) $(XLIBJVM_DB_G); }
10559
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   109
ifneq ($(OBJCOPY),)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   110
	$(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(XLIBJVM_DB_DEBUGINFO)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   111
	$(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(XLIBJVM_DB_DEBUGINFO) $@
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   112
  ifeq ($(STRIP_POLICY),all_strip)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   113
	$(QUIETLY) $(STRIP) $@
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   114
  else
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   115
    ifeq ($(STRIP_POLICY),min_strip)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   116
	$(QUIETLY) $(STRIP) -x $@
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   117
    # implied else here is no stripping at all
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   118
    endif
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   119
  endif
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   120
	[ -f $(XLIBJVM_DB_G_DEBUGINFO) ] || { ln -s $(LIBJVM_DB_DEBUGINFO) $(XLIBJVM_DB_G_DEBUGINFO); }
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   121
endif
4493
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
   122
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
$(XLIBJVM_DTRACE): $(DTRACE_SRCDIR)/$(JVM_DTRACE).c $(DTRACE_SRCDIR)/$(JVM_DTRACE).h $(LIBJVM_DTRACE_MAPFILE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
	@echo Making $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
	$(QUIETLY) mkdir -p 64/ ; \
1552
45c617d33fa6 6767659: Conversion from i486 to x86 missed some entries in makefiles
kvn
parents: 670
diff changeset
   126
	$(CC) $(SYMFLAG) $(ARCHFLAG/$(ISA)) -D$(TYPE) -I. \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
		$(SHARED_FLAG) $(LFLAGS_JVM_DTRACE) -o $@ $(DTRACE_SRCDIR)/$(JVM_DTRACE).c -lc -lthread -ldoor
4493
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
   128
	[ -f $(XLIBJVM_DTRACE_G) ] || { ln -s $(LIBJVM_DTRACE) $(XLIBJVM_DTRACE_G); }
10559
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   129
ifneq ($(OBJCOPY),)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   130
	$(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(XLIBJVM_DTRACE_DEBUGINFO)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   131
	$(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(XLIBJVM_DTRACE_DEBUGINFO) $@
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   132
  ifeq ($(STRIP_POLICY),all_strip)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   133
	$(QUIETLY) $(STRIP) $@
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   134
  else
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   135
    ifeq ($(STRIP_POLICY),min_strip)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   136
	$(QUIETLY) $(STRIP) -x $@
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   137
    # implied else here is no stripping at all
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   138
    endif
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   139
  endif
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   140
	[ -f $(XLIBJVM_DTRACE_G_DEBUGINFO) ] || { ln -s $(LIBJVM_DTRACE_DEBUGINFO) $(XLIBJVM_DTRACE_G_DEBUGINFO); }
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   141
endif
4493
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
   142
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
endif # ifneq ("${ISA}","${BUILDARCH}")
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
ifdef USE_GCC
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
LFLAGS_GENOFFS += -D_REENTRANT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
LFLAGS_GENOFFS += -mt -xnolib -norunpath
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
lib$(GENOFFS).so: $(DTRACE_SRCDIR)/$(GENOFFS).cpp $(DTRACE_SRCDIR)/$(GENOFFS).h \
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   152
                  $(LIBJVM.o)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
	$(QUIETLY) $(CCC) $(CPPFLAGS) $(GENOFFS_CFLAGS) $(SHARED_FLAG) $(PICFLAG) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
		 $(LFLAGS_GENOFFS) -o $@ $(DTRACE_SRCDIR)/$(GENOFFS).cpp -lc
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
$(GENOFFS): $(DTRACE_SRCDIR)/$(GENOFFS)Main.c lib$(GENOFFS).so
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
	$(QUIETLY) $(LINK.CC) -z nodefs -o $@ $(DTRACE_SRCDIR)/$(GENOFFS)Main.c \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
		./lib$(GENOFFS).so
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
1559
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   160
CONDITIONALLY_UPDATE_JVMOFFS_TARGET = \
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   161
	cmp -s $@ $@.tmp; \
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   162
	case $$? in \
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   163
	0) rm -f $@.tmp;; \
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   164
	*) rm -f $@ && mv $@.tmp $@ && echo Updated $@;; \
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   165
	esac
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   166
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   167
# $@.tmp is created first to avoid an empty $(JVMOFFS).h if an error occurs.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
$(JVMOFFS).h: $(GENOFFS)
1559
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   169
	$(QUIETLY) LD_LIBRARY_PATH=. ./$(GENOFFS) -header > $@.tmp
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   170
	$(QUIETLY) $(CONDITIONALLY_UPDATE_JVMOFFS_TARGET)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
$(JVMOFFS)Index.h: $(GENOFFS)
1559
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   173
	$(QUIETLY) LD_LIBRARY_PATH=. ./$(GENOFFS) -index > $@.tmp
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   174
	$(QUIETLY)  $(CONDITIONALLY_UPDATE_JVMOFFS_TARGET)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
$(JVMOFFS).cpp: $(GENOFFS) $(JVMOFFS).h $(JVMOFFS)Index.h
1559
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   177
	$(QUIETLY) LD_LIBRARY_PATH=. ./$(GENOFFS) -table > $@.tmp
20339a90049b 6769128: failure to run generateJvmOffsets is ignored
jcoomes
parents: 670
diff changeset
   178
	$(QUIETLY) $(CONDITIONALLY_UPDATE_JVMOFFS_TARGET)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
$(JVMOFFS.o): $(JVMOFFS).h $(JVMOFFS).cpp 
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
	$(QUIETLY) $(CCC) -c -I. -o $@ $(ARCHFLAG) -D$(TYPE) $(JVMOFFS).cpp
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
$(LIBJVM_DB): $(DTRACE_SRCDIR)/$(JVM_DB).c $(JVMOFFS.o) $(XLIBJVM_DB) $(LIBJVM_DB_MAPFILE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
	@echo Making $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
	$(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) -D$(TYPE) -I. -I$(GENERATED) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
		$(SHARED_FLAG) $(LFLAGS_JVM_DB) -o $@ $(DTRACE_SRCDIR)/$(JVM_DB).c -lc
4493
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
   187
	[ -f $(LIBJVM_DB_G) ] || { ln -s $@ $(LIBJVM_DB_G); }
10559
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   188
ifneq ($(OBJCOPY),)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   189
	$(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DB_DEBUGINFO)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   190
	$(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DB_DEBUGINFO) $@
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   191
  ifeq ($(STRIP_POLICY),all_strip)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   192
	$(QUIETLY) $(STRIP) $@
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   193
  else
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   194
    ifeq ($(STRIP_POLICY),min_strip)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   195
	$(QUIETLY) $(STRIP) -x $@
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   196
    # implied else here is no stripping at all
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   197
    endif
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   198
  endif
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   199
	[ -f $(LIBJVM_DB_G_DEBUGINFO) ] || { ln -s $(LIBJVM_DB_DEBUGINFO) $(LIBJVM_DB_G_DEBUGINFO); }
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   200
endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
$(LIBJVM_DTRACE): $(DTRACE_SRCDIR)/$(JVM_DTRACE).c $(XLIBJVM_DTRACE) $(DTRACE_SRCDIR)/$(JVM_DTRACE).h $(LIBJVM_DTRACE_MAPFILE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
	@echo Making $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
	$(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) -D$(TYPE) -I.  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
		$(SHARED_FLAG) $(LFLAGS_JVM_DTRACE) -o $@ $(DTRACE_SRCDIR)/$(JVM_DTRACE).c -lc -lthread -ldoor
4493
9204129f065e 6843629: Make current hotspot build part of jdk5 control build
phh
parents: 1562
diff changeset
   206
	[ -f $(LIBJVM_DTRACE_G) ] || { ln -s $@ $(LIBJVM_DTRACE_G); }
10559
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   207
ifneq ($(OBJCOPY),)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   208
	$(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DTRACE_DEBUGINFO)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   209
	$(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DTRACE_DEBUGINFO) $@
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   210
  ifeq ($(STRIP_POLICY),all_strip)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   211
	$(QUIETLY) $(STRIP) $@
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   212
  else
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   213
    ifeq ($(STRIP_POLICY),min_strip)
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   214
	$(QUIETLY) $(STRIP) -x $@
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   215
    # implied else here is no stripping at all
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   216
    endif
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   217
  endif
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   218
	[ -f $(LIBJVM_DTRACE_G_DEBUGINFO) ] || { ln -s $(LIBJVM_DTRACE_DEBUGINFO) $(LIBJVM_DTRACE_G_DEBUGINFO); }
a94d067da388 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 7397
diff changeset
   219
endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
$(DTRACE).d: $(DTRACE_SRCDIR)/hotspot.d $(DTRACE_SRCDIR)/hotspot_jni.d \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
             $(DTRACE_SRCDIR)/hs_private.d $(DTRACE_SRCDIR)/jhelper.d
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
	$(QUIETLY) cat $^ > $@
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   225
DTraced_Files = ciEnv.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   226
                classLoadingService.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   227
                compileBroker.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   228
                hashtable.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   229
                instanceKlass.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   230
                java.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   231
                jni.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   232
                jvm.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   233
                memoryManager.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   234
                nmethod.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   235
                objectMonitor.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   236
                runtimeService.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   237
                sharedRuntime.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   238
                synchronizer.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   239
                thread.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   240
                unsafe.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   241
                vmThread.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   242
                vmCMSOperations.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   243
                vmPSOperations.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   244
                vmGCOperations.o \
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6469
diff changeset
   245
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   246
# Dtrace is available, so we build $(DTRACE.o)  
489c9b5090e2 Initial load
duke
parents:
diff changeset
   247
$(DTRACE.o): $(DTRACE).d $(JVMOFFS).h $(JVMOFFS)Index.h $(DTraced_Files)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   248
	@echo Compiling $(DTRACE).d
489c9b5090e2 Initial load
duke
parents:
diff changeset
   249
6469
d32518d9eba5 6974813: JVM needs to use demand loading for its DTrace probes
kamg
parents: 5547
diff changeset
   250
	$(QUIETLY) $(DTRACE_PROG) $(DTRACE_OPTS) -C -I. -G -xlazyload -o $@ -s $(DTRACE).d \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   251
     $(DTraced_Files) ||\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   252
  STATUS=$$?;\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   253
	if [ x"$$STATUS" = x"1" -a \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   254
       x`uname -r` = x"5.10" -a \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   255
       x`uname -p` = x"sparc" ]; then\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   256
    echo "*****************************************************************";\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   257
    echo "* If you are building server compiler, and the error message is ";\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   258
    echo "* \"incorrect ELF machine type...\", you have run into solaris bug ";\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   259
    echo "* 6213962, \"dtrace -G doesn't work on sparcv8+ object files\".";\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   260
    echo "* Either patch/upgrade your system (>= S10u1_15), or set the ";\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   261
    echo "* environment variable HOTSPOT_DISABLE_DTRACE_PROBES to disable ";\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   262
    echo "* dtrace probes for this build.";\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   263
    echo "*****************************************************************";\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
  fi;\
489c9b5090e2 Initial load
duke
parents:
diff changeset
   265
  exit $$STATUS
489c9b5090e2 Initial load
duke
parents:
diff changeset
   266
  # Since some DTraced_Files are in LIBJVM.o and they are touched by this
489c9b5090e2 Initial load
duke
parents:
diff changeset
   267
  # command, and libgenerateJvmOffsets.so depends on LIBJVM.o, 'make' will
489c9b5090e2 Initial load
duke
parents:
diff changeset
   268
  # think it needs to rebuild libgenerateJvmOffsets.so and thus JvmOffsets*
489c9b5090e2 Initial load
duke
parents:
diff changeset
   269
  # files, but it doesn't, so we touch the necessary files to prevent later
489c9b5090e2 Initial load
duke
parents:
diff changeset
   270
  # recompilation. Note: we only touch the necessary files if they already
489c9b5090e2 Initial load
duke
parents:
diff changeset
   271
  # exist in order to close a race where an empty file can be created
489c9b5090e2 Initial load
duke
parents:
diff changeset
   272
  # before the real build rule is executed.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   273
  # But, we can't touch the *.h files:  This rule depends
489c9b5090e2 Initial load
duke
parents:
diff changeset
   274
  # on them, and that would cause an infinite cycle of rebuilding.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   275
  # Neither the *.h or *.ccp files need to be touched, since they have
489c9b5090e2 Initial load
duke
parents:
diff changeset
   276
  # rules which do not update them when the generator file has not
489c9b5090e2 Initial load
duke
parents:
diff changeset
   277
  # changed their contents.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   278
	$(QUIETLY) if [ -f lib$(GENOFFS).so ]; then touch lib$(GENOFFS).so; fi
489c9b5090e2 Initial load
duke
parents:
diff changeset
   279
	$(QUIETLY) if [ -f $(GENOFFS) ]; then touch $(GENOFFS); fi
489c9b5090e2 Initial load
duke
parents:
diff changeset
   280
	$(QUIETLY) if [ -f $(JVMOFFS.o) ]; then touch $(JVMOFFS.o); fi
489c9b5090e2 Initial load
duke
parents:
diff changeset
   281
489c9b5090e2 Initial load
duke
parents:
diff changeset
   282
.PHONY: dtraceCheck
489c9b5090e2 Initial load
duke
parents:
diff changeset
   283
363
99d43e8a76ad 6537506: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents: 338
diff changeset
   284
SYSTEM_DTRACE_H = /usr/include/dtrace.h
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   285
SYSTEM_DTRACE_PROG = /usr/sbin/dtrace
489c9b5090e2 Initial load
duke
parents:
diff changeset
   286
PATCH_DTRACE_PROG = /opt/SUNWdtrd/sbin/dtrace
489c9b5090e2 Initial load
duke
parents:
diff changeset
   287
systemDtraceFound := $(wildcard ${SYSTEM_DTRACE_PROG})
489c9b5090e2 Initial load
duke
parents:
diff changeset
   288
patchDtraceFound := $(wildcard ${PATCH_DTRACE_PROG})
363
99d43e8a76ad 6537506: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents: 338
diff changeset
   289
systemDtraceHdrFound := $(wildcard $(SYSTEM_DTRACE_H))
99d43e8a76ad 6537506: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents: 338
diff changeset
   290
99d43e8a76ad 6537506: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents: 338
diff changeset
   291
ifneq ("$(systemDtraceHdrFound)", "") 
99d43e8a76ad 6537506: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents: 338
diff changeset
   292
CFLAGS += -DHAVE_DTRACE_H
99d43e8a76ad 6537506: Provide a mechanism for specifying Java-level USDT-like dtrace probes
kamg
parents: 338
diff changeset
   293
endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   294
489c9b5090e2 Initial load
duke
parents:
diff changeset
   295
ifneq ("$(patchDtraceFound)", "")
489c9b5090e2 Initial load
duke
parents:
diff changeset
   296
DTRACE_PROG=$(PATCH_DTRACE_PROG)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   297
DTRACE_INCL=-I/opt/SUNWdtrd/include
489c9b5090e2 Initial load
duke
parents:
diff changeset
   298
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   299
ifneq ("$(systemDtraceFound)", "")
489c9b5090e2 Initial load
duke
parents:
diff changeset
   300
DTRACE_PROG=$(SYSTEM_DTRACE_PROG)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   301
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   302
489c9b5090e2 Initial load
duke
parents:
diff changeset
   303
endif # ifneq ("$(systemDtraceFound)", "")
489c9b5090e2 Initial load
duke
parents:
diff changeset
   304
endif # ifneq ("$(patchDtraceFound)", "")
489c9b5090e2 Initial load
duke
parents:
diff changeset
   305
489c9b5090e2 Initial load
duke
parents:
diff changeset
   306
ifneq ("${DTRACE_PROG}", "")
489c9b5090e2 Initial load
duke
parents:
diff changeset
   307
ifeq ("${HOTSPOT_DISABLE_DTRACE_PROBES}", "")
489c9b5090e2 Initial load
duke
parents:
diff changeset
   308
489c9b5090e2 Initial load
duke
parents:
diff changeset
   309
DTRACE_OBJS = $(DTRACE.o) $(JVMOFFS.o)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   310
CFLAGS += $(DTRACE_INCL) -DDTRACE_ENABLED
489c9b5090e2 Initial load
duke
parents:
diff changeset
   311
MAPFILE_DTRACE_OPT = $(MAPFILE_DTRACE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   312
489c9b5090e2 Initial load
duke
parents:
diff changeset
   313
dtraceCheck:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   314
489c9b5090e2 Initial load
duke
parents:
diff changeset
   315
else # manually disabled
489c9b5090e2 Initial load
duke
parents:
diff changeset
   316
489c9b5090e2 Initial load
duke
parents:
diff changeset
   317
dtraceCheck:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   318
	$(QUIETLY) echo "**NOTICE** Dtrace support disabled via environment variable"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   319
489c9b5090e2 Initial load
duke
parents:
diff changeset
   320
endif # ifeq ("${HOTSPOT_DISABLE_DTRACE_PROBES}", "")
489c9b5090e2 Initial load
duke
parents:
diff changeset
   321
489c9b5090e2 Initial load
duke
parents:
diff changeset
   322
else # No dtrace program found
489c9b5090e2 Initial load
duke
parents:
diff changeset
   323
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
dtraceCheck:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   325
	$(QUIETLY) echo "**NOTICE** Dtrace support disabled: not supported by system"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   326
489c9b5090e2 Initial load
duke
parents:
diff changeset
   327
endif # ifneq ("${dtraceFound}", "")
489c9b5090e2 Initial load
duke
parents:
diff changeset
   328
489c9b5090e2 Initial load
duke
parents:
diff changeset
   329
endif # ifdef USE_GCC
489c9b5090e2 Initial load
duke
parents:
diff changeset
   330
489c9b5090e2 Initial load
duke
parents:
diff changeset
   331
else # KERNEL build
489c9b5090e2 Initial load
duke
parents:
diff changeset
   332
489c9b5090e2 Initial load
duke
parents:
diff changeset
   333
dtraceCheck:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   334
	$(QUIETLY) echo "**NOTICE** Dtrace support disabled for KERNEL builds"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   335
489c9b5090e2 Initial load
duke
parents:
diff changeset
   336
endif # ifneq ("${TYPE}", "KERNEL")
489c9b5090e2 Initial load
duke
parents:
diff changeset
   337
489c9b5090e2 Initial load
duke
parents:
diff changeset
   338
else # CORE build
489c9b5090e2 Initial load
duke
parents:
diff changeset
   339
489c9b5090e2 Initial load
duke
parents:
diff changeset
   340
dtraceCheck:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   341
	$(QUIETLY) echo "**NOTICE** Dtrace support disabled for CORE builds"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   342
489c9b5090e2 Initial load
duke
parents:
diff changeset
   343
endif # ifneq ("${TYPE}", "CORE")