< prev index next >

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

Print this page


   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


  81   COMMON_CFLAGS := -D_WINDOWS -D_DEBUG -D_CONSOLE -D_MBCS -EHsc -FD
  82   SA_CFLAGS := $(subst -DWIN32_LEAN_AND_MEAN,, $(CFLAGS_JDKLIB)) \
  83       $(COMMON_CFLAGS)
  84   SA_CXXFLAGS := $(subst -DWIN32_LEAN_AND_MEAN,, $(CXXFLAGS_JDKLIB)) \
  85       $(COMMON_CFLAGS)
  86   SA_LDFLAGS := $(LDFLAGS_JDKLIB) \
  87       $(SA_MACHINE_FLAG_windows) -manifest \
  88       -subsystem:console -map
  89   SA_LIBS := dbgeng.lib
  90   ifeq ($(OPENJDK_TARGET_CPU), x86_64)
  91     SA_CXXFLAGS += -DWIN64
  92   else
  93     SA_CXXFLAGS += -RTC1
  94     SA_LDFLAGS += -SAFESEH
  95   endif
  96 endif
  97 
  98 ################################################################################
  99 
 100 $(eval $(call SetupNativeCompilation, BUILD_LIBSA, \

 101     TOOLCHAIN := $(SA_TOOLCHAIN), \
 102     OPTIMIZATION := NONE, \
 103     DISABLED_WARNINGS_microsoft := 4267, \
 104     DISABLED_WARNINGS_gcc := sign-compare, \
 105     DISABLED_WARNINGS_CXX_solstudio := truncwarn unknownpragma, \
 106     LIBRARY := $(SA_NAME), \
 107     OUTPUT_DIR := $(call FindLibDirForModule, $(MODULE)), \
 108     SRC := $(SA_SRC), \
 109     EXCLUDE_FILES := test.c saproc_audit.cpp $(SA_EXCLUDE_FILES), \
 110     CFLAGS := $(SA_INCLUDES) $(SA_CFLAGS) $(SA_CUSTOM_CFLAGS), \
 111     CXXFLAGS := $(SA_INCLUDES) $(SA_CXXFLAGS) $(SA_CUSTOM_CXXFLAGS), \
 112     LDFLAGS := $(SA_LDFLAGS) $(SA_CUSTOM_LDFLAGS), \
 113     LIBS := $(SA_LIBS), \
 114     MAPFILE := $(SA_MAPFILE), \
 115     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libsa, \
 116 ))
 117 
 118 TARGETS += $(BUILD_LIBSA)
 119 
 120 ################################################################################
   1 #
   2 # Copyright (c) 2015, 2018, 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


  81   COMMON_CFLAGS := -D_WINDOWS -D_DEBUG -D_CONSOLE -D_MBCS -EHsc -FD
  82   SA_CFLAGS := $(subst -DWIN32_LEAN_AND_MEAN,, $(CFLAGS_JDKLIB)) \
  83       $(COMMON_CFLAGS)
  84   SA_CXXFLAGS := $(subst -DWIN32_LEAN_AND_MEAN,, $(CXXFLAGS_JDKLIB)) \
  85       $(COMMON_CFLAGS)
  86   SA_LDFLAGS := $(LDFLAGS_JDKLIB) \
  87       $(SA_MACHINE_FLAG_windows) -manifest \
  88       -subsystem:console -map
  89   SA_LIBS := dbgeng.lib
  90   ifeq ($(OPENJDK_TARGET_CPU), x86_64)
  91     SA_CXXFLAGS += -DWIN64
  92   else
  93     SA_CXXFLAGS += -RTC1
  94     SA_LDFLAGS += -SAFESEH
  95   endif
  96 endif
  97 
  98 ################################################################################
  99 
 100 $(eval $(call SetupNativeCompilation, BUILD_LIBSA, \
 101     NAME := $(SA_NAME), \
 102     TOOLCHAIN := $(SA_TOOLCHAIN), \
 103     OPTIMIZATION := NONE, \
 104     DISABLED_WARNINGS_microsoft := 4267, \
 105     DISABLED_WARNINGS_gcc := sign-compare, \
 106     DISABLED_WARNINGS_CXX_solstudio := truncwarn unknownpragma, \

 107     OUTPUT_DIR := $(call FindLibDirForModule, $(MODULE)), \
 108     SRC := $(SA_SRC), \
 109     EXCLUDE_FILES := test.c saproc_audit.cpp $(SA_EXCLUDE_FILES), \
 110     CFLAGS := $(SA_INCLUDES) $(SA_CFLAGS) $(SA_CUSTOM_CFLAGS), \
 111     CXXFLAGS := $(SA_INCLUDES) $(SA_CXXFLAGS) $(SA_CUSTOM_CXXFLAGS), \
 112     LDFLAGS := $(SA_LDFLAGS) $(SA_CUSTOM_LDFLAGS), \
 113     LIBS := $(SA_LIBS), \
 114     MAPFILE := $(SA_MAPFILE), \
 115     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libsa, \
 116 ))
 117 
 118 TARGETS += $(BUILD_LIBSA)
 119 
 120 ################################################################################
< prev index next >