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 |