Makefile
author kvn
Tue, 10 May 2011 12:57:21 -0700
changeset 9634 985153f94e98
parent 8917 a3bac6e9ee79
child 9309 334bea52fc16
permissions -rw-r--r--
7043552: regression after 7042327 Summary: Generate Opaque2 node only during first unroll. Reviewed-by: never
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     1
#
8917
a3bac6e9ee79 7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents: 8445
diff changeset
     2
# Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
fd16c54261b3 Initial load
duke
parents:
diff changeset
     4
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
fd16c54261b3 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5499
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4309
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5499
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4309
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    10
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
fd16c54261b3 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fd16c54261b3 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
fd16c54261b3 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
fd16c54261b3 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
fd16c54261b3 Initial load
duke
parents:
diff changeset
    16
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
fd16c54261b3 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
fd16c54261b3 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
fd16c54261b3 Initial load
duke
parents:
diff changeset
    20
#
5499
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4309
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4309
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
eb0b3e373167 6943119: Rebrand source copyright notices
ohair
parents: 4309
diff changeset
    23
# questions.
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    24
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    25
17
bb9f330cd95a 6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents: 16
diff changeset
    26
BUILD_PARENT_DIRECTORY=.
bb9f330cd95a 6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents: 16
diff changeset
    27
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    28
ifndef TOPDIR
20
41658053480c 6623832: Cleanup old j2se makefile targets
ohair
parents: 17
diff changeset
    29
  TOPDIR:=.
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    30
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    31
fd16c54261b3 Initial load
duke
parents:
diff changeset
    32
ifndef JDK_TOPDIR
fd16c54261b3 Initial load
duke
parents:
diff changeset
    33
  JDK_TOPDIR=$(TOPDIR)/jdk
fd16c54261b3 Initial load
duke
parents:
diff changeset
    34
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    35
ifndef JDK_MAKE_SHARED_DIR
fd16c54261b3 Initial load
duke
parents:
diff changeset
    36
  JDK_MAKE_SHARED_DIR=$(JDK_TOPDIR)/make/common/shared
fd16c54261b3 Initial load
duke
parents:
diff changeset
    37
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    38
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    39
default: all
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    40
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    41
include $(JDK_MAKE_SHARED_DIR)/Defs-control.gmk
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    42
include ./make/Defs-internal.gmk
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    43
include ./make/sanity-rules.gmk
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
    44
include ./make/hotspot-rules.gmk
fd16c54261b3 Initial load
duke
parents:
diff changeset
    45
include ./make/langtools-rules.gmk
fd16c54261b3 Initial load
duke
parents:
diff changeset
    46
include ./make/corba-rules.gmk
fd16c54261b3 Initial load
duke
parents:
diff changeset
    47
include ./make/jaxp-rules.gmk
fd16c54261b3 Initial load
duke
parents:
diff changeset
    48
include ./make/jaxws-rules.gmk
fd16c54261b3 Initial load
duke
parents:
diff changeset
    49
include ./make/jdk-rules.gmk
fd16c54261b3 Initial load
duke
parents:
diff changeset
    50
include ./make/install-rules.gmk
fd16c54261b3 Initial load
duke
parents:
diff changeset
    51
include ./make/sponsors-rules.gmk
fd16c54261b3 Initial load
duke
parents:
diff changeset
    52
include ./make/deploy-rules.gmk
fd16c54261b3 Initial load
duke
parents:
diff changeset
    53
7873
4ff5acee11e8 7009969: Remove SKIP_OPENJDK_BUILD from top Makefile
ohair
parents: 7652
diff changeset
    54
all:: sanity
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    55
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    56
ifeq ($(SKIP_FASTDEBUG_BUILD), false)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    57
  all:: fastdebug_build
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    58
endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    59
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    60
ifeq ($(SKIP_DEBUG_BUILD), false)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    61
  all:: debug_build
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    62
endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    63
948
5d6b06900843 6737659: debug bundles are empty
ohair
parents: 874
diff changeset
    64
all:: all_product_build 
5d6b06900843 6737659: debug bundles are empty
ohair
parents: 874
diff changeset
    65
8445
309991ddb9a1 7026167: Broken fastdebug only build
ohair
parents: 8441
diff changeset
    66
all_product_build::
309991ddb9a1 7026167: Broken fastdebug only build
ohair
parents: 8441
diff changeset
    67
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
    68
# Everything for a full product build
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
    69
ifeq ($(SKIP_PRODUCT_BUILD), false)
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    70
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    71
  all_product_build:: product_build
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    72
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    73
  ifeq ($(BUILD_INSTALL), true)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    74
    all_product_build:: $(INSTALL)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    75
    clobber:: install-clobber
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    76
  endif
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
    77
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    78
  ifeq ($(BUILD_SPONSORS), true)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    79
    all_product_build:: $(SPONSORS)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    80
    clobber:: sponsors-clobber
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    81
  endif
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
    82
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    83
  ifneq ($(SKIP_COMPARE_IMAGES), true)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    84
    all_product_build:: compare-image
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    85
  endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    86
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    87
endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    88
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
    89
define StartTimer
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
    90
	$(MKDIR) -p $(BUILDTIMESDIR)
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
    91
	$(RM) $(BUILDTIMESDIR)/build_time_*
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
    92
	$(call RecordStartTime,TOTAL)
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
    93
endef
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
    94
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
    95
define StopTimer
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
    96
	$(if $(REPORT_BUILD_TIMES),$(call RecordEndTime,TOTAL) && $(call ReportBuildTimes,$1),)
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
    97
endef
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
    98
5743
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
    99
# Generic build of basic repo series
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   100
generic_build_repo_series::
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   101
	$(MKDIR) -p $(OUTPUTDIR)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   102
	$(MKDIR) -p $(OUTPUTDIR)/j2sdk-image
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
   103
	@$(call StartTimer)
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   104
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   105
ifeq ($(BUILD_LANGTOOLS), true)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   106
  generic_build_repo_series:: langtools
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   107
  clobber:: langtools-clobber
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   108
endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   109
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   110
ifeq ($(BUILD_CORBA), true)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   111
  generic_build_repo_series:: corba
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   112
  clobber:: corba-clobber
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   113
endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   114
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   115
ifeq ($(BUILD_JAXP), true)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   116
  generic_build_repo_series:: jaxp
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   117
  clobber:: jaxp-clobber
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   118
endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   119
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   120
ifeq ($(BUILD_JAXWS), true)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   121
  generic_build_repo_series:: jaxws
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   122
  clobber:: jaxws-clobber
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   123
endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   124
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   125
ifeq ($(BUILD_HOTSPOT), true)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   126
  generic_build_repo_series:: $(HOTSPOT) 
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   127
  clobber:: hotspot-clobber
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   128
endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   129
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   130
ifeq ($(BUILD_JDK), true)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   131
  generic_build_repo_series:: $(JDK_JAVA_EXE)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   132
  clobber:: jdk-clobber
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   133
endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   134
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   135
ifeq ($(BUILD_DEPLOY), true)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   136
  generic_build_repo_series:: $(DEPLOY)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   137
  clobber:: deploy-clobber
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   138
endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   139
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
   140
generic_build_repo_series::
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
   141
	@$(call StopTimer,$(if $(DEBUG_NAME),$(DEBUG_NAME)_build,all_product_build))
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
   142
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   143
# The debug build, fastdebug or debug. Needs special handling.
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   144
#  Note that debug builds do NOT do INSTALL steps, but must be done
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   145
#  after the product build and before the INSTALL step of the product build.
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   146
#
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   147
#   DEBUG_NAME is fastdebug or debug
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   148
#   ALT_OUTPUTDIR is changed to have -debug or -fastdebug suffix
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   149
#   The resulting j2sdk-image is used by the install makefiles to create a
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   150
#     debug install bundle jdk-*-debug-** bundle (tar or zip) 
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   151
#     which will install in the debug or fastdebug subdirectory of the
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   152
#     normal product install area.
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   153
#     The install process needs to know what the DEBUG_NAME is, so
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   154
#     look for INSTALL_DEBUG_NAME in the install rules.
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   155
#
5743
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   156
#   NOTE: On windows, do not use $(ABS_BOOTDIR_OUTPUTDIR)-$(DEBUG_NAME).
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   157
#         Due to the use of short paths in $(ABS_OUTPUTDIR), this may 
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   158
#         not be the same location.
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   159
#
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   160
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   161
# Location of fresh bootdir output
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   162
ABS_BOOTDIR_OUTPUTDIR=$(ABS_OUTPUTDIR)/bootjdk
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   163
FRESH_BOOTDIR=$(ABS_BOOTDIR_OUTPUTDIR)/j2sdk-image
5743
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   164
FRESH_DEBUG_BOOTDIR=$(ABS_BOOTDIR_OUTPUTDIR)/../$(PLATFORM)-$(ARCH)-$(DEBUG_NAME)/j2sdk-image
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   165
  
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   166
create_fresh_product_bootdir: FRC
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   167
	$(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) \
4309
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 2099
diff changeset
   168
		GENERATE_DOCS=false \
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   169
		BOOT_CYCLE_SETTINGS= \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   170
		build_product_image
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   171
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   172
create_fresh_debug_bootdir: FRC
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   173
	$(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) \
4309
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 2099
diff changeset
   174
		GENERATE_DOCS=false \
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   175
		BOOT_CYCLE_DEBUG_SETTINGS= \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   176
		build_debug_image
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   177
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   178
create_fresh_fastdebug_bootdir: FRC
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   179
	$(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) \
4309
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 2099
diff changeset
   180
		GENERATE_DOCS=false \
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   181
		BOOT_CYCLE_DEBUG_SETTINGS= \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   182
		build_fastdebug_image
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   183
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   184
# Create boot image?
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   185
ifeq ($(SKIP_BOOT_CYCLE),false)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   186
  ifneq ($(PLATFORM)$(ARCH_DATA_MODEL),solaris64)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   187
    DO_BOOT_CYCLE=true
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   188
  endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   189
endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   190
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
   191
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
   192
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   193
ifeq ($(DO_BOOT_CYCLE),true)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   194
  
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   195
  # Create the bootdir to use in the build
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   196
  product_build:: create_fresh_product_bootdir
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   197
  debug_build:: create_fresh_debug_bootdir
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   198
  fastdebug_build:: create_fresh_fastdebug_bootdir
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   199
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   200
  # Define variables to be used now for the boot jdk
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   201
  BOOT_CYCLE_SETTINGS= \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   202
     ALT_BOOTDIR=$(FRESH_BOOTDIR) \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   203
     ALT_JDK_IMPORT_PATH=$(FRESH_BOOTDIR)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   204
  BOOT_CYCLE_DEBUG_SETTINGS= \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   205
     ALT_BOOTDIR=$(FRESH_DEBUG_BOOTDIR) \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   206
     ALT_JDK_IMPORT_PATH=$(FRESH_DEBUG_BOOTDIR)
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   207
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   208
else
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   209
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   210
  # Use the supplied ALT_BOOTDIR as the boot
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   211
  BOOT_CYCLE_SETTINGS=
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   212
  BOOT_CYCLE_DEBUG_SETTINGS=
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   213
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   214
endif
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   215
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   216
build_product_image:
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   217
	$(MAKE) \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   218
	        SKIP_FASTDEBUG_BUILD=true \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   219
	        SKIP_DEBUG_BUILD=true \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   220
	        $(BOOT_CYCLE_SETTINGS) \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   221
	        generic_build_repo_series
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   222
5743
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   223
#   NOTE: On windows, do not use $(ABS_OUTPUTDIR)-$(DEBUG_NAME).
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   224
#         Due to the use of short paths in $(ABS_OUTPUTDIR), this may 
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   225
#         not be the same location.
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   226
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   227
generic_debug_build:
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   228
	$(MAKE) \
5743
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   229
		ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)/../$(PLATFORM)-$(ARCH)-$(DEBUG_NAME) \
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   230
	        DEBUG_NAME=$(DEBUG_NAME) \
4309
39ca605f0647 6727046: Add message when docs are skipped in control build
ohair
parents: 2099
diff changeset
   231
		GENERATE_DOCS=false \
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   232
	        $(BOOT_CYCLE_DEBUG_SETTINGS) \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   233
		generic_build_repo_series
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   234
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   235
build_debug_image:
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   236
	$(MAKE) DEBUG_NAME=debug generic_debug_build
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   237
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   238
build_fastdebug_image:
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   239
	$(MAKE) DEBUG_NAME=fastdebug generic_debug_build
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   240
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   241
# Build final image
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   242
product_build:: build_product_image
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   243
debug_build:: build_debug_image
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   244
fastdebug_build:: build_fastdebug_image
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   245
8441
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
   246
clobber:: REPORT_BUILD_TIMES=
30f5ad688d4a 7021753: Add a build times report
ohrstrom
parents: 7876
diff changeset
   247
clobber:: 
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   248
	$(RM) -r $(OUTPUTDIR)/*
5743
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   249
	$(RM) -r $(OUTPUTDIR)/../$(PLATFORM)-$(ARCH)-debug/*
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   250
	$(RM) -r $(OUTPUTDIR)/../$(PLATFORM)-$(ARCH)-fastdebug/*
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   251
	-($(RMDIR) -p $(OUTPUTDIR) > $(DEV_NULL) 2>&1; $(TRUE))
fd16c54261b3 Initial load
duke
parents:
diff changeset
   252
fd16c54261b3 Initial load
duke
parents:
diff changeset
   253
clean: clobber
fd16c54261b3 Initial load
duke
parents:
diff changeset
   254
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   255
#
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   256
# Dev builds
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   257
#
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   258
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   259
dev : dev-build
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   260
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   261
dev-build:
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   262
	$(MAKE) DEV_ONLY=true all
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   263
dev-sanity:
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   264
	$(MAKE) DEV_ONLY=true sanity
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   265
dev-clobber:
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   266
	$(MAKE) DEV_ONLY=true clobber
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   267
fd16c54261b3 Initial load
duke
parents:
diff changeset
   268
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
   269
# Quick jdk verification build
fd16c54261b3 Initial load
duke
parents:
diff changeset
   270
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
   271
jdk_only:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   272
	$(MAKE) SKIP_FASTDEBUG_BUILD=true BUILD_HOTSPOT=false all
fd16c54261b3 Initial load
duke
parents:
diff changeset
   273
fd16c54261b3 Initial load
duke
parents:
diff changeset
   274
fd16c54261b3 Initial load
duke
parents:
diff changeset
   275
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
   276
# Quick jdk verification fastdebug build
fd16c54261b3 Initial load
duke
parents:
diff changeset
   277
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
   278
jdk_fastdebug_only:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   279
	$(MAKE) DEBUG_NAME=fastdebug BUILD_HOTSPOT=false BUILD_DEPLOY=false \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   280
	    BUILD_INSTALL=false BUILD_SPONSORS=false generic_debug_build
fd16c54261b3 Initial load
duke
parents:
diff changeset
   281
fd16c54261b3 Initial load
duke
parents:
diff changeset
   282
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
   283
# Quick deploy verification fastdebug build
fd16c54261b3 Initial load
duke
parents:
diff changeset
   284
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
   285
deploy_fastdebug_only:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   286
	$(MAKE) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   287
	    DEBUG_NAME=fastdebug \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   288
	    BUILD_HOTSPOT=false \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   289
	    BUILD_JDK=false \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   290
	    BUILD_LANGTOOLS=false \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   291
	    BUILD_CORBA=false \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   292
	    BUILD_JAXP=false \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   293
	    BUILD_JAXWS=false \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   294
	    BUILD_INSTALL=false \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   295
	    BUILD_SPONSORS=false \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   296
	    generic_debug_build
fd16c54261b3 Initial load
duke
parents:
diff changeset
   297
fd16c54261b3 Initial load
duke
parents:
diff changeset
   298
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
   299
# Product build (skip debug builds)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   300
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
   301
product_only:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   302
	$(MAKE) SKIP_FASTDEBUG_BUILD=true all
fd16c54261b3 Initial load
duke
parents:
diff changeset
   303
fd16c54261b3 Initial load
duke
parents:
diff changeset
   304
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
   305
# Check target
fd16c54261b3 Initial load
duke
parents:
diff changeset
   306
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
   307
fd16c54261b3 Initial load
duke
parents:
diff changeset
   308
check: variable_check
fd16c54261b3 Initial load
duke
parents:
diff changeset
   309
fd16c54261b3 Initial load
duke
parents:
diff changeset
   310
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
   311
# Help target
fd16c54261b3 Initial load
duke
parents:
diff changeset
   312
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
   313
help: intro_help target_help variable_help notes_help examples_help
fd16c54261b3 Initial load
duke
parents:
diff changeset
   314
fd16c54261b3 Initial load
duke
parents:
diff changeset
   315
# Intro help message
fd16c54261b3 Initial load
duke
parents:
diff changeset
   316
intro_help:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   317
	@$(ECHO) "\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   318
Makefile for the JDK builds (all the JDK). \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   319
"
fd16c54261b3 Initial load
duke
parents:
diff changeset
   320
fd16c54261b3 Initial load
duke
parents:
diff changeset
   321
# Target help
fd16c54261b3 Initial load
duke
parents:
diff changeset
   322
target_help:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   323
	@$(ECHO) "\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   324
--- Common Targets ---  \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   325
all               -- build the core JDK (default target) \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   326
help              -- Print out help information \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   327
check             -- Check make variable values for correctness \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   328
sanity            -- Perform detailed sanity checks on system and settings \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   329
fastdebug_build   -- build the core JDK in 'fastdebug' mode (-g -O) \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   330
debug_build       -- build the core JDK in 'debug' mode (-g) \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   331
clean             -- remove all built and imported files \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   332
clobber           -- same as clean \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   333
"
fd16c54261b3 Initial load
duke
parents:
diff changeset
   334
fd16c54261b3 Initial load
duke
parents:
diff changeset
   335
# Variable help (only common ones used by this Makefile)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   336
variable_help: variable_help_intro variable_list variable_help_end
fd16c54261b3 Initial load
duke
parents:
diff changeset
   337
variable_help_intro:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   338
	@$(ECHO) "--- Common Variables ---"
fd16c54261b3 Initial load
duke
parents:
diff changeset
   339
variable_help_end:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   340
	@$(ECHO) " "
fd16c54261b3 Initial load
duke
parents:
diff changeset
   341
fd16c54261b3 Initial load
duke
parents:
diff changeset
   342
# One line descriptions for the variables
fd16c54261b3 Initial load
duke
parents:
diff changeset
   343
OUTPUTDIR.desc             = Output directory
fd16c54261b3 Initial load
duke
parents:
diff changeset
   344
PARALLEL_COMPILE_JOBS.desc = Solaris/Linux parallel compile run count
fd16c54261b3 Initial load
duke
parents:
diff changeset
   345
SLASH_JAVA.desc            = Root of all build tools, e.g. /java or J:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   346
BOOTDIR.desc               = JDK used to boot the build
fd16c54261b3 Initial load
duke
parents:
diff changeset
   347
JDK_IMPORT_PATH.desc       = JDK used to import components of the build
fd16c54261b3 Initial load
duke
parents:
diff changeset
   348
COMPILER_PATH.desc         = Compiler install directory
fd16c54261b3 Initial load
duke
parents:
diff changeset
   349
CACERTS_FILE.desc          = Location of certificates file
fd16c54261b3 Initial load
duke
parents:
diff changeset
   350
DEVTOOLS_PATH.desc         = Directory containing zip and gnumake
fd16c54261b3 Initial load
duke
parents:
diff changeset
   351
CUPS_HEADERS_PATH.desc     = Include directory location for CUPS header files
fd16c54261b3 Initial load
duke
parents:
diff changeset
   352
DXSDK_PATH.desc            = Root directory of DirectX SDK
fd16c54261b3 Initial load
duke
parents:
diff changeset
   353
fd16c54261b3 Initial load
duke
parents:
diff changeset
   354
# Make variables to print out (description and value)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   355
VARIABLE_PRINTVAL_LIST +=       \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   356
    OUTPUTDIR                   \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   357
    PARALLEL_COMPILE_JOBS       \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   358
    SLASH_JAVA                  \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   359
    BOOTDIR                     \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   360
    JDK_IMPORT_PATH             \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   361
    COMPILER_PATH               \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   362
    CACERTS_FILE                \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   363
    DEVTOOLS_PATH
fd16c54261b3 Initial load
duke
parents:
diff changeset
   364
fd16c54261b3 Initial load
duke
parents:
diff changeset
   365
# Make variables that should refer to directories that exist
fd16c54261b3 Initial load
duke
parents:
diff changeset
   366
VARIABLE_CHECKDIR_LIST +=       \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   367
    SLASH_JAVA                  \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   368
    BOOTDIR                     \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   369
    JDK_IMPORT_PATH             \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   370
    COMPILER_PATH               \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   371
    DEVTOOLS_PATH 
fd16c54261b3 Initial load
duke
parents:
diff changeset
   372
fd16c54261b3 Initial load
duke
parents:
diff changeset
   373
# Make variables that should refer to files that exist
fd16c54261b3 Initial load
duke
parents:
diff changeset
   374
VARIABLE_CHECKFIL_LIST +=       \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   375
    CACERTS_FILE
fd16c54261b3 Initial load
duke
parents:
diff changeset
   376
fd16c54261b3 Initial load
duke
parents:
diff changeset
   377
# Some are windows specific
fd16c54261b3 Initial load
duke
parents:
diff changeset
   378
ifeq ($(PLATFORM), windows)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   379
fd16c54261b3 Initial load
duke
parents:
diff changeset
   380
VARIABLE_PRINTVAL_LIST +=       \
7876
c2a288bdcca1 6950375: Remove msvcrt.dll from the Windows JRE bundles
ohair
parents: 7873
diff changeset
   381
    DXSDK_PATH
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   382
fd16c54261b3 Initial load
duke
parents:
diff changeset
   383
VARIABLE_CHECKDIR_LIST +=       \
7876
c2a288bdcca1 6950375: Remove msvcrt.dll from the Windows JRE bundles
ohair
parents: 7873
diff changeset
   384
    DXSDK_PATH
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   385
fd16c54261b3 Initial load
duke
parents:
diff changeset
   386
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   387
fd16c54261b3 Initial load
duke
parents:
diff changeset
   388
# For pattern rules below, so all are treated the same
fd16c54261b3 Initial load
duke
parents:
diff changeset
   389
DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   390
DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   391
DO_CHECKFIL_LIST=$(VARIABLE_CHECKFIL_LIST:%=%.checkfil)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   392
fd16c54261b3 Initial load
duke
parents:
diff changeset
   393
# Complete variable check
fd16c54261b3 Initial load
duke
parents:
diff changeset
   394
variable_check: $(DO_CHECKDIR_LIST) $(DO_CHECKFIL_LIST)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   395
variable_list: $(DO_PRINTVAL_LIST) variable_check
fd16c54261b3 Initial load
duke
parents:
diff changeset
   396
fd16c54261b3 Initial load
duke
parents:
diff changeset
   397
# Pattern rule for printing out a variable
fd16c54261b3 Initial load
duke
parents:
diff changeset
   398
%.printval:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   399
	@$(ECHO) "  ALT_$* - $($*.desc)"
fd16c54261b3 Initial load
duke
parents:
diff changeset
   400
	@$(ECHO) "  \t $*=$($*)"
fd16c54261b3 Initial load
duke
parents:
diff changeset
   401
fd16c54261b3 Initial load
duke
parents:
diff changeset
   402
# Pattern rule for checking to see if a variable with a directory exists
fd16c54261b3 Initial load
duke
parents:
diff changeset
   403
%.checkdir:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   404
	@if [ ! -d $($*) ] ; then \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   405
	    $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   406
	fi
fd16c54261b3 Initial load
duke
parents:
diff changeset
   407
fd16c54261b3 Initial load
duke
parents:
diff changeset
   408
# Pattern rule for checking to see if a variable with a file exists
fd16c54261b3 Initial load
duke
parents:
diff changeset
   409
%.checkfil:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   410
	@if [ ! -f $($*) ] ; then \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   411
	    $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   412
	fi
fd16c54261b3 Initial load
duke
parents:
diff changeset
   413
fd16c54261b3 Initial load
duke
parents:
diff changeset
   414
# Misc notes on help
fd16c54261b3 Initial load
duke
parents:
diff changeset
   415
notes_help:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   416
	@$(ECHO) "\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   417
--- Notes --- \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   418
- All builds use same output directory unless overridden with \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   419
 \t ALT_OUTPUTDIR=<dir>, changing from product to fastdebug you may want \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   420
 \t to use the clean target first. \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   421
- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   422
 \t builds or previous release JDK builds will work. \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   423
- The fastest builds have been when the sources and the BOOTDIR are on \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   424
 \t local disk. \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   425
"
fd16c54261b3 Initial load
duke
parents:
diff changeset
   426
fd16c54261b3 Initial load
duke
parents:
diff changeset
   427
examples_help:
fd16c54261b3 Initial load
duke
parents:
diff changeset
   428
	@$(ECHO) "\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   429
--- Examples --- \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   430
  $(MAKE) fastdebug_build \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   431
  $(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   432
  $(MAKE) ALT_OUTPUTDIR=/tmp/foobar fastdebug_build \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   433
  $(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   434
  $(MAKE) ALT_BOOTDIR=/opt/java/jdk1.5.0 \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   435
  $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk1.6.0 \n\
fd16c54261b3 Initial load
duke
parents:
diff changeset
   436
"
fd16c54261b3 Initial load
duke
parents:
diff changeset
   437
fd16c54261b3 Initial load
duke
parents:
diff changeset
   438
################################################################
7652
803a0c91a1a2 7008723: Remove binary plugs creation and use from openjdk
ohair
parents: 7649
diff changeset
   439
# Source bundling
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   440
################################################################
fd16c54261b3 Initial load
duke
parents:
diff changeset
   441
ifeq ($(BUNDLE_RULES_AVAILABLE), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   442
  include $(BUNDLE_RULES)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   443
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   444
fd16c54261b3 Initial load
duke
parents:
diff changeset
   445
################################################################
5743
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   446
# rule to test
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   447
################################################################
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   448
6623
b2e02fea81b0 6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents: 5743
diff changeset
   449
.NOTPARALLEL: test_run
5743
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   450
6623
b2e02fea81b0 6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents: 5743
diff changeset
   451
test:
b2e02fea81b0 6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents: 5743
diff changeset
   452
	$(MAKE) test_run
b2e02fea81b0 6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents: 5743
diff changeset
   453
b2e02fea81b0 6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents: 5743
diff changeset
   454
test_run: test_clean test_start test_summary
5743
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   455
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   456
test_start:
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   457
	@$(ECHO) "Tests started at `$(DATE)`"
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   458
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   459
test_clean:
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   460
	$(RM) $(OUTPUTDIR)/test_failures.txt $(OUTPUTDIR)/test_log.txt
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   461
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   462
test_summary: $(OUTPUTDIR)/test_failures.txt
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   463
	@$(ECHO) "#################################################"
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   464
	@$(ECHO) "Tests completed at `$(DATE)`"
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   465
	@( $(EGREP) '^TEST STATS:' $(OUTPUTDIR)/test_log.txt \
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   466
          || $(ECHO) "No TEST STATS seen in log" )
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   467
	@$(ECHO) "For complete details see: $(OUTPUTDIR)/test_log.txt"
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   468
	@$(ECHO) "#################################################"
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   469
	@if [ -s $< ] ; then                                           \
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   470
          $(ECHO) "ERROR: Test failure count: `$(CAT) $< | $(WC) -l`"; \
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   471
          $(CAT) $<;                                                   \
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   472
          exit 1;                                                      \
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   473
        else                                                           \
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   474
          $(ECHO) "Success! No failures detected";                     \
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   475
        fi
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   476
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   477
# Get failure list from log
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   478
$(OUTPUTDIR)/test_failures.txt: $(OUTPUTDIR)/test_log.txt
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   479
	@$(RM) $@
6623
b2e02fea81b0 6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents: 5743
diff changeset
   480
	@( $(EGREP) '^FAILED:' $< || $(ECHO) "" ) | $(NAWK) 'length>0' > $@
5743
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   481
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   482
# Get log file of all tests run
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   483
JDK_TO_TEST := $(shell 							\
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   484
  if [ -d "$(ABS_OUTPUTDIR)/j2sdk-image" ] ; then 			\
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   485
    $(ECHO) "$(ABS_OUTPUTDIR)/j2sdk-image"; 				\
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   486
  elif [ -d "$(ABS_OUTPUTDIR)/bin" ] ; then 				\
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   487
    $(ECHO) "$(ABS_OUTPUTDIR)"; 					\
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   488
  elif [ "$(PRODUCT_HOME)" != "" -a -d "$(PRODUCT_HOME)/bin" ] ; then 	\
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   489
    $(ECHO) "$(PRODUCT_HOME)"; 						\
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   490
  fi 									\
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   491
)
6623
b2e02fea81b0 6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents: 5743
diff changeset
   492
TEST_TARGETS=all
5743
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   493
$(OUTPUTDIR)/test_log.txt:
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   494
	$(RM) $@
6623
b2e02fea81b0 6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents: 5743
diff changeset
   495
	( $(CD) test &&                                                     \
b2e02fea81b0 6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents: 5743
diff changeset
   496
          $(MAKE) NO_STOPPING=- PRODUCT_HOME=$(JDK_TO_TEST) $(TEST_TARGETS) \
5743
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   497
        ) | tee $@
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   498
e14fbdea5504 6960853: Cleanup makefiles, remove unused vars etc.
ohair
parents: 5499
diff changeset
   499
################################################################
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   500
# JPRT rule to build
fd16c54261b3 Initial load
duke
parents:
diff changeset
   501
################################################################
fd16c54261b3 Initial load
duke
parents:
diff changeset
   502
fd16c54261b3 Initial load
duke
parents:
diff changeset
   503
include ./make/jprt.gmk
fd16c54261b3 Initial load
duke
parents:
diff changeset
   504
fd16c54261b3 Initial load
duke
parents:
diff changeset
   505
################################################################
fd16c54261b3 Initial load
duke
parents:
diff changeset
   506
#  PHONY
fd16c54261b3 Initial load
duke
parents:
diff changeset
   507
################################################################
fd16c54261b3 Initial load
duke
parents:
diff changeset
   508
6623
b2e02fea81b0 6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents: 5743
diff changeset
   509
.PHONY: all  test test_run test_start test_summary test_clean \
874
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   510
	generic_build_repo_series \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   511
	what clobber insane \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   512
        dev dev-build dev-sanity dev-clobber \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   513
        product_build \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   514
        fastdebug_build \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   515
        debug_build  \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   516
        build_product_image  \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   517
        build_debug_image  \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   518
        build_fastdebug_image \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   519
        create_fresh_product_bootdir \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   520
        create_fresh_debug_bootdir \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   521
        create_fresh_fastdebug_bootdir \
638ddad10e12 6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents: 668
diff changeset
   522
        generic_debug_build
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
   523
17
bb9f330cd95a 6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents: 16
diff changeset
   524
# Force target
bb9f330cd95a 6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents: 16
diff changeset
   525
FRC:
bb9f330cd95a 6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents: 16
diff changeset
   526