< prev index next >

make/windows/makefiles/sa.make

Print this page
@  rev 8857 : 8212110: Build of saproc.dll broken on Windows 32 bit after JDK-8210647
:  Reviewed-by: erikj, akasko
o  rev 8855 : 8210647: libsaproc is being compiled without optimization
|  Reviewed-by: duke
~


  84         $(QUIETLY) cp $(AGENT_SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(SA_CLASSDIR)/sun/jvm/hotspot/ui/resources
  85         $(QUIETLY) cp -r $(AGENT_SRC_DIR)/images/* $(SA_CLASSDIR)
  86         $(RUN_JAR) cf $@ -C $(SA_CLASSDIR) .
  87         $(RUN_JAR) uf $@ -C $(AGENT_SRC_DIR) META-INF/services/com.sun.jdi.connect.Connector
  88         $(RUN_JAVAH) -classpath $(SA_CLASSDIR) -jni sun.jvm.hotspot.debugger.windbg.WindbgDebuggerLocal
  89         $(RUN_JAVAH) -classpath $(SA_CLASSDIR) -jni sun.jvm.hotspot.debugger.x86.X86ThreadContext 
  90         $(RUN_JAVAH) -classpath $(SA_CLASSDIR) -jni sun.jvm.hotspot.debugger.amd64.AMD64ThreadContext 
  91         $(RUN_JAVAH) -classpath $(SA_CLASSDIR) -jni sun.jvm.hotspot.asm.Disassembler
  92 
  93 
  94 
  95 # This second part is used to build sawindbg.dll
  96 # We currently build it the same way for product, debug, and fastdebug.
  97 
  98 SAWINDBG=sawindbg.dll
  99 
 100 checkAndBuildSA:: $(SAWINDBG)
 101 
 102 !if "$(BUILD_FLAVOR)" == "debug"
 103 SA_EXTRA_CFLAGS = -Od -D "_DEBUG"



 104 !elseif "$(BUILD_FLAVOR)" == "fastdebug"
 105 SA_EXTRA_CFLAGS = -O2 -D "_DEBUG"
 106 !else
 107 SA_EXTRA_CFLAGS = -O2
 108 !endif
 109 
 110 !if "$(BUILDARCH)" == "ia64"
 111 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 $(GX_OPTION) -D "WIN32" -D "WIN64" -D "_WINDOWS"  -D "_CONSOLE" -D "_MBCS" -YX -FD -c
 112 !elseif "$(BUILDARCH)" == "amd64"
 113 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 $(GX_OPTION) -D "WIN32" -D "WIN64" -D "_WINDOWS" -D "_CONSOLE" -D "_MBCS" -YX -FD -c
 114 !if "$(COMPILER_NAME)" == "VS2005"
 115 # On amd64, VS2005 compiler requires bufferoverflowU.lib on the link command line, 
 116 # otherwise we get missing __security_check_cookie externals at link time. 
 117 SA_LD_FLAGS = bufferoverflowU.lib
 118 !endif
 119 !else
 120 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 -Gm $(GX_OPTION) -D "WIN32" -D "_WINDOWS" -D "_CONSOLE" -D "_MBCS" -YX -FD -GZ -c
 121 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
 122 SA_CFLAGS = $(SA_CFLAGS) -ZI


 123 !endif
 124 !endif
 125 !if "$(MT)" != ""
 126 SA_LD_FLAGS = -manifest $(SA_LD_FLAGS)
 127 !endif
 128 SA_CFLAGS = $(SA_CFLAGS) $(SA_EXTRA_CFLAGS)
 129 
 130 SASRCFILES = $(AGENT_DIR)/src/os/win32/windbg/sawindbg.cpp \
 131                 $(AGENT_DIR)/src/share/native/sadis.c
 132                             
 133 SA_LFLAGS = $(SA_LD_FLAGS) -nologo -subsystem:console -machine:$(MACHINE)
 134 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
 135 SA_LFLAGS = $(SA_LFLAGS) -map -debug
 136 !endif
 137 !if "$(BUILDARCH)" == "i486"
 138 SA_LFLAGS = /SAFESEH $(SA_LFLAGS)
 139 !endif
 140 
 141 SA_CFLAGS = $(SA_CFLAGS) $(MP_FLAG)
 142 




  84         $(QUIETLY) cp $(AGENT_SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(SA_CLASSDIR)/sun/jvm/hotspot/ui/resources
  85         $(QUIETLY) cp -r $(AGENT_SRC_DIR)/images/* $(SA_CLASSDIR)
  86         $(RUN_JAR) cf $@ -C $(SA_CLASSDIR) .
  87         $(RUN_JAR) uf $@ -C $(AGENT_SRC_DIR) META-INF/services/com.sun.jdi.connect.Connector
  88         $(RUN_JAVAH) -classpath $(SA_CLASSDIR) -jni sun.jvm.hotspot.debugger.windbg.WindbgDebuggerLocal
  89         $(RUN_JAVAH) -classpath $(SA_CLASSDIR) -jni sun.jvm.hotspot.debugger.x86.X86ThreadContext 
  90         $(RUN_JAVAH) -classpath $(SA_CLASSDIR) -jni sun.jvm.hotspot.debugger.amd64.AMD64ThreadContext 
  91         $(RUN_JAVAH) -classpath $(SA_CLASSDIR) -jni sun.jvm.hotspot.asm.Disassembler
  92 
  93 
  94 
  95 # This second part is used to build sawindbg.dll
  96 # We currently build it the same way for product, debug, and fastdebug.
  97 
  98 SAWINDBG=sawindbg.dll
  99 
 100 checkAndBuildSA:: $(SAWINDBG)
 101 
 102 !if "$(BUILD_FLAVOR)" == "debug"
 103 SA_EXTRA_CFLAGS = -Od -D "_DEBUG"
 104 !if "$(BUILDARCH)" == "i486"
 105 SA_EXTRA_CFLAGS = $(SA_EXTRA_CFLAGS) -RTC1
 106 !endif
 107 !elseif "$(BUILD_FLAVOR)" == "fastdebug"
 108 SA_EXTRA_CFLAGS = -O2 -D "_DEBUG"
 109 !else
 110 SA_EXTRA_CFLAGS = -O2
 111 !endif
 112 
 113 !if "$(BUILDARCH)" == "ia64"
 114 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 $(GX_OPTION) -D "WIN32" -D "WIN64" -D "_WINDOWS"  -D "_CONSOLE" -D "_MBCS" -YX -FD -c
 115 !elseif "$(BUILDARCH)" == "amd64"
 116 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 $(GX_OPTION) -D "WIN32" -D "WIN64" -D "_WINDOWS" -D "_CONSOLE" -D "_MBCS" -YX -FD -c
 117 !if "$(COMPILER_NAME)" == "VS2005"
 118 # On amd64, VS2005 compiler requires bufferoverflowU.lib on the link command line, 
 119 # otherwise we get missing __security_check_cookie externals at link time. 
 120 SA_LD_FLAGS = bufferoverflowU.lib
 121 !endif
 122 !else
 123 SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 -Gm $(GX_OPTION) -D "WIN32" -D "_WINDOWS" -D "_CONSOLE" -D "_MBCS" -YX -FD -c
 124 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
 125 # -ZI is incompatible with -O2 used for release/fastdebug builds.
 126 # Using -Zi instead.
 127 SA_CFLAGS = $(SA_CFLAGS) -Zi
 128 !endif
 129 !endif
 130 !if "$(MT)" != ""
 131 SA_LD_FLAGS = -manifest $(SA_LD_FLAGS)
 132 !endif
 133 SA_CFLAGS = $(SA_CFLAGS) $(SA_EXTRA_CFLAGS)
 134 
 135 SASRCFILES = $(AGENT_DIR)/src/os/win32/windbg/sawindbg.cpp \
 136                 $(AGENT_DIR)/src/share/native/sadis.c
 137                             
 138 SA_LFLAGS = $(SA_LD_FLAGS) -nologo -subsystem:console -machine:$(MACHINE)
 139 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
 140 SA_LFLAGS = $(SA_LFLAGS) -map -debug
 141 !endif
 142 !if "$(BUILDARCH)" == "i486"
 143 SA_LFLAGS = /SAFESEH $(SA_LFLAGS)
 144 !endif
 145 
 146 SA_CFLAGS = $(SA_CFLAGS) $(MP_FLAG)
 147 


< prev index next >