42 ifeq ($(COMPILE_WITH_DEBUG_SYMBOLS), true) |
42 ifeq ($(COMPILE_WITH_DEBUG_SYMBOLS), true) |
43 LIBMANAGEMENT_OPTIMIZATION := LOW |
43 LIBMANAGEMENT_OPTIMIZATION := LOW |
44 endif |
44 endif |
45 endif |
45 endif |
46 |
46 |
47 $(eval $(call SetupNativeCompilation, BUILD_LIBMANAGEMENT, \ |
47 $(eval $(call SetupJdkLibrary, BUILD_LIBMANAGEMENT, \ |
48 NAME := management, \ |
48 NAME := management, \ |
49 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
50 SRC := $(LIBMANAGEMENT_SRC), \ |
49 SRC := $(LIBMANAGEMENT_SRC), \ |
51 OPTIMIZATION := $(LIBMANAGEMENT_OPTIMIZATION), \ |
50 OPTIMIZATION := $(LIBMANAGEMENT_OPTIMIZATION), \ |
52 CFLAGS := $(CFLAGS_JDKLIB) $(LIBMANAGEMENT_CFLAGS), \ |
51 CFLAGS := $(CFLAGS_JDKLIB) $(LIBMANAGEMENT_CFLAGS), \ |
53 MAPFILE := $(TOPDIR)/make/mapfiles/libmanagement/mapfile-vers, \ |
52 MAPFILE := $(TOPDIR)/make/mapfiles/libmanagement/mapfile-vers, \ |
54 LDFLAGS := $(LDFLAGS_JDKLIB) \ |
53 LDFLAGS := $(LDFLAGS_JDKLIB) \ |
55 $(call SET_SHARED_LIBRARY_ORIGIN), \ |
54 $(call SET_SHARED_LIBRARY_ORIGIN), \ |
56 LIBS := $(JDKLIB_LIBS), \ |
55 LIBS := $(JDKLIB_LIBS), \ |
57 LIBS_solaris := -lkstat, \ |
56 LIBS_solaris := -lkstat, \ |
58 LIBS_aix := -lperfstat,\ |
57 LIBS_aix := -lperfstat,\ |
59 LIBS_windows := jvm.lib psapi.lib $(WIN_JAVA_LIB) advapi32.lib, \ |
58 LIBS_windows := jvm.lib psapi.lib $(WIN_JAVA_LIB) advapi32.lib, \ |
60 VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
|
61 RC_FLAGS := $(RC_FLAGS) \ |
|
62 -D "JDK_FNAME=management.dll" \ |
|
63 -D "JDK_INTERNAL_NAME=management" \ |
|
64 -D "JDK_FTYPE=0x2L", \ |
|
65 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libmanagement, \ |
|
66 )) |
59 )) |
67 |
60 |
68 $(BUILD_LIBMANAGEMENT): $(call FindLib, java.base, java) |
61 $(BUILD_LIBMANAGEMENT): $(call FindLib, java.base, java) |
69 |
62 |
70 TARGETS += $(BUILD_LIBMANAGEMENT) |
63 TARGETS += $(BUILD_LIBMANAGEMENT) |