langtools/make/Makefile
author mchung
Tue, 01 May 2012 19:45:34 -0700
changeset 12559 9456ceada8b1
parent 7847 5d1dad3342a3
child 21887 8dc93a1c9782
permissions -rw-r--r--
7164376: Replace use of sun.security.action.LoadLibraryAction with System.loadLibrary Reviewed-by: alanb, mullan, prr
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
#
7681
1f0819a3341f 6962318: Update copyright year
ohair
parents: 5854
diff changeset
     2
# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
#
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5219
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5219
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
#
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5219
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5219
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5219
diff changeset
    23
# questions.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
# Makefile for langtools: wrapper around Ant build.xml file
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
#
5848
c5a4ce47e780 6960407: Potential rebranding issues in openjdk/langtools repository sources
jjg
parents: 5520
diff changeset
    29
# On Solaris, the standard 'make' utility will not work with these makefiles.
c5a4ce47e780 6960407: Potential rebranding issues in openjdk/langtools repository sources
jjg
parents: 5520
diff changeset
    30
#    This little rule is only understood by Solaris make, and is harmless
c5a4ce47e780 6960407: Potential rebranding issues in openjdk/langtools repository sources
jjg
parents: 5520
diff changeset
    31
#    when seen by the GNU make tool. If using Solaris make, this causes the
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
#    make command to fail.
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
SUN_MAKE_TEST:sh = @echo "ERROR: PLEASE USE GNU VERSION OF MAKE"; exit 33
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
# Minimal platform defs
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
# Need FullPath because we can't rely on gnumake abspath, until we use v3.81
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    40
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
SYSTEM_UNAME := $(shell uname)
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
5854
5dc61238219e 6962540: langtools Makefile sets DEV_NULL incorrectly
jjg
parents: 5848
diff changeset
    43
# Where is unwanted output to be delivered?
5dc61238219e 6962540: langtools Makefile sets DEV_NULL incorrectly
jjg
parents: 5848
diff changeset
    44
# On Windows, MKS uses the special file "NUL", cygwin uses the customary unix file.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
ifeq ($(SYSTEM_UNAME), Windows_NT)
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
DEV_NULL = NUL
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
else
5854
5dc61238219e 6962540: langtools Makefile sets DEV_NULL incorrectly
jjg
parents: 5848
diff changeset
    48
DEV_NULL = /dev/null 
5dc61238219e 6962540: langtools Makefile sets DEV_NULL incorrectly
jjg
parents: 5848
diff changeset
    49
endif
5dc61238219e 6962540: langtools Makefile sets DEV_NULL incorrectly
jjg
parents: 5848
diff changeset
    50
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
ifneq (,$(findstring CYGWIN,$(SYSTEM_UNAME)))
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
USING_CYGWIN = true
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
endif
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
ifdef USING_CYGWIN
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
define FullPath
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
$(shell cygpath -a -s -m $1 2> $(DEV_NULL))
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
endef
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
else
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
define FullPath
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
$(shell cd $1 2> $(DEV_NULL) && pwd)
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
endef
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
endif
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
# Makefile args
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
#
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
06bc494ca11e Initial load
duke
parents:
diff changeset
    69
ifdef QUIET
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
  ANT_OPTIONS += -quiet
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
endif
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
ifdef VERBOSE
4941
37df21e3fdb7 6928623: Behaviour of VERBOSE=true on langtools build
andrew
parents: 4697
diff changeset
    74
  ANT_OPTIONS += -verbose -debug
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
endif
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
ifdef JDK_VERSION
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
  ANT_OPTIONS += -Djdk.version=$(JDK_VERSION)
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
endif 
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
ifdef FULL_VERSION
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
  ANT_OPTIONS += -Dfull.version='$(FULL_VERSION)' # will contain spaces
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
endif 
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
ifdef MILESTONE
1650
980a667baa29 6778493: Fix (langtools) ant build to honor fcs MILESTONE setting
jjg
parents: 10
diff changeset
    86
ifneq ($(MILESTONE),fcs)
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
  ANT_OPTIONS += -Dmilestone=$(MILESTONE)
1650
980a667baa29 6778493: Fix (langtools) ant build to honor fcs MILESTONE setting
jjg
parents: 10
diff changeset
    88
else
980a667baa29 6778493: Fix (langtools) ant build to honor fcs MILESTONE setting
jjg
parents: 10
diff changeset
    89
  ANT_OPTIONS += -Drelease=$(JDK_VERSION)
980a667baa29 6778493: Fix (langtools) ant build to honor fcs MILESTONE setting
jjg
parents: 10
diff changeset
    90
endif
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
endif
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
ifdef BUILD_NUMBER
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
  ANT_OPTIONS += -Dbuild.number=$(BUILD_NUMBER)
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
else
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
  ifdef JDK_BUILD_NUMBER
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
    ANT_OPTIONS += -Dbuild.number=$(JDK_BUILD_NUMBER)
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
  endif
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
endif
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
ifeq ($(VARIANT), DBG)
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
  ANT_OPTIONS += -Djavac.debug=true
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
else
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
  ifeq ($(VARIANT), OPT)
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
    ANT_OPTIONS += -Djavac.debug=false
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
  endif
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
endif
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
2848
98fc22703cbc 6829575: 100028: Debug information is incomplete or missing
aph
parents: 1650
diff changeset
   109
ifeq ($(DEBUG_CLASSFILES), true)
98fc22703cbc 6829575: 100028: Debug information is incomplete or missing
aph
parents: 1650
diff changeset
   110
  ANT_OPTIONS += -Djavac.debug=true
2850
307d7719ccb7 6837665: Deal with windows ant problem where commas in -D options do not work
aph
parents: 2849
diff changeset
   111
  ANT_OPTIONS += -Ddebug.classfiles=true
2848
98fc22703cbc 6829575: 100028: Debug information is incomplete or missing
aph
parents: 1650
diff changeset
   112
endif
98fc22703cbc 6829575: 100028: Debug information is incomplete or missing
aph
parents: 1650
diff changeset
   113
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
# Note: jdk/make/common/Defs.gmk uses LANGUAGE_VERSION (-source NN)
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
# and the somewhat misnamed CLASS_VERSION (-target NN)
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
ifdef TARGET_CLASS_VERSION
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
  ANT_OPTIONS += -Djavac.target=$(TARGET_CLASS_VERSION)
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
else
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
  ifdef JAVAC_TARGET_ARG 
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
    ANT_OPTIONS += -Djavac.target=$(JAVAC_TARGET_ARG)
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
  endif
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
endif 
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
2982
090c71af18f6 6827026: Change javac source and target default to 7
jjg
parents: 1650
diff changeset
   124
ifdef SOURCE_LANGUAGE_VERSION
090c71af18f6 6827026: Change javac source and target default to 7
jjg
parents: 1650
diff changeset
   125
  ANT_OPTIONS += -Djavac.source=$(SOURCE_LANGUAGE_VERSION)
090c71af18f6 6827026: Change javac source and target default to 7
jjg
parents: 1650
diff changeset
   126
else
090c71af18f6 6827026: Change javac source and target default to 7
jjg
parents: 1650
diff changeset
   127
  ifdef JAVAC_SOURCE_ARG 
090c71af18f6 6827026: Change javac source and target default to 7
jjg
parents: 1650
diff changeset
   128
    ANT_OPTIONS += -Djavac.source=$(JAVAC_SOURCE_ARG)
090c71af18f6 6827026: Change javac source and target default to 7
jjg
parents: 1650
diff changeset
   129
  endif
090c71af18f6 6827026: Change javac source and target default to 7
jjg
parents: 1650
diff changeset
   130
endif 
090c71af18f6 6827026: Change javac source and target default to 7
jjg
parents: 1650
diff changeset
   131
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
ifdef ALT_BOOTDIR
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
  ANT_OPTIONS += -Dboot.java.home=$(ALT_BOOTDIR)
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
  ANT_JAVA_HOME = JAVA_HOME=$(ALT_BOOTDIR)
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
endif
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
4415
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   137
# To facilitate bootstrapping, much of langtools can be compiled with (just)
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   138
# a boot JDK. However, some source files need to be compiled against 
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   139
# new JDK API. In a bootstrap build, an import JDK may not be available,
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   140
# so build.xml can also build against the source files in a jdk repo,
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   141
# in which case it will automatically generate stub files for the new JDK API.
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   142
ifdef JDK_TOPDIR
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   143
  ANT_OPTIONS += -Dimport.jdk=$(JDK_TOPDIR)
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   144
else 
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   145
  ifdef ALT_JDK_TOPDIR
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   146
    ANT_OPTIONS += -Dimport.jdk=$(ALT_JDK_TOPDIR)
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   147
  else 
4697
6b2500c26d51 6915078: ALT_JDK_IMPORT_PATH typo in langtools/make/Makefile
jjg
parents: 4415
diff changeset
   148
    ifdef ALT_JDK_IMPORT_PATH
6b2500c26d51 6915078: ALT_JDK_IMPORT_PATH typo in langtools/make/Makefile
jjg
parents: 4415
diff changeset
   149
      ANT_OPTIONS += -Dimport.jdk=$(ALT_JDK_IMPORT_PATH)
4415
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   150
    endif
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   151
  endif
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   152
endif
7d4f73717fba 6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents: 2988
diff changeset
   153
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
ifdef ALT_OUTPUTDIR
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
  OUTPUTDIR = $(ALT_OUTPUTDIR)
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
  ANT_OPTIONS += -Dbuild.dir=$(ALT_OUTPUTDIR)/build
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
  ANT_OPTIONS += -Ddist.dir=$(ALT_OUTPUTDIR)/dist
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
else
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
  OUTPUTDIR = ..
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
endif
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
#ABS_OUTPUTDIR = $(abspath $(OUTPUTDIR))
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
ABS_OUTPUTDIR = $(call FullPath,$(OUTPUTDIR))
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
ANT_TMPDIR = $(ABS_OUTPUTDIR)/build/ant-tmp
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
ANT_OPTS = ANT_OPTS=-Djava.io.tmpdir='$(ANT_TMPDIR)'
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
ifdef FINDBUGS_HOME
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
  ANT_OPTIONS += -Dfindbugs.home=$(FINDBUGS_HOME)
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
endif
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
ifdef ANT_HOME
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
  ANT = $(ANT_HOME)/bin/ant
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
  ifneq ($(shell test -x $(ANT) && echo OK), OK)
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
    $(error $(ANT) not found -- please update ANT_HOME)
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
  endif
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
else
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
  ANT = ant
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
  ifneq ($(shell test -x "`which $(ANT)`" && echo OK), OK)
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
    $(error 'ant' not found -- please set ANT_HOME or put 'ant' on your PATH)
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
  endif
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
endif
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
# Default target and expected 'do everything' target
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
all: build
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
# Standard make clobber target
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
clobber: clean
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
# All ant targets of interest
7843
1103fac3fb5a 7008378: javac bootstrap launcher fails on cygwin when called via an absolute path
jjh
parents: 5854
diff changeset
   190
ANT_TARGETS = build clean sanity post-sanity diagnostics build-all-tools  # for now
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
5219
6765bf7b1023 6938326: Use of "ant -diagnostics" a problem with ant 1.8.0, exit code 1 now
ohair
parents: 4941
diff changeset
   192
# Create diagnostics log (careful, ant 1.8.0 -diagnostics always does an exit 1)
6765bf7b1023 6938326: Use of "ant -diagnostics" a problem with ant 1.8.0, exit code 1 now
ohair
parents: 4941
diff changeset
   193
$(OUTPUTDIR)/build/ant-diagnostics.log:
6765bf7b1023 6938326: Use of "ant -diagnostics" a problem with ant 1.8.0, exit code 1 now
ohair
parents: 4941
diff changeset
   194
	@mkdir -p $(OUTPUTDIR)/build $(ANT_TMPDIR)
6765bf7b1023 6938326: Use of "ant -diagnostics" a problem with ant 1.8.0, exit code 1 now
ohair
parents: 4941
diff changeset
   195
	@$(RM) $@
6765bf7b1023 6938326: Use of "ant -diagnostics" a problem with ant 1.8.0, exit code 1 now
ohair
parents: 4941
diff changeset
   196
	$(ANT_JAVA_HOME) $(ANT_OPTS) $(ANT) -diagnostics > $@ ; \
6765bf7b1023 6938326: Use of "ant -diagnostics" a problem with ant 1.8.0, exit code 1 now
ohair
parents: 4941
diff changeset
   197
	  $(ANT_JAVA_HOME) $(ANT_OPTS) $(ANT) -version >> $@
6765bf7b1023 6938326: Use of "ant -diagnostics" a problem with ant 1.8.0, exit code 1 now
ohair
parents: 4941
diff changeset
   198
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
# Create a make target for each
5219
6765bf7b1023 6938326: Use of "ant -diagnostics" a problem with ant 1.8.0, exit code 1 now
ohair
parents: 4941
diff changeset
   200
$(ANT_TARGETS): $(OUTPUTDIR)/build/ant-diagnostics.log
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
	@ mkdir -p $(OUTPUTDIR)/build $(ANT_TMPDIR)
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
	$(ANT_JAVA_HOME) $(ANT_OPTS) $(ANT) $(ANT_OPTIONS) $@
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
#-------------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
#
5848
c5a4ce47e780 6960407: Potential rebranding issues in openjdk/langtools repository sources
jjg
parents: 5520
diff changeset
   206
# Targets for Oracle's internal JPRT build system
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
CD = cd
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
ZIP = zip
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
JPRT_ARCHIVE_BUNDLE=$(ABS_OUTPUTDIR)/$(JPRT_BUILD_FLAVOR)-bundle.zip
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
jprt_build_product jprt_build_debug jprt_build_fastdebug: all
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
	( $(CD) $(OUTPUTDIR) && \
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
	  $(ZIP) -q -r $(JPRT_ARCHIVE_BUNDLE) build dist )
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
#-------------------------------------------------------------------
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
# Declare these phony (not filenames)
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
.PHONY: $(ANT_TARGETS) all clobber \
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
	jprt_build_product jprt_build_debug jprt_build_fastdebug