< prev index next >

hotspot/make/lib/Lib-jdk.hotspot.agent.gmk

Print this page


   1 #
   2 # Copyright (c) 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.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


  55   SA_LDFLAGS := $(LDFLAGS_JDKLIB) $(SA_MACHINE_FLAG_linux)
  56   SA_LIBS := -lthread_db $(LIBDL)
  57 
  58 else ifeq ($(OPENJDK_TARGET_OS), solaris)
  59   SA_TOOLCHAIN := TOOLCHAIN_LINK_CXX
  60   COMMON_CFLAGS := -DSOLARIS_11_B159_OR_LATER
  61   SA_CFLAGS := $(CFLAGS_JDKLIB) $(COMMON_CFLAGS)
  62   SA_CXXFLAGS := $(CXXFLAGS_JDKLIB) $(COMMON_CFLAGS)
  63   SA_LDFLAGS := $(subst -Wl$(COMMA)-z$(COMMA)defs,, $(LDFLAGS_JDKLIB)) \
  64       -mt $(LDFLAGS_CXX_JDK)
  65   SA_LIBS := -ldl -ldemangle -lthread -lc
  66 
  67 else ifeq ($(OPENJDK_TARGET_OS), macosx)
  68   SA_EXCLUDE_FILES := BsdDebuggerLocal.c ps_proc.c salibelf.c StubDebuggerLocal.c
  69   SA_CFLAGS := $(CFLAGS_JDKLIB) \
  70       -Damd64 -D_GNU_SOURCE -mno-omit-leaf-frame-pointer \
  71       -mstack-alignment=16 -fPIC
  72   SA_LDFLAGS := $(LDFLAGS_JDKLIB)
  73   SA_LIBS := -framework Foundation -framework JavaNativeFoundation \
  74       -framework Security -framework CoreFoundation





  75 
  76 else ifeq ($(OPENJDK_TARGET_OS), windows)
  77   SA_NAME := sawindbg
  78   COMMON_CFLAGS := -D_WINDOWS -D_DEBUG -D_CONSOLE -D_MBCS -EHsc -FD
  79   SA_CFLAGS := $(subst -DWIN32_LEAN_AND_MEAN,, $(CFLAGS_JDKLIB)) \
  80       $(COMMON_CFLAGS)
  81   SA_CXXFLAGS := $(subst -DWIN32_LEAN_AND_MEAN,, $(CXXFLAGS_JDKLIB)) \
  82       $(COMMON_CFLAGS)
  83   SA_LDFLAGS := $(LDFLAGS_JDKLIB) \
  84       $(SA_MACHINE_FLAG_windows) -manifest \
  85       -subsystem:console -map
  86   SA_LIBS := dbgeng.lib
  87   ifeq ($(OPENJDK_TARGET_CPU), x86_64)
  88     SA_CXXFLAGS += -DWIN64
  89   else
  90     SA_CXXFLAGS += -RTC1 -ZI
  91     SA_LDFLAGS += -SAFESEH
  92   endif
  93 endif
  94 


   1 #
   2 # Copyright (c) 2015, 2016, 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.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


  55   SA_LDFLAGS := $(LDFLAGS_JDKLIB) $(SA_MACHINE_FLAG_linux)
  56   SA_LIBS := -lthread_db $(LIBDL)
  57 
  58 else ifeq ($(OPENJDK_TARGET_OS), solaris)
  59   SA_TOOLCHAIN := TOOLCHAIN_LINK_CXX
  60   COMMON_CFLAGS := -DSOLARIS_11_B159_OR_LATER
  61   SA_CFLAGS := $(CFLAGS_JDKLIB) $(COMMON_CFLAGS)
  62   SA_CXXFLAGS := $(CXXFLAGS_JDKLIB) $(COMMON_CFLAGS)
  63   SA_LDFLAGS := $(subst -Wl$(COMMA)-z$(COMMA)defs,, $(LDFLAGS_JDKLIB)) \
  64       -mt $(LDFLAGS_CXX_JDK)
  65   SA_LIBS := -ldl -ldemangle -lthread -lc
  66 
  67 else ifeq ($(OPENJDK_TARGET_OS), macosx)
  68   SA_EXCLUDE_FILES := BsdDebuggerLocal.c ps_proc.c salibelf.c StubDebuggerLocal.c
  69   SA_CFLAGS := $(CFLAGS_JDKLIB) \
  70       -Damd64 -D_GNU_SOURCE -mno-omit-leaf-frame-pointer \
  71       -mstack-alignment=16 -fPIC
  72   SA_LDFLAGS := $(LDFLAGS_JDKLIB)
  73   SA_LIBS := -framework Foundation -framework JavaNativeFoundation \
  74       -framework Security -framework CoreFoundation
  75 
  76 else ifeq ($(OPENJDK_TARGET_OS), bsd)
  77   SA_EXCLUDE_FILES := MacosxDebuggerLocal.m StubDebuggerLocal.c
  78   SA_CFLAGS := $(CFLAGS_JDKLIB) -D$(OPENJDK_TARGET_CPU_LEGACY_LIB)
  79   SA_LDFLAGS := $(LDFLAGS_JDKLIB)
  80 
  81 else ifeq ($(OPENJDK_TARGET_OS), windows)
  82   SA_NAME := sawindbg
  83   COMMON_CFLAGS := -D_WINDOWS -D_DEBUG -D_CONSOLE -D_MBCS -EHsc -FD
  84   SA_CFLAGS := $(subst -DWIN32_LEAN_AND_MEAN,, $(CFLAGS_JDKLIB)) \
  85       $(COMMON_CFLAGS)
  86   SA_CXXFLAGS := $(subst -DWIN32_LEAN_AND_MEAN,, $(CXXFLAGS_JDKLIB)) \
  87       $(COMMON_CFLAGS)
  88   SA_LDFLAGS := $(LDFLAGS_JDKLIB) \
  89       $(SA_MACHINE_FLAG_windows) -manifest \
  90       -subsystem:console -map
  91   SA_LIBS := dbgeng.lib
  92   ifeq ($(OPENJDK_TARGET_CPU), x86_64)
  93     SA_CXXFLAGS += -DWIN64
  94   else
  95     SA_CXXFLAGS += -RTC1 -ZI
  96     SA_LDFLAGS += -SAFESEH
  97   endif
  98 endif
  99 


< prev index next >