Mercurial > hg > graal-jvmci-8
comparison make/solaris/makefiles/sa.make @ 311:25c3145237c6
6731958: Include all the SA classes into sa-jdi.jar
Summary: sa-jdi.jar bundled with JDK should include all the SA classes.
Reviewed-by: swamyv
author | poonam |
---|---|
date | Wed, 27 Aug 2008 22:45:38 -0700 |
parents | d1605aabd0a1 |
children | 0fc81f0a8ca8 |
comparison
equal
deleted
inserted
replaced
297:f8068895c22d | 311:25c3145237c6 |
---|---|
35 | 35 |
36 # tools.jar is needed by the JDI - SA binding | 36 # tools.jar is needed by the JDI - SA binding |
37 SA_CLASSPATH = $(BOOT_JAVA_HOME)/lib/tools.jar | 37 SA_CLASSPATH = $(BOOT_JAVA_HOME)/lib/tools.jar |
38 | 38 |
39 # gnumake 3.78.1 does not accept the *s that | 39 # gnumake 3.78.1 does not accept the *s that |
40 # are in AGENT_ALLFILES, so use the shell to expand them | 40 # are in AGENT_FILES1 and AGENT_FILES2, so use the shell to expand them |
41 AGENT_ALLFILES := $(shell /usr/bin/test -d $(AGENT_DIR) && /bin/ls $(AGENT_ALLFILES)) | 41 AGENT_FILES1 := $(shell /usr/bin/test -d $(AGENT_DIR) && /bin/ls $(AGENT_FILES1)) |
42 AGENT_FILES2 := $(shell /usr/bin/test -d $(AGENT_DIR) && /bin/ls $(AGENT_FILES2)) | |
42 | 43 |
43 SA_CLASSDIR = $(GENERATED)/saclasses | 44 SA_CLASSDIR = $(GENERATED)/saclasses |
44 | 45 |
45 SA_BUILD_VERSION_PROP = "sun.jvm.hotspot.runtime.VM.saBuildVersion=$(SA_BUILD_VERSION)" | 46 SA_BUILD_VERSION_PROP = "sun.jvm.hotspot.runtime.VM.saBuildVersion=$(SA_BUILD_VERSION)" |
46 | 47 |
50 all: | 51 all: |
51 $(QUIETLY) if [ -d $(AGENT_DIR) ] ; then \ | 52 $(QUIETLY) if [ -d $(AGENT_DIR) ] ; then \ |
52 $(MAKE) -f sa.make $(GENERATED)/sa-jdi.jar; \ | 53 $(MAKE) -f sa.make $(GENERATED)/sa-jdi.jar; \ |
53 fi | 54 fi |
54 | 55 |
55 $(GENERATED)/sa-jdi.jar: $(AGENT_ALLFILES) | 56 $(GENERATED)/sa-jdi.jar: $(AGENT_FILES1) $(AGENT_FILES2) |
56 $(QUIETLY) echo "Making $@"; | 57 $(QUIETLY) echo "Making $@"; |
57 $(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \ | 58 $(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \ |
58 echo "ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"; \ | 59 echo "ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"; \ |
59 exit 1; \ | 60 exit 1; \ |
60 fi | 61 fi |
64 exit 1; \ | 65 exit 1; \ |
65 fi | 66 fi |
66 $(QUIETLY) if [ ! -d $(SA_CLASSDIR) ] ; then \ | 67 $(QUIETLY) if [ ! -d $(SA_CLASSDIR) ] ; then \ |
67 mkdir -p $(SA_CLASSDIR); \ | 68 mkdir -p $(SA_CLASSDIR); \ |
68 fi | 69 fi |
69 $(QUIETLY) $(COMPILE.JAVAC) -source 1.4 -classpath $(SA_CLASSPATH) -g -d $(SA_CLASSDIR) $(AGENT_ALLFILES) | 70 $(QUIETLY) $(COMPILE.JAVAC) -source 1.4 -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR) -g -d $(SA_CLASSDIR) $(AGENT_FILES1) |
71 $(QUIETLY) $(COMPILE.JAVAC) -source 1.4 -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR) -g -d $(SA_CLASSDIR) $(AGENT_FILES2) | |
72 | |
70 $(QUIETLY) $(COMPILE.RMIC) -classpath $(SA_CLASSDIR) -d $(SA_CLASSDIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer | 73 $(QUIETLY) $(COMPILE.RMIC) -classpath $(SA_CLASSDIR) -d $(SA_CLASSDIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer |
71 $(QUIETLY) echo "$(SA_BUILD_VERSION_PROP)" > $(SA_PROPERTIES) | 74 $(QUIETLY) echo "$(SA_BUILD_VERSION_PROP)" > $(SA_PROPERTIES) |
75 $(QUIETLY) rm -f $(SA_CLASSDIR)/sun/jvm/hotspot/utilities/soql/sa.js | |
76 $(QUIETLY) cp $(AGENT_SRC_DIR)/sun/jvm/hotspot/utilities/soql/sa.js $(SA_CLASSDIR)/sun/jvm/hotspot/utilities/soql | |
77 $(QUIETLY) mkdir -p $(SA_CLASSDIR)/sun/jvm/hotspot/ui/resources | |
78 $(QUIETLY) rm -f $(SA_CLASSDIR)/sun/jvm/hotspot/ui/resources/* | |
79 $(QUIETLY) cp $(AGENT_SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(SA_CLASSDIR)/sun/jvm/hotspot/ui/resources/ | |
80 $(QUIETLY) cp -r $(AGENT_SRC_DIR)/images/* $(SA_CLASSDIR)/ | |
72 $(QUIETLY) $(RUN.JAR) cf $@ -C $(SA_CLASSDIR)/ . | 81 $(QUIETLY) $(RUN.JAR) cf $@ -C $(SA_CLASSDIR)/ . |
73 $(QUIETLY) $(RUN.JAR) uf $@ -C $(AGENT_SRC_DIR) META-INF/services/com.sun.jdi.connect.Connector | 82 $(QUIETLY) $(RUN.JAR) uf $@ -C $(AGENT_SRC_DIR) META-INF/services/com.sun.jdi.connect.Connector |
74 $(QUIETLY) $(RUN.JAVAH) -classpath $(SA_CLASSDIR) -d $(GENERATED) -jni sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal | 83 $(QUIETLY) $(RUN.JAVAH) -classpath $(SA_CLASSDIR) -d $(GENERATED) -jni sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal |
75 | 84 |
76 clean: | 85 clean: |