1 # |
1 # |
2 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. |
7 # published by the Free Software Foundation. |
23 # |
23 # |
24 |
24 |
25 # Rules to build jvm_db/dtrace, used by vm.make |
25 # Rules to build jvm_db/dtrace, used by vm.make |
26 |
26 |
27 # We build libjvm_dtrace/libjvm_db/dtrace for COMPILER1 and COMPILER2 |
27 # We build libjvm_dtrace/libjvm_db/dtrace for COMPILER1 and COMPILER2 |
28 # but not for CORE or KERNEL configurations. |
28 # but not for CORE configuration. |
29 |
29 |
30 ifneq ("${TYPE}", "CORE") |
30 ifneq ("${TYPE}", "CORE") |
31 ifneq ("${TYPE}", "KERNEL") |
|
32 |
31 |
33 ifeq ($(OS_VENDOR), Darwin) |
32 ifeq ($(OS_VENDOR), Darwin) |
34 # we build dtrace for macosx using USDT2 probes |
33 # we build dtrace for macosx using USDT2 probes |
35 |
34 |
36 DtraceOutDir = $(GENERATED)/dtracefiles |
35 DtraceOutDir = $(GENERATED)/dtracefiles |
278 endif # ifneq ("${dtraceFound}", "") |
277 endif # ifneq ("${dtraceFound}", "") |
279 |
278 |
280 endif # ifeq ($(OS_VENDOR), Darwin) |
279 endif # ifeq ($(OS_VENDOR), Darwin) |
281 |
280 |
282 |
281 |
283 else # KERNEL build |
|
284 |
|
285 dtraceCheck: |
|
286 $(QUIETLY) echo "**NOTICE** Dtrace support disabled for KERNEL builds" |
|
287 |
|
288 endif # ifneq ("${TYPE}", "KERNEL") |
|
289 |
|
290 else # CORE build |
282 else # CORE build |
291 |
283 |
292 dtraceCheck: |
284 dtraceCheck: |
293 $(QUIETLY) echo "**NOTICE** Dtrace support disabled for CORE builds" |
285 $(QUIETLY) echo "**NOTICE** Dtrace support disabled for CORE builds" |
294 |
286 |