equal
deleted
inserted
replaced
20 # |
20 # |
21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
22 # CA 95054 USA or visit www.sun.com if you need additional information or |
22 # CA 95054 USA or visit www.sun.com if you need additional information or |
23 # have any questions. |
23 # have any questions. |
24 # |
24 # |
|
25 |
|
26 BUILD_PARENT_DIRECTORY=. |
25 |
27 |
26 ifndef TOPDIR |
28 ifndef TOPDIR |
27 TOPDIR:=$(shell \ |
29 TOPDIR:=$(shell \ |
28 if [ -r ./j2se/make/Makefile -o -r ./jdk/make/Makefile ]; then \ |
30 if [ -r ./j2se/make/Makefile -o -r ./jdk/make/Makefile ]; then \ |
29 echo "."; \ |
31 echo "."; \ |
64 |
66 |
65 include ./make/Defs-internal.gmk |
67 include ./make/Defs-internal.gmk |
66 |
68 |
67 all:: |
69 all:: |
68 @$(ECHO) $(PLATFORM) $(ARCH) $(RELEASE) build started: `$(DATE) '+%y-%m-%d %H:%M'` |
70 @$(ECHO) $(PLATFORM) $(ARCH) $(RELEASE) build started: `$(DATE) '+%y-%m-%d %H:%M'` |
|
71 $(MKDIR) -p $(OUTPUTDIR) |
69 |
72 |
70 # Rules for sanity checks |
73 # Rules for sanity checks |
71 include ./make/sanity-rules.gmk |
74 include ./make/sanity-rules.gmk |
72 |
75 |
73 dev : dev-build |
76 dev : dev-build |
92 |
95 |
93 all:: setup build |
96 all:: setup build |
94 |
97 |
95 setup: openjdk_check |
98 setup: openjdk_check |
96 $(MKDIR) -p $(OUTPUTDIR)/j2sdk-image |
99 $(MKDIR) -p $(OUTPUTDIR)/j2sdk-image |
97 $(MKDIR) -p $(ABS_OUTPUTDIR)/j2sdk-image |
|
98 $(MKDIR) -p $(OUTPUTDIR)-fastdebug/j2sdk-image |
|
99 $(MKDIR) -p $(ABS_OUTPUTDIR)-fastdebug/j2sdk-image |
|
100 |
100 |
101 # Check on whether we really can build the openjdk, need source etc. |
101 # Check on whether we really can build the openjdk, need source etc. |
102 openjdk_check: |
102 openjdk_check: FRC |
103 ifneq ($(SKIP_OPENJDK_BUILD), true) |
103 ifneq ($(SKIP_OPENJDK_BUILD), true) |
104 @$(ECHO) " " |
104 @$(ECHO) " " |
105 @$(ECHO) "=================================================" |
105 @$(ECHO) "=================================================" |
106 @if [ ! -r $(OPENJDK_BUILDDIR)/Makefile ] ; then \ |
106 @if [ ! -r $(OPENJDK_BUILDDIR)/Makefile ] ; then \ |
107 $(ECHO) "ERROR: No openjdk source tree available at: $(OPENJDK_BUILDDIR)"; \ |
107 $(ECHO) "ERROR: No openjdk source tree available at: $(OPENJDK_BUILDDIR)"; \ |
168 # look for INSTALL_DEBUG_NAME in the install rules. |
168 # look for INSTALL_DEBUG_NAME in the install rules. |
169 # |
169 # |
170 |
170 |
171 COMMON_DEBUG_FLAGS= \ |
171 COMMON_DEBUG_FLAGS= \ |
172 DEBUG_NAME=$(DEBUG_NAME) \ |
172 DEBUG_NAME=$(DEBUG_NAME) \ |
173 ALT_OUTPUTDIR=$(_OUTPUTDIR)-$(DEBUG_NAME) \ |
173 ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)-$(DEBUG_NAME) \ |
174 NO_DOCS=true |
174 NO_DOCS=true |
175 |
175 |
176 product_build: setup |
176 product_build: setup |
177 @$(ECHO) $@ build started: `$(DATE) '+%y-%m-%d %H:%M'` |
177 @$(ECHO) $@ build started: `$(DATE) '+%y-%m-%d %H:%M'` |
178 $(MAKE) SKIP_FASTDEBUG_BUILD=true SKIP_DEBUG_BUILD=true all |
178 $(MAKE) SKIP_FASTDEBUG_BUILD=true SKIP_DEBUG_BUILD=true all |
499 |
499 |
500 # FIXUP: Old j2se targets |
500 # FIXUP: Old j2se targets |
501 j2se_fastdebug_only: jdk_fastdebug_only |
501 j2se_fastdebug_only: jdk_fastdebug_only |
502 j2se_only: jdk_only |
502 j2se_only: jdk_only |
503 |
503 |
|
504 # Force target |
|
505 FRC: |
|
506 |