equal
deleted
inserted
replaced
1 # |
1 # |
2 # Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
|
3 # Copyright (c) 2012 Red Hat, Inc. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
5 # |
5 # This code is free software; you can redistribute it and/or modify it |
6 # 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 |
7 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. |
8 # published by the Free Software Foundation. |
23 # |
24 # |
24 |
25 |
25 # Linux does not build jvm_db |
26 # Linux does not build jvm_db |
26 LIBJVM_DB = |
27 LIBJVM_DB = |
27 |
28 |
|
29 # Only OPENJDK builds test and support SDT probes currently. |
|
30 ifndef OPENJDK |
|
31 REASON = "This JDK does not support SDT probes" |
|
32 else |
|
33 |
|
34 # We need a recent GCC for the default |
|
35 ifeq "$(shell expr \( $(CC_VER_MAJOR) \>= 4 \) \& \( $(CC_VER_MINOR) \>= 4 \) )" "0" |
|
36 REASON = "gcc version is too old" |
|
37 else |
|
38 |
|
39 # But it does have a SystemTap dtrace compatible sys/sdt.h |
|
40 ifneq ($(ALT_SDT_H),) |
|
41 SDT_H_FILE = $(ALT_SDT_H) |
|
42 else |
|
43 SDT_H_FILE = /usr/include/sys/sdt.h |
|
44 endif |
|
45 DTRACE_ENABLED = $(shell test -f $(SDT_H_FILE) && echo $(SDT_H_FILE)) |
|
46 REASON = "$(SDT_H_FILE) not found" |
|
47 |
|
48 ifneq ($(DTRACE_ENABLED),) |
|
49 CFLAGS += -DDTRACE_ENABLED |
|
50 endif |
|
51 |
|
52 endif |
|
53 endif |
|
54 |
|
55 # Phony target used in vm.make build target to check whether enabled. |
|
56 .PHONY: dtraceCheck |
|
57 ifeq ($(DTRACE_ENABLED),) |
|
58 dtraceCheck: |
|
59 $(QUIETLY) echo "**NOTICE** Dtrace support disabled: $(REASON)" |
|
60 else |
|
61 dtraceCheck: |
|
62 endif |
|
63 |
|
64 # It doesn't support HAVE_DTRACE_H though. |
|
65 |