< prev index next >

make/Images.gmk

Print this page




  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
  23 # questions.
  24 #
  25 
  26 default: all
  27 
  28 include $(SPEC)
  29 include MakeBase.gmk
  30 include Modules.gmk

  31 
  32 TOOL_TARGETS :=
  33 JDK_TARGETS :=
  34 JRE_TARGETS :=
  35 
  36 # Hook to include the corresponding custom file, if present.
  37 $(eval $(call IncludeCustomExtension, Images-pre.gmk))
  38 
  39 ############################################################################
  40 
  41 # All modules for the current target platform.
  42 ALL_MODULES := $(call FindAllModules)
  43 
  44 $(eval $(call ReadImportMetaData))
  45 
  46 JRE_MODULES += $(filter $(ALL_MODULES), $(BOOT_MODULES) \
  47     $(PLATFORM_MODULES) $(JRE_TOOL_MODULES))
  48 JDK_MODULES += $(ALL_MODULES)
  49 
  50 JRE_MODULES_LIST := $(call CommaList, $(JRE_MODULES))


 285 ifeq ($(GCOV_ENABLED), true)
 286 
 287   GCOV_FIND_EXPR := -type f -name "*.gcno"
 288 
 289   $(eval $(call SetupCopyFiles,COPY_HOTSPOT_GCOV_GCNO, \
 290       SRC := $(OUTPUTDIR), \
 291       DEST := $(SYMBOLS_IMAGE_DIR)/gcov, \
 292       FILES := $(shell $(FIND) $(HOTSPOT_OUTPUTDIR) $(GCOV_FIND_EXPR))))
 293 
 294   SYMBOLS_TARGETS += $(COPY_HOTSPOT_GCOV_GCNO)
 295 
 296   $(eval $(call SetupCopyFiles,COPY_JDK_GCOV_GCNO, \
 297       SRC := $(OUTPUTDIR), \
 298       DEST := $(SYMBOLS_IMAGE_DIR)/gcov, \
 299       FILES := $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/native $(GCOV_FIND_EXPR))))
 300 
 301   SYMBOLS_TARGETS += $(COPY_JDK_GCOV_GCNO)
 302 
 303 endif
 304 






 305 ################################################################################
 306 # Debug symbols
 307 # Since debug symbols are not included in the jmod files, they need to be copied
 308 # in manually after generating the images.
 309 
 310 ALL_JDK_MODULES := $(JDK_MODULES)
 311 ALL_JRE_MODULES := $(sort $(JRE_MODULES), $(foreach m, $(JRE_MODULES), \
 312     $(call FindTransitiveDepsForModule, $m)))
 313 
 314 ifeq ($(OPENJDK_TARGET_OS), windows)
 315   LIBS_TARGET_SUBDIR := bin
 316 else
 317   LIBS_TARGET_SUBDIR := lib
 318 endif
 319 
 320 # Param 1 - dir to find debuginfo files in
 321 FindDebuginfoFiles = \
 322     $(wildcard $(addprefix $1/*, $(DEBUGINFO_SUFFIXES)) \
 323         $(addprefix $1/*/*, $(DEBUGINFO_SUFFIXES)) \
 324         $(addprefix $1/*/*/*, $(DEBUGINFO_SUFFIXES)))


 349       )) \
 350       $(eval $1_TARGETS += $$(COPY_$1_LIBS_DEBUGINFO_$m)) \
 351     )
 352 
 353 # No space before argument to avoid having to put $(strip ) everywhere in
 354 # implementation above.
 355 $(call SetupCopyDebuginfo,JDK)
 356 $(call SetupCopyDebuginfo,JRE)
 357 
 358 ################################################################################
 359 
 360 # Include custom post hook here to make it possible to augment the target lists
 361 # before actual target prerequisites are declared.
 362 $(eval $(call IncludeCustomExtension, Images-post.gmk))
 363 
 364 ################################################################################
 365 
 366 $(JRE_TARGETS): $(TOOL_JRE_TARGETS)
 367 $(JDK_TARGETS): $(TOOL_JDK_TARGETS)
 368 
 369 jdk: $(TOOL_JDK_TARGETS) $(JDK_TARGETS)
 370 jre: $(TOOL_JRE_TARGETS) $(JRE_TARGETS)
 371 symbols: $(SYMBOLS_TARGETS)
 372 
 373 all: jdk jre symbols
 374 
 375 .PHONY: default all jdk jre symbols


  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
  23 # questions.
  24 #
  25 
  26 default: all
  27 
  28 include $(SPEC)
  29 include MakeBase.gmk
  30 include Modules.gmk
  31 include Coverage.gmk
  32 
  33 TOOL_TARGETS :=
  34 JDK_TARGETS :=
  35 JRE_TARGETS :=
  36 
  37 # Hook to include the corresponding custom file, if present.
  38 $(eval $(call IncludeCustomExtension, Images-pre.gmk))
  39 
  40 ############################################################################
  41 
  42 # All modules for the current target platform.
  43 ALL_MODULES := $(call FindAllModules)
  44 
  45 $(eval $(call ReadImportMetaData))
  46 
  47 JRE_MODULES += $(filter $(ALL_MODULES), $(BOOT_MODULES) \
  48     $(PLATFORM_MODULES) $(JRE_TOOL_MODULES))
  49 JDK_MODULES += $(ALL_MODULES)
  50 
  51 JRE_MODULES_LIST := $(call CommaList, $(JRE_MODULES))


 286 ifeq ($(GCOV_ENABLED), true)
 287 
 288   GCOV_FIND_EXPR := -type f -name "*.gcno"
 289 
 290   $(eval $(call SetupCopyFiles,COPY_HOTSPOT_GCOV_GCNO, \
 291       SRC := $(OUTPUTDIR), \
 292       DEST := $(SYMBOLS_IMAGE_DIR)/gcov, \
 293       FILES := $(shell $(FIND) $(HOTSPOT_OUTPUTDIR) $(GCOV_FIND_EXPR))))
 294 
 295   SYMBOLS_TARGETS += $(COPY_HOTSPOT_GCOV_GCNO)
 296 
 297   $(eval $(call SetupCopyFiles,COPY_JDK_GCOV_GCNO, \
 298       SRC := $(OUTPUTDIR), \
 299       DEST := $(SYMBOLS_IMAGE_DIR)/gcov, \
 300       FILES := $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/native $(GCOV_FIND_EXPR))))
 301 
 302   SYMBOLS_TARGETS += $(COPY_JDK_GCOV_GCNO)
 303 
 304 endif
 305 
 306 JCOV_TARGETS =
 307 
 308 ifeq ($(JCOV_ENABLED), true)
 309   JCOV_TARGETS += $(JDK_IMAGE_DIR)/../template.xml
 310 endif
 311 
 312 ################################################################################
 313 # Debug symbols
 314 # Since debug symbols are not included in the jmod files, they need to be copied
 315 # in manually after generating the images.
 316 
 317 ALL_JDK_MODULES := $(JDK_MODULES)
 318 ALL_JRE_MODULES := $(sort $(JRE_MODULES), $(foreach m, $(JRE_MODULES), \
 319     $(call FindTransitiveDepsForModule, $m)))
 320 
 321 ifeq ($(OPENJDK_TARGET_OS), windows)
 322   LIBS_TARGET_SUBDIR := bin
 323 else
 324   LIBS_TARGET_SUBDIR := lib
 325 endif
 326 
 327 # Param 1 - dir to find debuginfo files in
 328 FindDebuginfoFiles = \
 329     $(wildcard $(addprefix $1/*, $(DEBUGINFO_SUFFIXES)) \
 330         $(addprefix $1/*/*, $(DEBUGINFO_SUFFIXES)) \
 331         $(addprefix $1/*/*/*, $(DEBUGINFO_SUFFIXES)))


 356       )) \
 357       $(eval $1_TARGETS += $$(COPY_$1_LIBS_DEBUGINFO_$m)) \
 358     )
 359 
 360 # No space before argument to avoid having to put $(strip ) everywhere in
 361 # implementation above.
 362 $(call SetupCopyDebuginfo,JDK)
 363 $(call SetupCopyDebuginfo,JRE)
 364 
 365 ################################################################################
 366 
 367 # Include custom post hook here to make it possible to augment the target lists
 368 # before actual target prerequisites are declared.
 369 $(eval $(call IncludeCustomExtension, Images-post.gmk))
 370 
 371 ################################################################################
 372 
 373 $(JRE_TARGETS): $(TOOL_JRE_TARGETS)
 374 $(JDK_TARGETS): $(TOOL_JDK_TARGETS)
 375 
 376 jdk: $(TOOL_JDK_TARGETS) $(JDK_TARGETS) $(JCOV_TARGETS)
 377 jre: $(TOOL_JRE_TARGETS) $(JRE_TARGETS)
 378 symbols: $(SYMBOLS_TARGETS)
 379 
 380 all: jdk jre symbols
 381 
 382 .PHONY: default all jdk jre symbols
< prev index next >