makefiles/lib/ServiceabilityLibraries.gmk

Print this page
rev 8822 : 8024854: PPC64: Basic changes and files to build the class library on AIX
Reviewed-by: alanb, prr, sla, chegar, michaelm, mullan, art
Contributed-by: luchsh@linux.vnet.ibm.com, spoole@linux.vnet.ibm.com, thomas.stuefe@sap.com


 327     VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
 328     RC_FLAGS := $(RC_FLAGS) \
 329         -D "JDK_FNAME=management.dll" \
 330         -D "JDK_INTERNAL_NAME=management" \
 331         -D "JDK_FTYPE=0x2L", \
 332     OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libmanagement, \
 333     DEBUG_SYMBOLS := true))
 334 
 335 $(BUILD_LIBMANAGEMENT): $(BUILD_LIBJAVA)
 336 
 337 BUILD_LIBRARIES += $(BUILD_LIBMANAGEMENT)
 338 
 339 ##########################################################################################
 340 
 341 BUILD_LIBHPROF_SRC := $(JDK_TOPDIR)/src/share/demo/jvmti/hprof $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/demo/jvmti/hprof
 342 BUILD_LIBHPROF_CFLAGS := -I$(JDK_TOPDIR)/src/share/demo/jvmti/hprof \
 343     -I$(JDK_TOPDIR)/src/share/npt \
 344     -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt \
 345     -I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo
 346 





 347 BUILD_LIBHPROF_LDFLAGS :=
 348 
 349 LIBHPROF_OPTIMIZATION := HIGHEST
 350 ifneq ($(findstring $(OPENJDK_TARGET_OS), solaris linux), )
 351   ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
 352     LIBHPROF_OPTIMIZATION := LOW
 353   endif
 354 endif
 355 
 356 $(eval $(call SetupNativeCompilation,BUILD_LIBHPROF, \
 357     LIBRARY := hprof, \
 358     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 359     SRC := $(BUILD_LIBHPROF_SRC), \
 360     LANG := C, \
 361     OPTIMIZATION := $(LIBHPROF_OPTIMIZATION), \
 362     CFLAGS := $(CFLAGS_JDKLIB) \
 363         $(BUILD_LIBHPROF_CFLAGS), \
 364     CFLAGS_debug := -DHPROF_LOGGING, \
 365     MAPFILE := $(JDK_TOPDIR)/makefiles/mapfiles/libhprof/mapfile-vers, \
 366     LDFLAGS := $(LDFLAGS_JDKLIB) \




 327     VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
 328     RC_FLAGS := $(RC_FLAGS) \
 329         -D "JDK_FNAME=management.dll" \
 330         -D "JDK_INTERNAL_NAME=management" \
 331         -D "JDK_FTYPE=0x2L", \
 332     OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libmanagement, \
 333     DEBUG_SYMBOLS := true))
 334 
 335 $(BUILD_LIBMANAGEMENT): $(BUILD_LIBJAVA)
 336 
 337 BUILD_LIBRARIES += $(BUILD_LIBMANAGEMENT)
 338 
 339 ##########################################################################################
 340 
 341 BUILD_LIBHPROF_SRC := $(JDK_TOPDIR)/src/share/demo/jvmti/hprof $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/demo/jvmti/hprof
 342 BUILD_LIBHPROF_CFLAGS := -I$(JDK_TOPDIR)/src/share/demo/jvmti/hprof \
 343     -I$(JDK_TOPDIR)/src/share/npt \
 344     -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt \
 345     -I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo
 346 
 347 ifeq ($(OPENJDK_TARGET_OS), aix)
 348   BUILD_LIBHPROF_SRC += $(JDK_TOPDIR)/src/aix/porting
 349   BUILD_LIBHPROF_CFLAGS += -I$(JDK_TOPDIR)/src/aix/porting
 350 endif
 351 
 352 BUILD_LIBHPROF_LDFLAGS :=
 353 
 354 LIBHPROF_OPTIMIZATION := HIGHEST
 355 ifneq ($(findstring $(OPENJDK_TARGET_OS), solaris linux), )
 356   ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
 357     LIBHPROF_OPTIMIZATION := LOW
 358   endif
 359 endif
 360 
 361 $(eval $(call SetupNativeCompilation,BUILD_LIBHPROF, \
 362     LIBRARY := hprof, \
 363     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 364     SRC := $(BUILD_LIBHPROF_SRC), \
 365     LANG := C, \
 366     OPTIMIZATION := $(LIBHPROF_OPTIMIZATION), \
 367     CFLAGS := $(CFLAGS_JDKLIB) \
 368         $(BUILD_LIBHPROF_CFLAGS), \
 369     CFLAGS_debug := -DHPROF_LOGGING, \
 370     MAPFILE := $(JDK_TOPDIR)/makefiles/mapfiles/libhprof/mapfile-vers, \
 371     LDFLAGS := $(LDFLAGS_JDKLIB) \