< prev index next >

make/windows/makefiles/sa.make

Print this page


   1 #
   2 # Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   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
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #


  55 !endif
  56 
  57 # tools.jar is needed by the JDI - SA binding
  58 SA_CLASSPATH = $(BOOT_JAVA_HOME)/lib/tools.jar
  59 
  60 SA_CLASSDIR = $(GENERATED)/saclasses
  61 
  62 SA_BUILD_VERSION_PROP = sun.jvm.hotspot.runtime.VM.saBuildVersion=$(SA_BUILD_VERSION)
  63 
  64 SA_PROPERTIES = $(SA_CLASSDIR)/sa.properties
  65 
  66 default::  $(GENERATED)/sa-jdi.jar
  67 
  68 # Remove the space between $(SA_BUILD_VERSION_PROP) and > below as it adds a white space
  69 # at the end of SA version string and causes a version mismatch with the target VM version.
  70 
  71 $(GENERATED)/sa-jdi.jar: $(AGENT_FILES)
  72         $(QUIETLY) mkdir -p $(SA_CLASSDIR)
  73         @echo ...Building sa-jdi.jar into $(SA_CLASSDIR)
  74         @echo ...$(COMPILE_JAVAC) -classpath $(SA_CLASSPATH) -d $(SA_CLASSDIR) ....
  75         @$(COMPILE_JAVAC) -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR) -d $(SA_CLASSDIR) $(AGENT_FILES)
  76         $(COMPILE_RMIC) -classpath $(SA_CLASSDIR) -d $(SA_CLASSDIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
  77         $(QUIETLY) echo $(SA_BUILD_VERSION_PROP)> $(SA_PROPERTIES)
  78         $(QUIETLY) rm -f $(SA_CLASSDIR)/sun/jvm/hotspot/utilities/soql/sa.js
  79         $(QUIETLY) $(CP) $(AGENT_SRC_DIR)/sun/jvm/hotspot/utilities/soql/sa.js $(SA_CLASSDIR)/sun/jvm/hotspot/utilities/soql
  80         $(QUIETLY) rm -rf $(SA_CLASSDIR)/sun/jvm/hotspot/ui/resources
  81         $(QUIETLY) mkdir $(SA_CLASSDIR)/sun/jvm/hotspot/ui/resources
  82         $(QUIETLY) $(CP) $(AGENT_SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(SA_CLASSDIR)/sun/jvm/hotspot/ui/resources
  83         $(QUIETLY) $(CP) -r $(AGENT_SRC_DIR)/images/* $(SA_CLASSDIR)
  84         $(RUN_JAR) cf $@ -C $(SA_CLASSDIR) .
  85         $(RUN_JAR) uf $@ -C $(AGENT_SRC_DIR) META-INF/services/com.sun.jdi.connect.Connector
  86         $(RUN_JAVAH) -classpath $(SA_CLASSDIR) -jni sun.jvm.hotspot.debugger.windbg.WindbgDebuggerLocal
  87         $(RUN_JAVAH) -classpath $(SA_CLASSDIR) -jni sun.jvm.hotspot.debugger.x86.X86ThreadContext
  88         $(RUN_JAVAH) -classpath $(SA_CLASSDIR) -jni sun.jvm.hotspot.debugger.amd64.AMD64ThreadContext
  89         $(RUN_JAVAH) -classpath $(SA_CLASSDIR) -jni sun.jvm.hotspot.asm.Disassembler
  90 
  91 
  92 
  93 # This second part is used to build sawindbg.dll
  94 # We currently build it the same way for product, debug, and fastdebug.
  95 
  96 SAWINDBG=sawindbg.dll
  97 
  98 checkAndBuildSA:: $(SAWINDBG)
  99 
 100 # These do not need to be optimized (don't run a lot of code) and it
 101 # will be useful to have the assertion checks in place
 102 
 103 !if "$(BUILDARCH)" == "ia64"
 104 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 $(GX_OPTION) -Od -D "WIN32" -D "WIN64" -D "_WINDOWS" -D "_DEBUG" -D "_CONSOLE" -D "_MBCS" -FD -c
 105 !elseif "$(BUILDARCH)" == "amd64"
 106 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 $(GX_OPTION) -Od -D "WIN32" -D "WIN64" -D "_WINDOWS" -D "_DEBUG" -D "_CONSOLE" -D "_MBCS" -FD -c
 107 !else
 108 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 $(GX_OPTION) -Od -D "WIN32" -D "_WINDOWS" -D "_DEBUG" -D "_CONSOLE" -D "_MBCS" -FD -RTC1 -c
 109 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"


   1 #
   2 # Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   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
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #


  55 !endif
  56 
  57 # tools.jar is needed by the JDI - SA binding
  58 SA_CLASSPATH = $(BOOT_JAVA_HOME)/lib/tools.jar
  59 
  60 SA_CLASSDIR = $(GENERATED)/saclasses
  61 
  62 SA_BUILD_VERSION_PROP = sun.jvm.hotspot.runtime.VM.saBuildVersion=$(SA_BUILD_VERSION)
  63 
  64 SA_PROPERTIES = $(SA_CLASSDIR)/sa.properties
  65 
  66 default::  $(GENERATED)/sa-jdi.jar
  67 
  68 # Remove the space between $(SA_BUILD_VERSION_PROP) and > below as it adds a white space
  69 # at the end of SA version string and causes a version mismatch with the target VM version.
  70 
  71 $(GENERATED)/sa-jdi.jar: $(AGENT_FILES)
  72         $(QUIETLY) mkdir -p $(SA_CLASSDIR)
  73         @echo ...Building sa-jdi.jar into $(SA_CLASSDIR)
  74         @echo ...$(COMPILE_JAVAC) -classpath $(SA_CLASSPATH) -d $(SA_CLASSDIR) ....
  75         @$(COMPILE_JAVAC) -h $(GENERATED) -classpath $(SA_CLASSPATH) -sourcepath $(AGENT_SRC_DIR) -d $(SA_CLASSDIR) $(AGENT_FILES)
  76         $(COMPILE_RMIC) -classpath $(SA_CLASSDIR) -d $(SA_CLASSDIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
  77         $(QUIETLY) echo $(SA_BUILD_VERSION_PROP)> $(SA_PROPERTIES)
  78         $(QUIETLY) rm -f $(SA_CLASSDIR)/sun/jvm/hotspot/utilities/soql/sa.js
  79         $(QUIETLY) $(CP) $(AGENT_SRC_DIR)/sun/jvm/hotspot/utilities/soql/sa.js $(SA_CLASSDIR)/sun/jvm/hotspot/utilities/soql
  80         $(QUIETLY) rm -rf $(SA_CLASSDIR)/sun/jvm/hotspot/ui/resources
  81         $(QUIETLY) mkdir $(SA_CLASSDIR)/sun/jvm/hotspot/ui/resources
  82         $(QUIETLY) $(CP) $(AGENT_SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(SA_CLASSDIR)/sun/jvm/hotspot/ui/resources
  83         $(QUIETLY) $(CP) -r $(AGENT_SRC_DIR)/images/* $(SA_CLASSDIR)
  84         $(RUN_JAR) cf $@ -C $(SA_CLASSDIR) .
  85         $(RUN_JAR) uf $@ -C $(AGENT_SRC_DIR) META-INF/services/com.sun.jdi.connect.Connector




  86 
  87 
  88 
  89 # This second part is used to build sawindbg.dll
  90 # We currently build it the same way for product, debug, and fastdebug.
  91 
  92 SAWINDBG=sawindbg.dll
  93 
  94 checkAndBuildSA:: $(SAWINDBG)
  95 
  96 # These do not need to be optimized (don't run a lot of code) and it
  97 # will be useful to have the assertion checks in place
  98 
  99 !if "$(BUILDARCH)" == "ia64"
 100 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 $(GX_OPTION) -Od -D "WIN32" -D "WIN64" -D "_WINDOWS" -D "_DEBUG" -D "_CONSOLE" -D "_MBCS" -FD -c
 101 !elseif "$(BUILDARCH)" == "amd64"
 102 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 $(GX_OPTION) -Od -D "WIN32" -D "WIN64" -D "_WINDOWS" -D "_DEBUG" -D "_CONSOLE" -D "_MBCS" -FD -c
 103 !else
 104 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 $(GX_OPTION) -Od -D "WIN32" -D "_WINDOWS" -D "_DEBUG" -D "_CONSOLE" -D "_MBCS" -FD -RTC1 -c
 105 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"


< prev index next >