author | dcubed |
Wed, 20 Jan 2010 12:09:31 -0700 | |
changeset 4808 | 37f605425f74 |
child 5506 | 202f599c92aa |
permissions | -rw-r--r-- |
4808
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
1 |
# |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
2 |
# Copyright 2010 Sun Microsystems, Inc. All Rights Reserved. |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
3 |
# |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
4 |
# Redistribution and use in source and binary forms, with or without |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
5 |
# modification, are permitted provided that the following conditions |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
6 |
# are met: |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
7 |
# |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
8 |
# - Redistributions of source code must retain the above copyright |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
9 |
# notice, this list of conditions and the following disclaimer. |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
10 |
# |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
11 |
# - Redistributions in binary form must reproduce the above copyright |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
12 |
# notice, this list of conditions and the following disclaimer in the |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
13 |
# documentation and/or other materials provided with the distribution. |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
14 |
# |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
15 |
# - Neither the name of Sun Microsystems nor the names of its |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
16 |
# contributors may be used to endorse or promote products derived |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
17 |
# from this software without specific prior written permission. |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
18 |
# |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
19 |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
20 |
# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
21 |
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
22 |
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
23 |
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
24 |
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
25 |
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
26 |
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
27 |
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
28 |
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
29 |
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
30 |
# |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
31 |
|
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
32 |
######################################################################## |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
33 |
# |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
34 |
# Sample GNU Makefile for building JVMTI Demo compiledMethodLoad |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
35 |
# |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
36 |
# Example uses: |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
37 |
# gnumake JDK=<java_home> OSNAME=solaris [OPT=true] [LIBARCH=sparc] |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
38 |
# gnumake JDK=<java_home> OSNAME=solaris [OPT=true] [LIBARCH=sparcv9] |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
39 |
# gnumake JDK=<java_home> OSNAME=linux [OPT=true] |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
40 |
# gnumake JDK=<java_home> OSNAME=win32 [OPT=true] |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
41 |
# |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
42 |
######################################################################## |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
43 |
|
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
44 |
# Source lists |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
45 |
LIBNAME=compiledMethodLoad |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
46 |
SOURCES=compiledMethodLoad.c ../agent_util/agent_util.c |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
47 |
|
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
48 |
# Solaris Sun C Compiler Version 5.5 |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
49 |
ifeq ($(OSNAME), solaris) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
50 |
# Sun Solaris Compiler options needed |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
51 |
COMMON_FLAGS=-mt -KPIC |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
52 |
# Options that help find errors |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
53 |
COMMON_FLAGS+= -Xa -v -xstrconst -xc99=%none |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
54 |
# Check LIBARCH for any special compiler options |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
55 |
LIBARCH=$(shell uname -p) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
56 |
ifeq ($(LIBARCH), sparc) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
57 |
COMMON_FLAGS+=-xarch=v8 -xregs=no%appl |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
58 |
endif |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
59 |
ifeq ($(LIBARCH), sparcv9) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
60 |
COMMON_FLAGS+=-xarch=v9 -xregs=no%appl |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
61 |
endif |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
62 |
ifeq ($(OPT), true) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
63 |
CFLAGS=-xO2 $(COMMON_FLAGS) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
64 |
else |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
65 |
CFLAGS=-g $(COMMON_FLAGS) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
66 |
endif |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
67 |
# Object files needed to create library |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
68 |
OBJECTS=$(SOURCES:%.c=%.o) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
69 |
# Library name and options needed to build it |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
70 |
LIBRARY=lib$(LIBNAME).so |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
71 |
LDFLAGS=-z defs -ztext |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
72 |
# Libraries we are dependent on |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
73 |
LIBRARIES= -lc |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
74 |
# Building a shared library |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
75 |
LINK_SHARED=$(LINK.c) -G -o $@ |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
76 |
endif |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
77 |
|
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
78 |
# Linux GNU C Compiler |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
79 |
ifeq ($(OSNAME), linux) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
80 |
# GNU Compiler options needed to build it |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
81 |
COMMON_FLAGS=-fno-strict-aliasing -fPIC -fno-omit-frame-pointer |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
82 |
# Options that help find errors |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
83 |
COMMON_FLAGS+= -W -Wall -Wno-unused -Wno-parentheses |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
84 |
ifeq ($(OPT), true) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
85 |
CFLAGS=-O2 $(COMMON_FLAGS) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
86 |
else |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
87 |
CFLAGS=-g $(COMMON_FLAGS) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
88 |
endif |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
89 |
# Object files needed to create library |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
90 |
OBJECTS=$(SOURCES:%.c=%.o) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
91 |
# Library name and options needed to build it |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
92 |
LIBRARY=lib$(LIBNAME).so |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
93 |
LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
94 |
# Libraries we are dependent on |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
95 |
LIBRARIES=-lc |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
96 |
# Building a shared library |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
97 |
LINK_SHARED=$(LINK.c) -shared -o $@ |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
98 |
endif |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
99 |
|
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
100 |
# Windows Microsoft C/C++ Optimizing Compiler Version 12 |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
101 |
ifeq ($(OSNAME), win32) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
102 |
CC=cl |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
103 |
# Compiler options needed to build it |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
104 |
COMMON_FLAGS=-Gy -DWIN32 |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
105 |
# Options that help find errors |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
106 |
COMMON_FLAGS+=-W0 -WX |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
107 |
ifeq ($(OPT), true) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
108 |
CFLAGS= -Ox -Op -Zi $(COMMON_FLAGS) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
109 |
else |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
110 |
CFLAGS= -Od -Zi $(COMMON_FLAGS) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
111 |
endif |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
112 |
# Object files needed to create library |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
113 |
OBJECTS=$(SOURCES:%.c=%.obj) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
114 |
# Library name and options needed to build it |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
115 |
LIBRARY=$(LIBNAME).dll |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
116 |
LDFLAGS= |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
117 |
# Libraries we are dependent on |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
118 |
LIBRARIES= |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
119 |
# Building a shared library |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
120 |
LINK_SHARED=link -dll -out:$@ |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
121 |
endif |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
122 |
|
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
123 |
# Common -I options |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
124 |
CFLAGS += -I. |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
125 |
CFLAGS += -I../agent_util |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
126 |
CFLAGS += -I$(JDK)/include -I$(JDK)/include/$(OSNAME) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
127 |
|
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
128 |
# Default rule |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
129 |
all: $(LIBRARY) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
130 |
|
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
131 |
# Build native library |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
132 |
$(LIBRARY): $(OBJECTS) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
133 |
$(LINK_SHARED) $(OBJECTS) $(LIBRARIES) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
134 |
|
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
135 |
# Cleanup the built bits |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
136 |
clean: |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
137 |
rm -f $(LIBRARY) $(OBJECTS) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
138 |
|
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
139 |
# Simple tester |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
140 |
test: all |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
141 |
LD_LIBRARY_PATH=`pwd` $(JDK)/bin/java -agentlib:$(LIBNAME) -version |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
142 |
|
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
143 |
# Compilation rule only needed on Windows |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
144 |
ifeq ($(OSNAME), win32) |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
145 |
%.obj: %.c |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
146 |
$(COMPILE.c) $< |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
147 |
endif |
37f605425f74
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
diff
changeset
|
148 |