makefiles/CompileLaunchers.gmk

Print this page




 567 
 568 # TODO: 
 569 # On windows java-rmi.cgi shouldn't be bundled since Java 1.2, but has been built all
 570 # this time anyway. Since jdk6, it has been built from the wrong source and resulted
 571 # in a (almost) copy of the standard java launcher named "java-rmi.exe" ending up in 
 572 # the final images bin dir. This weird behavior is mimicked here in the converted 
 573 # makefiles for now. Should probably just be deleted.
 574 # http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6512052
 575 ifeq ($(OPENJDK_TARGET_OS),windows)
 576     $(eval $(call SetupLauncher,java-rmi,,\
 577         $(call SET_SHARED_LIBRARY_MAPFILE,$(JDK_TOPDIR)/makefiles/java/main/java/mapfile-$(OPENJDK_TARGET_CPU))))
 578 else
 579     $(JAVA_RMI_CGI): $(JDK_TOPDIR)/src/solaris/bin/java-rmi.cgi.sh
 580         $(MKDIR) -p $(@D)
 581         $(CP) $< $@
 582         $(CHMOD) a+x $@
 583 endif
 584 
 585 ##########################################################################################
 586 








































 587 $(BUILD_LAUNCHERS) : $(JDK_TOPDIR)/makefiles/CompileLaunchers.gmk
 588 
 589 all: $(BUILD_LAUNCHERS)
 590 
 591 .PHONY: all


 567 
 568 # TODO: 
 569 # On windows java-rmi.cgi shouldn't be bundled since Java 1.2, but has been built all
 570 # this time anyway. Since jdk6, it has been built from the wrong source and resulted
 571 # in a (almost) copy of the standard java launcher named "java-rmi.exe" ending up in 
 572 # the final images bin dir. This weird behavior is mimicked here in the converted 
 573 # makefiles for now. Should probably just be deleted.
 574 # http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6512052
 575 ifeq ($(OPENJDK_TARGET_OS),windows)
 576     $(eval $(call SetupLauncher,java-rmi,,\
 577         $(call SET_SHARED_LIBRARY_MAPFILE,$(JDK_TOPDIR)/makefiles/java/main/java/mapfile-$(OPENJDK_TARGET_CPU))))
 578 else
 579     $(JAVA_RMI_CGI): $(JDK_TOPDIR)/src/solaris/bin/java-rmi.cgi.sh
 580         $(MKDIR) -p $(@D)
 581         $(CP) $< $@
 582         $(CHMOD) a+x $@
 583 endif
 584 
 585 ##########################################################################################
 586 
 587 BUILD_JSPAWNHELPER := 
 588 BUILD_JSPAWNHELPER_SRC := $(JDK_TOPDIR)/src/solaris/native/java/lang
 589 BUILD_JSPAWNHELPER_DST_DIR := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
 590 LINK_JSPAWNHELPER_OBJECTS := $(JDK_OUTPUTDIR)/objs/libjava/childproc.o
 591 LINK_JSPAWNHELPER_FLAGS :=
 592 
 593 #
 594 # jdk/make/java/java/Makefile
 595 #
 596 ifneq ($(findstring $(OPENJDK_TARGET_OS), macosx solaris),)
 597     BUILD_JSPAWNHELPER := 1
 598 endif
 599 
 600 ifeq ($(OPENJDK_TARGET_OS), macosx)
 601     BUILD_JSPAWNHELPER := 1
 602     BUILD_JSPAWNHELPER_DST_DIR := $(JDK_OUTPUTDIR)/lib
 603 endif
 604 
 605 ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
 606     LINK_JSPAWNHELPER_FLAGS += -m64
 607 endif
 608 
 609 ifeq ($(BUILD_JSPAWNHELPER), 1)
 610         $(eval $(call SetupNativeCompilation,BUILD_JSPAWNHELPER,\
 611         SRC:=$(BUILD_JSPAWNHELPER_SRC),\
 612         INCLUDE_FILES:=jspawnhelper.c,\
 613         LANG:=C,\
 614         OPTIMIZATION := LOW, \
 615         CFLAGS:=$(CFLAGS_JDKEXE), \
 616         LDFLAGS:=$(LDFLAGS_JDKEXE) $(LINK_JSPAWNHELPER_FLAGS), \
 617         LDFLAGS_SUFFIX:= $(LINK_JSPAWNHELPER_OBJECTS), \
 618         OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/jspawnhelper,\
 619         OUTPUT_DIR:=$(BUILD_JSPAWNHELPER_DST_DIR),\
 620         PROGRAM:=jspawnhelper))
 621 
 622     BUILD_LAUNCHERS += $(BUILD_JSPAWNHELPER)
 623 endif
 624 
 625 ##########################################################################################
 626 
 627 $(BUILD_LAUNCHERS) : $(JDK_TOPDIR)/makefiles/CompileLaunchers.gmk
 628 
 629 all: $(BUILD_LAUNCHERS)
 630 
 631 .PHONY: all