< prev index next >

make/lib/Lib-jdk.management.gmk

Print this page




  42 ifeq ($(OPENJDK_TARGET_OS), windows)
  43   # In (at least) VS2013 and later, -DPSAPI_VERSION=1 is needed to generate
  44   # a binary that is compatible with windows versions older than 7/2008R2.
  45   # See MSDN documentation for GetProcessMemoryInfo for more information.
  46   LIBMANAGEMENT_EXT_CFLAGS += -DPSAPI_VERSION=1
  47 endif
  48 
  49 LIBMANAGEMENT_EXT_OPTIMIZATION := HIGH
  50 ifneq ($(findstring $(OPENJDK_TARGET_OS), solaris linux), )
  51   ifeq ($(COMPILE_WITH_DEBUG_SYMBOLS), true)
  52     LIBMANAGEMENT_EXT_OPTIMIZATION := LOW
  53   endif
  54 endif
  55 
  56 $(eval $(call SetupJdkLibrary, BUILD_LIBMANAGEMENT_EXT, \
  57     NAME := management_ext, \
  58     SRC := $(LIBMANAGEMENT_EXT_SRC), \
  59     LANG := C, \
  60     OPTIMIZATION := $(LIBMANAGEMENT_EXT_OPTIMIZATION), \
  61     CFLAGS := $(CFLAGS_JDKLIB) $(LIBMANAGEMENT_EXT_CFLAGS), \
  62     MAPFILE := $(TOPDIR)/make/mapfiles/libmanagement_ext/mapfile-vers, \
  63     LDFLAGS := $(LDFLAGS_JDKLIB) \
  64         $(call SET_SHARED_LIBRARY_ORIGIN), \
  65     LIBS := $(JDKLIB_LIBS), \
  66     LIBS_solaris := -lkstat, \
  67     LIBS_aix := -lperfstat,\
  68     LIBS_windows := jvm.lib psapi.lib $(WIN_JAVA_LIB) advapi32.lib, \
  69 ))
  70 
  71 $(BUILD_LIBMANAGEMENT_EXT): $(call FindLib, java.base, java)
  72 
  73 TARGETS += $(BUILD_LIBMANAGEMENT_EXT)
  74 
  75 ################################################################################
  76 
  77 # Include custom extension post hook
  78 $(eval $(call IncludeCustomExtension, lib/Lib-jdk.management-post.gmk))
  79 


  42 ifeq ($(OPENJDK_TARGET_OS), windows)
  43   # In (at least) VS2013 and later, -DPSAPI_VERSION=1 is needed to generate
  44   # a binary that is compatible with windows versions older than 7/2008R2.
  45   # See MSDN documentation for GetProcessMemoryInfo for more information.
  46   LIBMANAGEMENT_EXT_CFLAGS += -DPSAPI_VERSION=1
  47 endif
  48 
  49 LIBMANAGEMENT_EXT_OPTIMIZATION := HIGH
  50 ifneq ($(findstring $(OPENJDK_TARGET_OS), solaris linux), )
  51   ifeq ($(COMPILE_WITH_DEBUG_SYMBOLS), true)
  52     LIBMANAGEMENT_EXT_OPTIMIZATION := LOW
  53   endif
  54 endif
  55 
  56 $(eval $(call SetupJdkLibrary, BUILD_LIBMANAGEMENT_EXT, \
  57     NAME := management_ext, \
  58     SRC := $(LIBMANAGEMENT_EXT_SRC), \
  59     LANG := C, \
  60     OPTIMIZATION := $(LIBMANAGEMENT_EXT_OPTIMIZATION), \
  61     CFLAGS := $(CFLAGS_JDKLIB) $(LIBMANAGEMENT_EXT_CFLAGS), \

  62     LDFLAGS := $(LDFLAGS_JDKLIB) \
  63         $(call SET_SHARED_LIBRARY_ORIGIN), \
  64     LIBS := $(JDKLIB_LIBS), \
  65     LIBS_solaris := -lkstat, \
  66     LIBS_aix := -lperfstat,\
  67     LIBS_windows := jvm.lib psapi.lib $(WIN_JAVA_LIB) advapi32.lib, \
  68 ))
  69 
  70 $(BUILD_LIBMANAGEMENT_EXT): $(call FindLib, java.base, java)
  71 
  72 TARGETS += $(BUILD_LIBMANAGEMENT_EXT)
  73 
  74 ################################################################################
  75 
  76 # Include custom extension post hook
  77 $(eval $(call IncludeCustomExtension, lib/Lib-jdk.management-post.gmk))
  78 
< prev index next >