equal
deleted
inserted
replaced
1 # |
1 # |
2 # Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2005, 2010, 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. |
61 DTRACE_OPTS = -64 -D_LP64 |
61 DTRACE_OPTS = -64 -D_LP64 |
62 endif |
62 endif |
63 |
63 |
64 # making libjvm_db |
64 # making libjvm_db |
65 |
65 |
66 INCLS = $(GENERATED)/incls |
|
67 |
|
68 # Use mapfile with libjvm_db.so |
66 # Use mapfile with libjvm_db.so |
69 LIBJVM_DB_MAPFILE = $(MAKEFILES_DIR)/mapfile-vers-jvm_db |
67 LIBJVM_DB_MAPFILE = $(MAKEFILES_DIR)/mapfile-vers-jvm_db |
70 LFLAGS_JVM_DB += $(MAPFLAG:FILENAME=$(LIBJVM_DB_MAPFILE)) |
68 LFLAGS_JVM_DB += $(MAPFLAG:FILENAME=$(LIBJVM_DB_MAPFILE)) |
71 |
69 |
72 # Use mapfile with libjvm_dtrace.so |
70 # Use mapfile with libjvm_dtrace.so |
112 else |
110 else |
113 LFLAGS_GENOFFS += -mt -xnolib -norunpath |
111 LFLAGS_GENOFFS += -mt -xnolib -norunpath |
114 endif |
112 endif |
115 |
113 |
116 lib$(GENOFFS).so: $(DTRACE_SRCDIR)/$(GENOFFS).cpp $(DTRACE_SRCDIR)/$(GENOFFS).h \ |
114 lib$(GENOFFS).so: $(DTRACE_SRCDIR)/$(GENOFFS).cpp $(DTRACE_SRCDIR)/$(GENOFFS).h \ |
117 $(INCLS)/_vmStructs.cpp.incl $(LIBJVM.o) |
115 $(LIBJVM.o) |
118 $(QUIETLY) $(CCC) $(CPPFLAGS) $(GENOFFS_CFLAGS) $(SHARED_FLAG) $(PICFLAG) \ |
116 $(QUIETLY) $(CCC) $(CPPFLAGS) $(GENOFFS_CFLAGS) $(SHARED_FLAG) $(PICFLAG) \ |
119 $(LFLAGS_GENOFFS) -o $@ $(DTRACE_SRCDIR)/$(GENOFFS).cpp -lc |
117 $(LFLAGS_GENOFFS) -o $@ $(DTRACE_SRCDIR)/$(GENOFFS).cpp -lc |
120 |
118 |
121 $(GENOFFS): $(DTRACE_SRCDIR)/$(GENOFFS)Main.c lib$(GENOFFS).so |
119 $(GENOFFS): $(DTRACE_SRCDIR)/$(GENOFFS)Main.c lib$(GENOFFS).so |
122 $(QUIETLY) $(LINK.CC) -z nodefs -o $@ $(DTRACE_SRCDIR)/$(GENOFFS)Main.c \ |
120 $(QUIETLY) $(LINK.CC) -z nodefs -o $@ $(DTRACE_SRCDIR)/$(GENOFFS)Main.c \ |
158 [ -f $(LIBJVM_DTRACE_G) ] || { ln -s $@ $(LIBJVM_DTRACE_G); } |
156 [ -f $(LIBJVM_DTRACE_G) ] || { ln -s $@ $(LIBJVM_DTRACE_G); } |
159 |
157 |
160 $(DTRACE).d: $(DTRACE_SRCDIR)/hotspot.d $(DTRACE_SRCDIR)/hotspot_jni.d \ |
158 $(DTRACE).d: $(DTRACE_SRCDIR)/hotspot.d $(DTRACE_SRCDIR)/hotspot_jni.d \ |
161 $(DTRACE_SRCDIR)/hs_private.d $(DTRACE_SRCDIR)/jhelper.d |
159 $(DTRACE_SRCDIR)/hs_private.d $(DTRACE_SRCDIR)/jhelper.d |
162 $(QUIETLY) cat $^ > $@ |
160 $(QUIETLY) cat $^ > $@ |
|
161 |
|
162 DTraced_Files = ciEnv.o \ |
|
163 classLoadingService.o \ |
|
164 compileBroker.o \ |
|
165 hashtable.o \ |
|
166 instanceKlass.o \ |
|
167 java.o \ |
|
168 jni.o \ |
|
169 jvm.o \ |
|
170 memoryManager.o \ |
|
171 nmethod.o \ |
|
172 objectMonitor.o \ |
|
173 runtimeService.o \ |
|
174 sharedRuntime.o \ |
|
175 synchronizer.o \ |
|
176 thread.o \ |
|
177 unsafe.o \ |
|
178 vmThread.o \ |
|
179 vmCMSOperations.o \ |
|
180 vmPSOperations.o \ |
|
181 vmGCOperations.o \ |
163 |
182 |
164 # Dtrace is available, so we build $(DTRACE.o) |
183 # Dtrace is available, so we build $(DTRACE.o) |
165 $(DTRACE.o): $(DTRACE).d $(JVMOFFS).h $(JVMOFFS)Index.h $(DTraced_Files) |
184 $(DTRACE.o): $(DTRACE).d $(JVMOFFS).h $(JVMOFFS)Index.h $(DTraced_Files) |
166 @echo Compiling $(DTRACE).d |
185 @echo Compiling $(DTRACE).d |
167 |
186 |