annotate make/linux/makefiles/buildtree.make @ 1949:0a8e0d4345b3

7010068: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - first pass Summary: Update the copyright to be 2010 on all changed files in OpenJDK Reviewed-by: jcoomes
author trims
date Mon, 03 Jan 2011 15:30:05 -0800
parents 2ca799d83d3c
children b92c45f2bc75
rev   line source
duke@0 1 #
stefank@1879 2 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
duke@0 7 # published by the Free Software Foundation.
duke@0 8 #
duke@0 9 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 12 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 13 # accompanied this code).
duke@0 14 #
duke@0 15 # You should have received a copy of the GNU General Public License version
duke@0 16 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 18 #
trims@1472 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1472 20 # or visit www.oracle.com if you need additional information or have any
trims@1472 21 # questions.
duke@0 22 #
duke@0 23 #
duke@0 24
duke@0 25 # Usage:
duke@0 26 #
duke@0 27 # $(MAKE) -f buildtree.make ARCH=arch BUILDARCH=buildarch LIBARCH=libarch
duke@0 28 # GAMMADIR=dir OS_FAMILY=os VARIANT=variant
duke@0 29 #
duke@0 30 # The macros ARCH, GAMMADIR, OS_FAMILY and VARIANT must be defined in the
duke@0 31 # environment or on the command-line:
duke@0 32 #
duke@0 33 # ARCH - sparc, i486, ... HotSpot cpu and os_cpu source directory
duke@0 34 # BUILDARCH - build directory
duke@0 35 # LIBARCH - the corresponding directory in JDK/JRE
duke@0 36 # GAMMADIR - top of workspace
duke@0 37 # OS_FAMILY - operating system
duke@0 38 # VARIANT - core, compiler1, compiler2, or tiered
duke@0 39 # HOTSPOT_RELEASE_VERSION - <major>.<minor>-b<nn> (11.0-b07)
ohair@1884 40 # HOTSPOT_BUILD_VERSION - internal, internal-$(USER_RELEASE_SUFFIX) or empty
duke@0 41 # JRE_RELEASE_VERSION - <major>.<minor>.<micro> (1.7.0)
duke@0 42 #
duke@0 43 # Builds the directory trees with makefiles plus some convenience files in
duke@0 44 # each directory:
duke@0 45 #
duke@0 46 # Makefile - for "make foo"
duke@0 47 # flags.make - with macro settings
duke@0 48 # vm.make - to support making "$(MAKE) -v vm.make" in makefiles
duke@0 49 # adlc.make -
duke@0 50 # jvmti.make - generate JVMTI bindings from the spec (JSR-163)
duke@0 51 # sa.make - generate SA jar file and natives
duke@0 52 # env.[ck]sh - environment settings
duke@0 53 # test_gamma - script to run the Queens program
duke@0 54 #
duke@0 55 # The makefiles are split this way so that "make foo" will run faster by not
duke@0 56 # having to read the dependency files for the vm.
duke@0 57
duke@0 58 include $(GAMMADIR)/make/scm.make
duke@0 59
duke@0 60 # 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details.
duke@0 61 QUIETLY$(MAKE_VERBOSE) = @
duke@0 62
duke@0 63 # For now, until the compiler is less wobbly:
duke@0 64 TESTFLAGS = -Xbatch -showversion
duke@0 65
never@1010 66 ifeq ($(ZERO_BUILD), true)
never@1010 67 PLATFORM_FILE = $(shell dirname $(shell dirname $(shell pwd)))/platform_zero
dcubed@50 68 else
never@1010 69 ifdef USE_SUNCC
never@1010 70 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH).suncc
never@1010 71 else
never@1010 72 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH)
never@1010 73 endif
never@1010 74 endif
never@1010 75
never@1010 76 # Allow overriding of the arch part of the directory but default
never@1010 77 # to BUILDARCH if nothing is specified
never@1010 78 ifeq ($(VARIANTARCH),)
never@1010 79 VARIANTARCH=$(BUILDARCH)
dcubed@50 80 endif
duke@0 81
duke@0 82 ifdef FORCE_TIERED
duke@0 83 ifeq ($(VARIANT),tiered)
never@1010 84 PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_compiler2
duke@0 85 else
never@1010 86 PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT)
duke@0 87 endif
duke@0 88 else
never@1010 89 PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT)
duke@0 90 endif
duke@0 91
duke@0 92 #
duke@0 93 # We do two levels of exclusion in the shared directory.
duke@0 94 # TOPLEVEL excludes are pruned, they are not recursively searched,
duke@0 95 # but lower level directories can be named without fear of collision.
duke@0 96 # ALWAYS excludes are excluded at any level in the directory tree.
duke@0 97 #
duke@0 98
duke@0 99 ALWAYS_EXCLUDE_DIRS = $(SCM_DIRS)
duke@0 100
duke@0 101 ifeq ($(VARIANT),tiered)
duke@0 102 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name agent
duke@0 103 else
duke@0 104 ifeq ($(VARIANT),compiler2)
duke@0 105 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name c1 -o -name agent
duke@0 106 else
duke@0 107 # compiler1 and core use the same exclude list
duke@0 108 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name opto -o -name libadt -o -name agent
duke@0 109 endif
duke@0 110 endif
duke@0 111
duke@0 112 # Get things from the platform file.
duke@0 113 COMPILER = $(shell sed -n 's/^compiler[ ]*=[ ]*//p' $(PLATFORM_FILE))
duke@0 114
duke@0 115 SIMPLE_DIRS = \
stefank@1879 116 $(PLATFORM_DIR)/generated/dependencies \
duke@0 117 $(PLATFORM_DIR)/generated/adfiles \
duke@0 118 $(PLATFORM_DIR)/generated/jvmtifiles
duke@0 119
duke@0 120 TARGETS = debug fastdebug jvmg optimized product profiled
duke@0 121 SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS))
duke@0 122
duke@0 123 # For dependencies and recursive makes.
kamg@91 124 BUILDTREE_MAKE = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make
duke@0 125
duke@0 126 BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make sa.make \
sla@1934 127 env.sh env.csh jdkpath.sh .dbxrc test_gamma
duke@0 128
duke@0 129 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
duke@0 130 ARCH=$(ARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
duke@0 131
duke@0 132 # Define variables to be set in flags.make.
duke@0 133 # Default values are set in make/defs.make.
duke@0 134 ifeq ($(HOTSPOT_BUILD_VERSION),)
duke@0 135 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)
duke@0 136 else
duke@0 137 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
duke@0 138 endif
duke@0 139 # Set BUILD_USER from system-dependent hints: $LOGNAME, $(whoami)
duke@0 140 ifndef HOTSPOT_BUILD_USER
duke@0 141 HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME)
duke@0 142 endif
duke@0 143 ifndef HOTSPOT_BUILD_USER
duke@0 144 HOTSPOT_BUILD_USER := $(shell whoami)
duke@0 145 endif
kamg@91 146 # Define HOTSPOT_VM_DISTRO based on settings in make/openjdk_distro
kamg@91 147 # or make/hotspot_distro.
duke@0 148 ifndef HOTSPOT_VM_DISTRO
duke@0 149 CLOSED_DIR_EXISTS := $(shell \
kamg@91 150 if [ -d $(GAMMADIR)/src/closed ] ; then \
duke@0 151 echo true; \
duke@0 152 else \
duke@0 153 echo false; \
duke@0 154 fi)
duke@0 155 ifeq ($(CLOSED_DIR_EXISTS), true)
kamg@91 156 include $(GAMMADIR)/make/hotspot_distro
duke@0 157 else
kamg@91 158 include $(GAMMADIR)/make/openjdk_distro
duke@0 159 endif
duke@0 160 endif
duke@0 161
duke@0 162 BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HS_BUILD_VER) HOTSPOT_BUILD_VERSION= JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
duke@0 163
duke@0 164 BUILDTREE = \
duke@0 165 $(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS)
duke@0 166
duke@0 167 BUILDTREE_COMMENT = echo "\# Generated by $(BUILDTREE_MAKE)"
duke@0 168
duke@0 169 all: $(SUBMAKE_DIRS)
duke@0 170
duke@0 171 # Run make in each subdirectory recursively.
duke@0 172 $(SUBMAKE_DIRS): $(SIMPLE_DIRS) FORCE
duke@0 173 $(QUIETLY) [ -d $@ ] || { mkdir -p $@; }
duke@0 174 $(QUIETLY) cd $@ && $(BUILDTREE) TARGET=$(@F)
duke@0 175 $(QUIETLY) touch $@
duke@0 176
duke@0 177 $(SIMPLE_DIRS):
duke@0 178 $(QUIETLY) mkdir -p $@
duke@0 179
duke@0 180 flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
duke@0 181 @echo Creating $@ ...
duke@0 182 $(QUIETLY) ( \
duke@0 183 $(BUILDTREE_COMMENT); \
duke@0 184 echo; \
duke@0 185 echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \
duke@0 186 sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \
duke@0 187 echo; \
duke@0 188 echo "GAMMADIR = $(GAMMADIR)"; \
duke@0 189 echo "SYSDEFS = \$$(Platform_sysdefs)"; \
duke@0 190 echo "SRCARCH = $(ARCH)"; \
duke@0 191 echo "BUILDARCH = $(BUILDARCH)"; \
duke@0 192 echo "LIBARCH = $(LIBARCH)"; \
duke@0 193 echo "TARGET = $(TARGET)"; \
duke@0 194 echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \
duke@0 195 echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \
duke@0 196 echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \
duke@0 197 echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \
duke@0 198 echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \
duke@0 199 echo; \
stefank@1879 200 echo "# Used for platform dispatching"; \
stefank@1879 201 echo "TARGET_DEFINES = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \
stefank@1879 202 echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \
stefank@1879 203 echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \
stefank@1879 204 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_\$$(Platform_os_arch)"; \
stefank@1879 205 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_MODEL_\$$(Platform_os_arch_model)"; \
stefank@1879 206 echo "TARGET_DEFINES += -DTARGET_COMPILER_\$$(Platform_compiler)"; \
stefank@1879 207 echo "CFLAGS += \$$(TARGET_DEFINES)"; \
stefank@1879 208 echo; \
stefank@1879 209 echo "Src_Dirs_V = \\"; \
duke@0 210 sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \
duke@0 211 echo "\$$(GAMMADIR)/src/cpu/$(ARCH)/vm \\"; \
duke@0 212 echo "\$$(GAMMADIR)/src/os/$(OS_FAMILY)/vm \\"; \
duke@0 213 echo "\$$(GAMMADIR)/src/os_cpu/$(OS_FAMILY)_$(ARCH)/vm"; \
stefank@1879 214 echo; \
stefank@1879 215 echo "Src_Dirs_I = \\"; \
stefank@1879 216 echo "\$$(GAMMADIR)/src/share/vm \\"; \
stefank@1879 217 echo "\$$(GAMMADIR)/src/share/vm/prims \\"; \
stefank@1879 218 echo "\$$(GAMMADIR)/src/cpu/$(ARCH)/vm \\"; \
stefank@1879 219 echo "\$$(GAMMADIR)/src/os/$(OS_FAMILY)/vm \\"; \
stefank@1879 220 echo "\$$(GAMMADIR)/src/os_cpu/$(OS_FAMILY)_$(ARCH)/vm"; \
duke@0 221 [ -n "$(CFLAGS_BROWSE)" ] && \
duke@0 222 echo && echo "CFLAGS_BROWSE = $(CFLAGS_BROWSE)"; \
duke@0 223 [ -n "$(HOTSPOT_EXTRA_SYSDEFS)" ] && \
duke@0 224 echo && \
duke@0 225 echo "HOTSPOT_EXTRA_SYSDEFS\$$(HOTSPOT_EXTRA_SYSDEFS) = $(HOTSPOT_EXTRA_SYSDEFS)" && \
duke@0 226 echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \
duke@0 227 echo; \
kamg@91 228 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \
kamg@91 229 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \
duke@0 230 ) > $@
duke@0 231
duke@0 232 flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
duke@0 233 @echo Creating $@ ...
duke@0 234 $(QUIETLY) ( \
duke@0 235 $(BUILDTREE_COMMENT); \
duke@0 236 echo; \
duke@0 237 [ "$(TARGET)" = profiled ] && \
kamg@91 238 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/optimized.make"; \
kamg@91 239 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(TARGET).make"; \
duke@0 240 ) > $@
duke@0 241
duke@0 242 ../shared_dirs.lst: $(BUILDTREE_MAKE) $(GAMMADIR)/src/share/vm
duke@0 243 @echo Creating directory list $@
duke@0 244 $(QUIETLY) find $(GAMMADIR)/src/share/vm/* -prune \
duke@0 245 -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \
duke@0 246 \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; > $@
duke@0 247
duke@0 248 Makefile: $(BUILDTREE_MAKE)
duke@0 249 @echo Creating $@ ...
duke@0 250 $(QUIETLY) ( \
duke@0 251 $(BUILDTREE_COMMENT); \
duke@0 252 echo; \
duke@0 253 echo include flags.make; \
duke@0 254 echo; \
kamg@91 255 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/top.make"; \
duke@0 256 ) > $@
duke@0 257
duke@0 258 vm.make: $(BUILDTREE_MAKE)
duke@0 259 @echo Creating $@ ...
duke@0 260 $(QUIETLY) ( \
duke@0 261 $(BUILDTREE_COMMENT); \
duke@0 262 echo; \
duke@0 263 echo include flags.make; \
duke@0 264 echo include flags_vm.make; \
duke@0 265 echo; \
kamg@91 266 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
duke@0 267 ) > $@
duke@0 268
duke@0 269 adlc.make: $(BUILDTREE_MAKE)
duke@0 270 @echo Creating $@ ...
duke@0 271 $(QUIETLY) ( \
duke@0 272 $(BUILDTREE_COMMENT); \
duke@0 273 echo; \
duke@0 274 echo include flags.make; \
duke@0 275 echo; \
kamg@91 276 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
duke@0 277 ) > $@
duke@0 278
duke@0 279 jvmti.make: $(BUILDTREE_MAKE)
duke@0 280 @echo Creating $@ ...
duke@0 281 $(QUIETLY) ( \
duke@0 282 $(BUILDTREE_COMMENT); \
duke@0 283 echo; \
duke@0 284 echo include flags.make; \
duke@0 285 echo; \
kamg@91 286 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
duke@0 287 ) > $@
duke@0 288
duke@0 289 sa.make: $(BUILDTREE_MAKE)
duke@0 290 @echo Creating $@ ...
duke@0 291 $(QUIETLY) ( \
duke@0 292 $(BUILDTREE_COMMENT); \
duke@0 293 echo; \
duke@0 294 echo include flags.make; \
duke@0 295 echo; \
kamg@91 296 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
duke@0 297 ) > $@
duke@0 298
duke@0 299 env.sh: $(BUILDTREE_MAKE)
duke@0 300 @echo Creating $@ ...
duke@0 301 $(QUIETLY) ( \
duke@0 302 $(BUILDTREE_COMMENT); \
duke@0 303 [ -n "$$JAVA_HOME" ] && { echo ": \$${JAVA_HOME:=$${JAVA_HOME}}"; }; \
duke@0 304 { \
duke@0 305 echo "LD_LIBRARY_PATH=.:$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}\$${JAVA_HOME}/jre/lib/${LIBARCH}/native_threads:\$${JAVA_HOME}/jre/lib/${LIBARCH}:${GCC_LIB}"; \
duke@0 306 echo "CLASSPATH=$${CLASSPATH:+$$CLASSPATH:}.:\$${JAVA_HOME}/jre/lib/rt.jar:\$${JAVA_HOME}/jre/lib/i18n.jar"; \
duke@0 307 } | sed s:$${JAVA_HOME:--------}:\$${JAVA_HOME}:g; \
duke@0 308 echo "HOTSPOT_BUILD_USER=\"$${LOGNAME:-$$USER} in `basename $(GAMMADIR)`\""; \
duke@0 309 echo "export JAVA_HOME LD_LIBRARY_PATH CLASSPATH HOTSPOT_BUILD_USER"; \
duke@0 310 ) > $@
duke@0 311
duke@0 312 env.csh: env.sh
duke@0 313 @echo Creating $@ ...
duke@0 314 $(QUIETLY) ( \
duke@0 315 $(BUILDTREE_COMMENT); \
duke@0 316 [ -n "$$JAVA_HOME" ] && \
duke@0 317 { echo "if (! \$$?JAVA_HOME) setenv JAVA_HOME \"$$JAVA_HOME\""; }; \
duke@0 318 sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=/setenv \1 /p' $?; \
duke@0 319 ) > $@
duke@0 320
sla@1934 321 jdkpath.sh: $(BUILDTREE_MAKE)
sla@1934 322 @echo Creating $@ ...
sla@1934 323 $(QUIETLY) ( \
sla@1934 324 $(BUILDTREE_COMMENT); \
sla@1934 325 echo "JDK=${JAVA_HOME}"; \
sla@1934 326 ) > $@
sla@1934 327
duke@0 328 .dbxrc: $(BUILDTREE_MAKE)
duke@0 329 @echo Creating $@ ...
duke@0 330 $(QUIETLY) ( \
duke@0 331 echo "echo '# Loading $(PLATFORM_DIR)/$(TARGET)/.dbxrc'"; \
duke@0 332 echo "if [ -f \"\$${HOTSPOT_DBXWARE}\" ]"; \
duke@0 333 echo "then"; \
duke@0 334 echo " source \"\$${HOTSPOT_DBXWARE}\""; \
duke@0 335 echo "elif [ -f \"\$$HOME/.dbxrc\" ]"; \
duke@0 336 echo "then"; \
duke@0 337 echo " source \"\$$HOME/.dbxrc\""; \
duke@0 338 echo "fi"; \
duke@0 339 ) > $@
duke@0 340
duke@0 341 # Skip the test for product builds (which only work when installed in a JDK), to
duke@0 342 # avoid exiting with an error and causing make to halt.
duke@0 343 NO_TEST_MSG = \
duke@0 344 echo "$@: skipping the test--this build must be tested in a JDK."
duke@0 345
duke@0 346 NO_JAVA_HOME_MSG = \
duke@0 347 echo "JAVA_HOME must be set to run this test."
duke@0 348
duke@0 349 DATA_MODE = $(DATA_MODE/$(BUILDARCH))
duke@0 350 JAVA_FLAG = $(JAVA_FLAG/$(DATA_MODE))
duke@0 351
duke@0 352 DATA_MODE/i486 = 32
duke@0 353 DATA_MODE/sparc = 32
duke@0 354 DATA_MODE/sparcv9 = 64
duke@0 355 DATA_MODE/amd64 = 64
duke@0 356 DATA_MODE/ia64 = 64
never@1010 357 DATA_MODE/zero = $(ARCH_DATA_MODEL)
duke@0 358
duke@0 359 JAVA_FLAG/32 = -d32
duke@0 360 JAVA_FLAG/64 = -d64
duke@0 361
duke@0 362 WRONG_DATA_MODE_MSG = \
duke@0 363 echo "JAVA_HOME must point to $(DATA_MODE)bit JDK."
duke@0 364
bobv@1601 365 CROSS_COMPILING_MSG = \
bobv@1601 366 echo "Cross compiling for ARCH $(CROSS_COMPILE_ARCH), skipping gamma run."
bobv@1601 367
ohair@232 368 test_gamma: $(BUILDTREE_MAKE) $(GAMMADIR)/make/test/Queens.java
duke@0 369 @echo Creating $@ ...
duke@0 370 $(QUIETLY) ( \
duke@0 371 echo '#!/bin/sh'; \
duke@0 372 $(BUILDTREE_COMMENT); \
duke@0 373 echo '. ./env.sh'; \
bobv@1601 374 echo "if [ \"$(CROSS_COMPILE_ARCH)\" != \"\" ]; then { $(CROSS_COMPILING_MSG); exit 0; }; fi"; \
duke@0 375 echo "if [ -z \$$JAVA_HOME ]; then { $(NO_JAVA_HOME_MSG); exit 0; }; fi"; \
ohair@233 376 echo "if ! \$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion 2>&1 > /dev/null"; \
duke@0 377 echo "then"; \
duke@0 378 echo " $(WRONG_DATA_MODE_MSG); exit 0;"; \
duke@0 379 echo "fi"; \
ohair@232 380 echo "rm -f Queens.class"; \
ohair@232 381 echo "\$${JAVA_HOME}/bin/javac -d . $(GAMMADIR)/make/test/Queens.java"; \
duke@0 382 echo '[ -f gamma_g ] && { gamma=gamma_g; }'; \
duke@0 383 echo './$${gamma:-gamma} $(TESTFLAGS) Queens < /dev/null'; \
duke@0 384 ) > $@
duke@0 385 $(QUIETLY) chmod +x $@
duke@0 386
duke@0 387 FORCE:
duke@0 388
duke@0 389 .PHONY: all FORCE