10 # 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 JavaCompilation.gmk 31 include SetupJavaCompilers.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 MAIN_MODULES += java.se java.smartcardio jdk.httpserver jdk.sctp \ 43 jdk.security.auth jdk.security.jgss jdk.pack200 jdk.xml.dom 44 45 # providers 46 PROVIDER_MODULES += jdk.charsets jdk.crypto.ec jdk.crypto.pkcs11 jdk.jvmstat jdk.localedata \ 47 jdk.naming.dns jdk.naming.rmi jdk.scripting.nashorn jdk.zipfs 48 49 # tools 50 TOOLS_MODULES += jdk.attach jdk.compiler jdk.dev jdk.javadoc jdk.jcmd jdk.jconsole \ 51 jdk.hotspot.agent jdk.hprof.agent jdk.jartool jdk.jdi jdk.jdwp.agent \ 485 486 $(eval $(call SetupCopyFiles,COPY_HOTSPOT_GCOV_GCNO, \ 487 SRC := $(OUTPUT_ROOT), \ 488 DEST := $(SYMBOLS_IMAGE_DIR)/gcov, \ 489 FILES := $(shell $(FIND) $(HOTSPOT_OUTPUTDIR) $(GCOV_FIND_EXPR)))) 490 491 SYMBOLS_TARGETS += $(COPY_HOTSPOT_GCOV_GCNO) 492 493 $(eval $(call SetupCopyFiles,COPY_JDK_GCOV_GCNO, \ 494 SRC := $(OUTPUT_ROOT), \ 495 DEST := $(SYMBOLS_IMAGE_DIR)/gcov, \ 496 FILES := $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/native $(GCOV_FIND_EXPR)))) 497 498 SYMBOLS_TARGETS += $(COPY_JDK_GCOV_GCNO) 499 500 endif 501 502 ################################################################################ 503 # ct.sym 504 505 CT_DATA_DESCRIPTION ?= $(TOPDIR)/make/data/symbols/symbols 506 507 $(eval $(call MakeDir, $(BUILDTOOLS_OUTPUTDIR)/create_symbols)) 508 509 $(eval $(call SetupJavaCompilation,COMPILE_CREATE_SYMBOLS,$(BUILD_INTERIM_LANGTOOLS) \ 510 SETUP := BOOT_JAVAC, \ 511 DISABLE_SJAVAC := true, \ 512 ADD_JAVAC_FLAGS := -Xbootclasspath/p:"$(INTERIM_LANGTOOLS_JAR)", \ 513 SRC := $(TOPDIR)/make/tools, \ 514 INCLUDES := symbolgenerator, \ 515 BIN := $(BUILDTOOLS_OUTPUTDIR)/create_symbols)) 516 517 $(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(COMPILE_CREATE_SYMBOLS) 518 $(RM) -r $(IMAGES_OUTPUTDIR)/symbols/ct.sym 519 $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols/ct.sym 520 $(ECHO) Creating ct.sym classes 521 $(JAVA) -Xbootclasspath/p:"$(INTERIM_LANGTOOLS_JAR)" -classpath $(BUILDTOOLS_OUTPUTDIR)/create_symbols symbolgenerator.CreateSymbols \ 522 build-ctsym \ 523 $(CT_DATA_DESCRIPTION) \ 524 $(IMAGES_OUTPUTDIR)/symbols/ct.sym 525 $(TOUCH) $@ 526 527 $(eval $(call MakeDir, $(IMAGES_OUTPUTDIR)/symbols)) 528 529 $(IMAGES_OUTPUTDIR)/jdk/lib/ct.sym: $(IMAGES_OUTPUTDIR)/symbols/_the.symbols 530 $(MKDIR) -p $(IMAGES_OUTPUTDIR)/jdk/lib/ 531 $(JAR) cf $(IMAGES_OUTPUTDIR)/jdk/lib/ct.sym -C $(IMAGES_OUTPUTDIR)/symbols/ct.sym . 532 533 JDK_TARGETS += $(IMAGES_OUTPUTDIR)/jdk/lib/ct.sym 534 535 ################################################################################ 536 # Include custom post hook here to make it possible to augment the target lists 537 # before actual target prerequisites are declared. 538 $(eval $(call IncludeCustomExtension, , Images-post.gmk)) 539 540 ################################################################################ 541 542 $(JRE_TARGETS): $(TOOL_JRE_TARGETS) 543 $(JDK_TARGETS): $(TOOL_JDK_TARGETS) 544 545 jimages: $(TOOL_JRE_TARGETS) $(TOOL_JDK_TARGETS) $(JRE_TARGETS) $(JDK_TARGETS) \ 546 $(SYMBOLS_TARGETS) 547 548 549 $(JRE_COMPACT1_TARGETS): $(TOOL_JRE_COMPACT1_TARGETS) 550 $(JRE_COMPACT2_TARGETS): $(TOOL_JRE_COMPACT2_TARGETS) 551 $(JRE_COMPACT3_TARGETS): $(TOOL_JRE_COMPACT3_TARGETS) 552 553 profiles: $(TOOL_JRE_COMPACT1_TARGETS) \ | 10 # 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 31 TOOL_TARGETS := 32 JDK_TARGETS := 33 JRE_TARGETS := 34 35 # Hook to include the corresponding custom file, if present. 36 $(eval $(call IncludeCustomExtension, , Images-pre.gmk)) 37 38 ############################################################################ 39 40 MAIN_MODULES += java.se java.smartcardio jdk.httpserver jdk.sctp \ 41 jdk.security.auth jdk.security.jgss jdk.pack200 jdk.xml.dom 42 43 # providers 44 PROVIDER_MODULES += jdk.charsets jdk.crypto.ec jdk.crypto.pkcs11 jdk.jvmstat jdk.localedata \ 45 jdk.naming.dns jdk.naming.rmi jdk.scripting.nashorn jdk.zipfs 46 47 # tools 48 TOOLS_MODULES += jdk.attach jdk.compiler jdk.dev jdk.javadoc jdk.jcmd jdk.jconsole \ 49 jdk.hotspot.agent jdk.hprof.agent jdk.jartool jdk.jdi jdk.jdwp.agent \ 483 484 $(eval $(call SetupCopyFiles,COPY_HOTSPOT_GCOV_GCNO, \ 485 SRC := $(OUTPUT_ROOT), \ 486 DEST := $(SYMBOLS_IMAGE_DIR)/gcov, \ 487 FILES := $(shell $(FIND) $(HOTSPOT_OUTPUTDIR) $(GCOV_FIND_EXPR)))) 488 489 SYMBOLS_TARGETS += $(COPY_HOTSPOT_GCOV_GCNO) 490 491 $(eval $(call SetupCopyFiles,COPY_JDK_GCOV_GCNO, \ 492 SRC := $(OUTPUT_ROOT), \ 493 DEST := $(SYMBOLS_IMAGE_DIR)/gcov, \ 494 FILES := $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/native $(GCOV_FIND_EXPR)))) 495 496 SYMBOLS_TARGETS += $(COPY_JDK_GCOV_GCNO) 497 498 endif 499 500 ################################################################################ 501 # ct.sym 502 503 $(eval $(call SetupCopyFiles, COPY_CTSYM, \ 504 FILES := $(SUPPORT_OUTPUTDIR)/symbols/ct.sym, \ 505 DEST := $(JDK_IMAGE_DIR)/lib, \ 506 )) 507 508 JDK_TARGETS += $(COPY_CTSYM) 509 510 ################################################################################ 511 # Include custom post hook here to make it possible to augment the target lists 512 # before actual target prerequisites are declared. 513 $(eval $(call IncludeCustomExtension, , Images-post.gmk)) 514 515 ################################################################################ 516 517 $(JRE_TARGETS): $(TOOL_JRE_TARGETS) 518 $(JDK_TARGETS): $(TOOL_JDK_TARGETS) 519 520 jimages: $(TOOL_JRE_TARGETS) $(TOOL_JDK_TARGETS) $(JRE_TARGETS) $(JDK_TARGETS) \ 521 $(SYMBOLS_TARGETS) 522 523 524 $(JRE_COMPACT1_TARGETS): $(TOOL_JRE_COMPACT1_TARGETS) 525 $(JRE_COMPACT2_TARGETS): $(TOOL_JRE_COMPACT2_TARGETS) 526 $(JRE_COMPACT3_TARGETS): $(TOOL_JRE_COMPACT3_TARGETS) 527 528 profiles: $(TOOL_JRE_COMPACT1_TARGETS) \ |