makefiles/BuildJdk.gmk

Print this page




  83         +$(MAKE) -f CompileDemos.gmk
  84 #       Now copy the sample sources into the jdk.
  85         +$(MAKE) -f CopySamples.gmk
  86 
  87 # Create the final jdk and jre images, to be wrapped up
  88 # into packages, or installed.
  89 images:
  90         +$(MAKE) -f CreateJars.gmk
  91         +$(MAKE) -f Images.gmk
  92 ifeq ($(OPENJDK_TARGET_OS), macosx)
  93         +$(MAKE) -f Bundles.gmk
  94 endif
  95 
  96 overlay-images:
  97         +$(MAKE) -f CompileLaunchers.gmk OVERLAY_IMAGES=true
  98         +$(MAKE) -f Images.gmk overlay-images
  99 
 100 sign-jars:
 101         +$(MAKE) -f SignJars.gmk
 102 
 103 BINARIES:=$(notdir $(wildcard $(IMAGES_OUTPUTDIR)/j2sdk-image/bin/*))
 104 INSTALLDIR:=openjdk-$(RELEASE)
 105 
 106 # Install the jdk image, in a very crude way. Not taking into
 107 # account, how to install properly on macosx or windows etc.
 108 install:
 109         echo Installing jdk image into $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
 110         echo and creating $(words $(BINARIES)) links from $(INSTALL_PREFIX)/bin into the jdk.
 111         $(MKDIR) -p $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
 112         $(RM) -r $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/*
 113         $(CP) -rp $(IMAGES_OUTPUTDIR)/j2sdk-image/* $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
 114         $(MKDIR) -p $(INSTALL_PREFIX)/bin
 115         $(RM) $(addprefix $(INSTALL_PREFIX)/bin/,$(BINARIES))
 116         $(foreach b,$(BINARIES),$(LN) -s $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/bin/$b $(INSTALL_PREFIX)/bin/$b &&) true
 117 
 118 # The all target builds the JDK, but not the images
 119 all: jdk
 120 
 121 .PHONY: import gensrc gendata classes libs launchers genclasses
 122 .PHONY: import-only gensrc-only gendata-only classes-only libs-only launchers-only genclasses-only
 123 .PHONY: all jdk demos images overlay-images bundles install


  83         +$(MAKE) -f CompileDemos.gmk
  84 #       Now copy the sample sources into the jdk.
  85         +$(MAKE) -f CopySamples.gmk
  86 
  87 # Create the final jdk and jre images, to be wrapped up
  88 # into packages, or installed.
  89 images:
  90         +$(MAKE) -f CreateJars.gmk
  91         +$(MAKE) -f Images.gmk
  92 ifeq ($(OPENJDK_TARGET_OS), macosx)
  93         +$(MAKE) -f Bundles.gmk
  94 endif
  95 
  96 overlay-images:
  97         +$(MAKE) -f CompileLaunchers.gmk OVERLAY_IMAGES=true
  98         +$(MAKE) -f Images.gmk overlay-images
  99 
 100 sign-jars:
 101         +$(MAKE) -f SignJars.gmk
 102 
 103 BINARIES:=$(notdir $(wildcard $(JDK_IMAGE_DIR)/bin/*))
 104 INSTALLDIR:=openjdk-$(RELEASE)
 105 
 106 # Install the jdk image, in a very crude way. Not taking into
 107 # account, how to install properly on macosx or windows etc.
 108 install:
 109         echo Installing jdk image into $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
 110         echo and creating $(words $(BINARIES)) links from $(INSTALL_PREFIX)/bin into the jdk.
 111         $(MKDIR) -p $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
 112         $(RM) -r $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/*
 113         $(CP) -rp $(JDK_IMAGE_DIR)/* $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
 114         $(MKDIR) -p $(INSTALL_PREFIX)/bin
 115         $(RM) $(addprefix $(INSTALL_PREFIX)/bin/,$(BINARIES))
 116         $(foreach b,$(BINARIES),$(LN) -s $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/bin/$b $(INSTALL_PREFIX)/bin/$b &&) true
 117 
 118 # The all target builds the JDK, but not the images
 119 all: jdk
 120 
 121 .PHONY: import gensrc gendata classes libs launchers genclasses
 122 .PHONY: import-only gensrc-only gendata-only classes-only libs-only launchers-only genclasses-only
 123 .PHONY: all jdk demos images overlay-images bundles install