jdk/make/CompileDemos.gmk
changeset 27799 097b1d6f6894
parent 27565 729f9700483a
parent 27736 8c9bd4be4a86
child 29374 f031a666744a
equal deleted inserted replaced
27581:9fffb959eb41 27799:097b1d6f6894
    42 # READMEs and other files.
    42 # READMEs and other files.
    43 
    43 
    44 DEMO_SHARE_SRC := $(JDK_TOPDIR)/src/demo/share
    44 DEMO_SHARE_SRC := $(JDK_TOPDIR)/src/demo/share
    45 DEMO_CLOSED_SHARE_SRC := $(JDK_TOPDIR)/src/closed/demo/share
    45 DEMO_CLOSED_SHARE_SRC := $(JDK_TOPDIR)/src/closed/demo/share
    46 DEMO_SOLARIS_SRC := $(JDK_TOPDIR)/src/demo/solaris
    46 DEMO_SOLARIS_SRC := $(JDK_TOPDIR)/src/demo/solaris
    47 DEMO_OS_API_SRC := $(JDK_TOPDIR)/src/demo/$(OPENJDK_TARGET_OS_API_DIR)
    47 DEMO_OS_TYPE_SRC := $(JDK_TOPDIR)/src/demo/$(OPENJDK_TARGET_OS_TYPE)
    48 VERSION_INFO_RESOURCE := $(JDK_TOPDIR)/src/java.base/windows/native/common/version.rc
    48 VERSION_INFO_RESOURCE := $(JDK_TOPDIR)/src/java.base/windows/native/common/version.rc
    49 
    49 
    50 ##################################################################################################
    50 ##################################################################################################
    51 
    51 
    52 define SetupAppletDemo
    52 define SetupAppletDemo
   212 define SetupJVMTIDemo
   212 define SetupJVMTIDemo
   213   # Param 1 = Name of the demo
   213   # Param 1 = Name of the demo
   214   # Param 2 = add these directories to the includes, default is agent_util
   214   # Param 2 = add these directories to the includes, default is agent_util
   215   # Param 3 = extra CFLAGS
   215   # Param 3 = extra CFLAGS
   216   # Param 4 = C or C++ (defaults to C)
   216   # Param 4 = C or C++ (defaults to C)
   217   # Param 5 = libs for posix
   217   # Param 5 = libs for unix
   218   # Param 6 = libs for windows
   218   # Param 6 = libs for windows
   219   # Param 7 = libs for solaris
   219   # Param 7 = libs for solaris
   220   # Param 8 = libs for linux
   220   # Param 8 = libs for linux
   221   # Param 9 = extra directories with required sources
   221   # Param 9 = extra directories with required sources
   222   BUILD_DEMO_JVMTI_$1_EXTRA_SRC := \
   222   BUILD_DEMO_JVMTI_$1_EXTRA_SRC := \
   223       $$(wildcard $(DEMO_OS_API_SRC)/jvmti/$1) \
   223       $$(wildcard $(DEMO_OS_TYPE_SRC)/jvmti/$1) \
   224       $$(wildcard $$(addprefix $(DEMO_SHARE_SRC)/jvmti/, $2)) \
   224       $$(wildcard $$(addprefix $(DEMO_SHARE_SRC)/jvmti/, $2)) \
   225       $9
   225       $9
   226   BUILD_DEMO_JVMTI_$1_EXTRA_SRC_EXCLUDE := \
   226   BUILD_DEMO_JVMTI_$1_EXTRA_SRC_EXCLUDE := \
   227       $$(wildcard $$(patsubst %, $(DEMO_SHARE_SRC)/jvmti/%/README.txt, $2)) \
   227       $$(wildcard $$(patsubst %, $(DEMO_SHARE_SRC)/jvmti/%/README.txt, $2)) \
   228       $$(wildcard $$(patsubst %, $(DEMO_SHARE_SRC)/jvmti/%/sample.makefile.txt, $2))
   228       $$(wildcard $$(patsubst %, $(DEMO_SHARE_SRC)/jvmti/%/sample.makefile.txt, $2))
   255       OPTIMIZATION := LOW, \
   255       OPTIMIZATION := LOW, \
   256       CXXFLAGS := $$($1_CXXFLAGS), \
   256       CXXFLAGS := $$($1_CXXFLAGS), \
   257       LDFLAGS := $(filter-out -incremental:no -opt:ref, $(LDFLAGS_JDKLIB)), \
   257       LDFLAGS := $(filter-out -incremental:no -opt:ref, $(LDFLAGS_JDKLIB)), \
   258       LDFLAGS_macosx := $(call SET_EXECUTABLE_ORIGIN), \
   258       LDFLAGS_macosx := $(call SET_EXECUTABLE_ORIGIN), \
   259       LDFLAGS_SUFFIX := $$($1_EXTRA_CXX), \
   259       LDFLAGS_SUFFIX := $$($1_EXTRA_CXX), \
   260       LDFLAGS_SUFFIX_posix := $5, \
   260       LDFLAGS_SUFFIX_unix := $5, \
   261       LDFLAGS_SUFFIX_windows := $6, \
   261       LDFLAGS_SUFFIX_windows := $6, \
   262       LDFLAGS_SUFFIX_solaris := $7 -lc, \
   262       LDFLAGS_SUFFIX_solaris := $7 -lc, \
   263       LDFLAGS_SUFFIX_linux := $8, \
   263       LDFLAGS_SUFFIX_linux := $8, \
   264       VERSIONINFO_RESOURCE := $(VERSION_INFO_RESOURCE), \
   264       VERSIONINFO_RESOURCE := $(VERSION_INFO_RESOURCE), \
   265       RC_FLAGS := $$(RC_FLAGS) \
   265       RC_FLAGS := $$(RC_FLAGS) \