hotspot/make/Makefile
changeset 360 21d113ecbf6a
parent 1 489c9b5090e2
child 670 ddf3e9583f2f
equal deleted inserted replaced
357:f4edb0d9f109 360:21d113ecbf6a
    82 
    82 
    83 # Typical C1/C2 targets made available with this Makefile
    83 # Typical C1/C2 targets made available with this Makefile
    84 C1_VM_TARGETS=product1 fastdebug1 optimized1 jvmg1
    84 C1_VM_TARGETS=product1 fastdebug1 optimized1 jvmg1
    85 C2_VM_TARGETS=product  fastdebug  optimized  jvmg
    85 C2_VM_TARGETS=product  fastdebug  optimized  jvmg
    86 KERNEL_VM_TARGETS=productkernel fastdebugkernel optimizedkernel jvmgkernel
    86 KERNEL_VM_TARGETS=productkernel fastdebugkernel optimizedkernel jvmgkernel
       
    87 
       
    88 # JDK directory list
       
    89 JDK_DIRS=bin include jre lib demo
    87 
    90 
    88 all:           all_product all_fastdebug
    91 all:           all_product all_fastdebug
    89 all_product:   product product1 productkernel docs export_product
    92 all_product:   product product1 productkernel docs export_product
    90 all_fastdebug: fastdebug fastdebug1 fastdebugkernel docs export_fastdebug
    93 all_fastdebug: fastdebug fastdebug1 fastdebugkernel docs export_fastdebug
    91 all_debug:     jvmg jvmg1 jvmgkernel docs export_debug
    94 all_debug:     jvmg jvmg1 jvmgkernel docs export_debug
   339 
   342 
   340 copy_product_jdk:
   343 copy_product_jdk:
   341 	$(RM) -r $(JDK_IMAGE_DIR)
   344 	$(RM) -r $(JDK_IMAGE_DIR)
   342 	$(MKDIR) -p $(JDK_IMAGE_DIR)
   345 	$(MKDIR) -p $(JDK_IMAGE_DIR)
   343 	($(CD) $(JDK_IMPORT_PATH) && \
   346 	($(CD) $(JDK_IMPORT_PATH) && \
   344 	 $(TAR) -cf - bin include jre lib) | \
   347 	 $(TAR) -cf - $(JDK_DIRS)) | \
   345 	 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -)
   348 	 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -)
   346 
   349 
   347 copy_fastdebug_jdk:
   350 copy_fastdebug_jdk:
   348 	$(RM) -r $(JDK_IMAGE_DIR)/fastdebug
   351 	$(RM) -r $(JDK_IMAGE_DIR)/fastdebug
   349 	$(MKDIR) -p $(JDK_IMAGE_DIR)/fastdebug
   352 	$(MKDIR) -p $(JDK_IMAGE_DIR)/fastdebug
   350 	if [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \
   353 	if [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \
   351 	  ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \
   354 	  ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \
   352 	   $(TAR) -cf - bin include jre lib) | \
   355 	   $(TAR) -cf - $(JDK_DIRS)) | \
   353 	   ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \
   356 	   ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \
   354 	else \
   357 	else \
   355 	  ($(CD) $(JDK_IMPORT_PATH) && \
   358 	  ($(CD) $(JDK_IMPORT_PATH) && \
   356 	   $(TAR) -cf - bin include jre lib) | \
   359 	   $(TAR) -cf - $(JDK_DIRS)) | \
   357 	   ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \
   360 	   ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \
   358 	fi
   361 	fi
   359 
   362 
   360 copy_debug_jdk:
   363 copy_debug_jdk:
   361 	$(RM) -r $(JDK_IMAGE_DIR)/debug
   364 	$(RM) -r $(JDK_IMAGE_DIR)/debug
   362 	$(MKDIR) -p $(JDK_IMAGE_DIR)/debug
   365 	$(MKDIR) -p $(JDK_IMAGE_DIR)/debug
   363 	if [ -d $(JDK_IMPORT_PATH)/debug ] ; then \
   366 	if [ -d $(JDK_IMPORT_PATH)/debug ] ; then \
   364 	  ($(CD) $(JDK_IMPORT_PATH)/debug && \
   367 	  ($(CD) $(JDK_IMPORT_PATH)/debug && \
   365 	   $(TAR) -cf - bin include jre lib) | \
   368 	   $(TAR) -cf - $(JDK_DIRS)) | \
   366 	   ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
   369 	   ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
   367 	elif [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \
   370 	elif [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \
   368 	  ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \
   371 	  ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \
   369 	   $(TAR) -cf - bin include jre lib) | \
   372 	   $(TAR) -cf - $(JDK_DIRS)) | \
   370 	   ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
   373 	   ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
   371 	else \
   374 	else \
   372 	  ($(CD) $(JDK_IMPORT_PATH) && \
   375 	  ($(CD) $(JDK_IMPORT_PATH) && \
   373 	   $(TAR) -cf - bin include jre lib) | \
   376 	   $(TAR) -cf - $(JDK_DIRS)) | \
   374 	   ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
   377 	   ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
   375 	fi
   378 	fi
   376 
   379 
   377 #
   380 #
   378 # Check target
   381 # Check target