jdk/makefiles/Makefile
changeset 13164 72c5d01a857d
parent 12892 3ef14bab6254
child 13702 efd6a05935b2
equal deleted inserted replaced
13082:9b19b2302c28 13164:72c5d01a857d
    36 
    36 
    37 # Setup the build tools.
    37 # Setup the build tools.
    38 include Tools.gmk
    38 include Tools.gmk
    39 
    39 
    40 all: $(BUILD_TOOLS)
    40 all: $(BUILD_TOOLS)
       
    41 #       Import (corba jaxp jaxws langtools hotspot)
       
    42 	+$(MAKE) -f Import.gmk
       
    43 #
    41 	+$(MAKE) -f GenerateJavaSources.gmk
    44 	+$(MAKE) -f GenerateJavaSources.gmk
    42 #       Drop back to the old makefiles for
       
    43 #       packages/libs that have not yet been converted.
       
    44 	+$(MAKE) -f LegacyMakefiles.gmk
       
    45 #       Ok, now gensrc is fully populated.
    45 #       Ok, now gensrc is fully populated.
    46 	+$(MAKE) -f GenerateData.gmk
    46 	+$(MAKE) -f GenerateData.gmk
    47 	+$(MAKE) -f CompileJavaClasses.gmk
    47 	+$(MAKE) -f CompileJavaClasses.gmk
    48 #	The classes have been built, now generate
       
    49 #	classes that have other sources.
       
    50 	+$(MAKE) -f GenerateClasses.gmk
       
    51 #       The classes are now built and
    48 #       The classes are now built and
    52 #       any javah files have now been generated.
    49 #       any javah files have now been generated.
    53 	+$(MAKE) -f CompileNativeLibraries.gmk
    50 	+$(MAKE) -f CompileNativeLibraries.gmk
    54 #       Finally compile the launchers.
    51 #       Finally compile the launchers.
    55 	+$(MAKE) -f CompileLaunchers.gmk
    52 	+$(MAKE) -f CompileLaunchers.gmk
       
    53 #	Generate classes that have other sources. Needs
       
    54 #       to execute launchers.
       
    55 	+$(MAKE) -f GenerateClasses.gmk
    56 #       Now we have a complete jdk, which you can run.
    56 #       Now we have a complete jdk, which you can run.
    57 #       It is not yet wrapped up as an installed image.
    57 #       It is not yet wrapped up as an installed image.
    58 #       The demos are compiled against this jdk.
    58 #       The demos are compiled against this jdk.
    59 ifndef NO_DEMOS
    59 ifndef NO_DEMOS
    60 	+$(MAKE) -f CompileDemos.gmk
    60 	+$(MAKE) -f CompileDemos.gmk
    62 #	Now copy the sample sources into the jdk.
    62 #	Now copy the sample sources into the jdk.
    63 ifndef NO_SAMPLES
    63 ifndef NO_SAMPLES
    64 	+$(MAKE) -f CopySamples.gmk
    64 	+$(MAKE) -f CopySamples.gmk
    65 endif
    65 endif
    66 
    66 
    67 # Create the final jdk and jre images in the old way. Kept for reference
       
    68 # until conversion is fully done.
       
    69 old-images:
       
    70 	+$(MAKE) $(IMAGES_MAKE_ARGS) -f OldImages.gmk 
       
    71 
       
    72 # Create the final jdk and jre images, to be wrapped up
    67 # Create the final jdk and jre images, to be wrapped up
    73 # into packages, or installed.
    68 # into packages, or installed.
    74 images:
    69 images:
    75 	+$(MAKE) -f CreateJars.gmk
    70 	+$(MAKE) -f CreateJars.gmk
    76 	+$(MAKE) $(IMAGES_MAKE_ARGS) -f Images.gmk 
    71 	+$(MAKE) -f Images.gmk 
    77 
    72 
    78 
    73 
    79 BINARIES:=$(shell if test -d $(IMAGES_OUTPUTDIR)/j2sdk-image/bin; then cd $(IMAGES_OUTPUTDIR)/j2sdk-image/bin && $(LS) ; fi)
    74 BINARIES:=$(shell if test -d $(IMAGES_OUTPUTDIR)/j2sdk-image/bin; then cd $(IMAGES_OUTPUTDIR)/j2sdk-image/bin && $(LS) ; fi)
    80 INSTALLDIR:=openjdk-$(RELEASE)
    75 INSTALLDIR:=openjdk-$(RELEASE)
    81 
    76 
    88 	$(RM) -r $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/*
    83 	$(RM) -r $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/*
    89 	$(CP) -rp $(IMAGES_OUTPUTDIR)/j2sdk-image/* $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
    84 	$(CP) -rp $(IMAGES_OUTPUTDIR)/j2sdk-image/* $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
    90 	$(RM) $(addprefix $(INSTALL_PREFIX)/bin/,$(BINARIES))
    85 	$(RM) $(addprefix $(INSTALL_PREFIX)/bin/,$(BINARIES))
    91 	$(foreach b,$(BINARIES),$(LN) -s $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/bin/$b $(INSTALL_PREFIX)/bin/$b &&) true
    86 	$(foreach b,$(BINARIES),$(LN) -s $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/bin/$b $(INSTALL_PREFIX)/bin/$b &&) true
    92 
    87 
    93 # Create the deb,rpm,tgz,zip, packages.
       
    94 packages: images
       
    95 	echo Creating packages...well, in the future.
       
    96 	$(MKDIR) -p $(OUTPUT_ROOT)/packages
       
    97 
       
    98 .PHONY: all install images
    88 .PHONY: all install images