Mercurial > hg > truffle
comparison make/linux/makefiles/dtrace.make @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | a00b8f42c4c4 |
children |
comparison
equal
deleted
inserted
replaced
14908:8db6e76cb658 | 14909:4ca6dc0799b6 |
---|---|
40 ifneq ($(ALT_SDT_H),) | 40 ifneq ($(ALT_SDT_H),) |
41 SDT_H_FILE = $(ALT_SDT_H) | 41 SDT_H_FILE = $(ALT_SDT_H) |
42 else | 42 else |
43 SDT_H_FILE = /usr/include/sys/sdt.h | 43 SDT_H_FILE = /usr/include/sys/sdt.h |
44 endif | 44 endif |
45 | |
46 DTRACE_ENABLED = $(shell test -f $(SDT_H_FILE) && echo $(SDT_H_FILE)) | 45 DTRACE_ENABLED = $(shell test -f $(SDT_H_FILE) && echo $(SDT_H_FILE)) |
47 REASON = "$(SDT_H_FILE) not found" | 46 REASON = "$(SDT_H_FILE) not found" |
48 | 47 |
49 endif # GCC version | 48 ifneq ($(DTRACE_ENABLED),) |
50 endif # OPENJDK | 49 CFLAGS += -DDTRACE_ENABLED |
50 endif | |
51 | 51 |
52 | 52 endif |
53 DTRACE_COMMON_SRCDIR = $(GAMMADIR)/src/os/posix/dtrace | |
54 DTRACE_PROG = dtrace | |
55 DtraceOutDir = $(GENERATED)/dtracefiles | |
56 | |
57 $(DtraceOutDir): | |
58 mkdir $(DtraceOutDir) | |
59 | |
60 $(DtraceOutDir)/hotspot.h: $(DTRACE_COMMON_SRCDIR)/hotspot.d | $(DtraceOutDir) | |
61 $(QUIETLY) $(DTRACE_PROG) $(DTRACE_OPTS) -C -I. -h -o $@ -s $(DTRACE_COMMON_SRCDIR)/hotspot.d | |
62 | |
63 $(DtraceOutDir)/hotspot_jni.h: $(DTRACE_COMMON_SRCDIR)/hotspot_jni.d | $(DtraceOutDir) | |
64 $(QUIETLY) $(DTRACE_PROG) $(DTRACE_OPTS) -C -I. -h -o $@ -s $(DTRACE_COMMON_SRCDIR)/hotspot_jni.d | |
65 | |
66 $(DtraceOutDir)/hs_private.h: $(DTRACE_COMMON_SRCDIR)/hs_private.d | $(DtraceOutDir) | |
67 $(QUIETLY) $(DTRACE_PROG) $(DTRACE_OPTS) -C -I. -h -o $@ -s $(DTRACE_COMMON_SRCDIR)/hs_private.d | |
68 | |
69 ifneq ($(DTRACE_ENABLED),) | |
70 CFLAGS += -DDTRACE_ENABLED | |
71 dtrace_gen_headers: $(DtraceOutDir)/hotspot.h $(DtraceOutDir)/hotspot_jni.h $(DtraceOutDir)/hs_private.h | |
72 else | |
73 dtrace_gen_headers: | |
74 $(QUIETLY) echo "**NOTICE** Dtrace support disabled: $(REASON)" | |
75 endif | 53 endif |
76 | 54 |
77 # Phony target used in vm.make build target to check whether enabled. | 55 # Phony target used in vm.make build target to check whether enabled. |
56 .PHONY: dtraceCheck | |
78 ifeq ($(DTRACE_ENABLED),) | 57 ifeq ($(DTRACE_ENABLED),) |
79 dtraceCheck: | 58 dtraceCheck: |
80 $(QUIETLY) echo "**NOTICE** Dtrace support disabled: $(REASON)" | 59 $(QUIETLY) echo "**NOTICE** Dtrace support disabled: $(REASON)" |
81 else | 60 else |
82 dtraceCheck: | 61 dtraceCheck: |
83 endif | 62 endif |
84 | 63 |
85 .PHONY: dtrace_gen_headers dtraceCheck | |
86 | |
87 # It doesn't support HAVE_DTRACE_H though. | 64 # It doesn't support HAVE_DTRACE_H though. |
88 | 65 |