jdk/makefiles/Makefile
changeset 12892 3ef14bab6254
parent 12317 9670c1610c53
child 13164 72c5d01a857d
equal deleted inserted replaced
12891:5dbaa8f0f72e 12892:3ef14bab6254
    21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    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
    22 # or visit www.oracle.com if you need additional information or have any
    23 # questions.
    23 # questions.
    24 #
    24 #
    25 
    25 
       
    26 # This must be the first rule
    26 default: all
    27 default: all
    27 
    28 
    28 include $(SPEC)
    29 include $(SPEC)
    29 include MakeBase.gmk
    30 include MakeBase.gmk
    30 include JavaCompilation.gmk
    31 include JavaCompilation.gmk
    34 include Setup.gmk
    35 include Setup.gmk
    35 
    36 
    36 # Setup the build tools.
    37 # Setup the build tools.
    37 include Tools.gmk
    38 include Tools.gmk
    38 
    39 
    39 
       
    40 all: $(BUILD_TOOLS)
    40 all: $(BUILD_TOOLS)
    41 	+make -f GenerateJavaSources.gmk
    41 	+$(MAKE) -f GenerateJavaSources.gmk
    42 #       Drop back to the old makefiles for
    42 #       Drop back to the old makefiles for
    43 #       packages/libs that have not yet been converted.
    43 #       packages/libs that have not yet been converted.
    44 	+make -f LegacyMakefiles.gmk
    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
    48 #	The classes have been built, now generate
    49 #	classes that have other sources.
    49 #	classes that have other sources.
    50 	+make -f GenerateClasses.gmk
    50 	+$(MAKE) -f GenerateClasses.gmk
    51 #       The classes are now built and
    51 #       The classes are now built and
    52 #       any javah files have now been generated.
    52 #       any javah files have now been generated.
    53 	+make -f CompileNativeLibraries.gmk
    53 	+$(MAKE) -f CompileNativeLibraries.gmk
    54 #       Finally compile the launchers.
    54 #       Finally compile the launchers.
    55 	+make -f CompileLaunchers.gmk
    55 	+$(MAKE) -f CompileLaunchers.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
    61 endif
    61 endif
    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 
    67 # Create the final jdk and jre images, to be wrapped up
    72 # Create the final jdk and jre images, to be wrapped up
    68 # into packages, or instealled.
    73 # into packages, or installed.
    69 images: all
    74 images:
    70 	+make $(IMAGES_MAKE_ARGS) -f Images.gmk 
    75 	+$(MAKE) -f CreateJars.gmk
       
    76 	+$(MAKE) $(IMAGES_MAKE_ARGS) -f Images.gmk 
    71 
    77 
    72 
    78 
    73 BINARIES:=$(shell if test -d $(IMAGES_OUTPUTDIR)/j2sdk-image/bin; then cd $(IMAGES_OUTPUTDIR)/j2sdk-image/bin && $(LS) ; fi)
    79 BINARIES:=$(shell if test -d $(IMAGES_OUTPUTDIR)/j2sdk-image/bin; then cd $(IMAGES_OUTPUTDIR)/j2sdk-image/bin && $(LS) ; fi)
    74 INSTALLDIR:=openjdk-$(RELEASE)
    80 INSTALLDIR:=openjdk-$(RELEASE)
    75 
    81 
    87 # Create the deb,rpm,tgz,zip, packages.
    93 # Create the deb,rpm,tgz,zip, packages.
    88 packages: images
    94 packages: images
    89 	echo Creating packages...well, in the future.
    95 	echo Creating packages...well, in the future.
    90 	$(MKDIR) -p $(OUTPUT_ROOT)/packages
    96 	$(MKDIR) -p $(OUTPUT_ROOT)/packages
    91 
    97 
    92 .PHONY: all install
    98 .PHONY: all install images