comparison make/linux/makefiles/buildtree.make @ 356:1ee8caae33af

Merge
author tonyp
date Thu, 21 Aug 2008 23:36:31 -0400
parents 9c2ecc2ffb12
children 354d3184f6b2
comparison
equal deleted inserted replaced
355:0edda524b58c 356:1ee8caae33af
1 # 1 #
2 # Copyright 2005-2007 Sun Microsystems, Inc. All Rights Reserved. 2 # Copyright 2005-2008 Sun Microsystems, Inc. All Rights Reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. 7 # published by the Free Software Foundation.
326 JAVA_FLAG/64 = -d64 326 JAVA_FLAG/64 = -d64
327 327
328 WRONG_DATA_MODE_MSG = \ 328 WRONG_DATA_MODE_MSG = \
329 echo "JAVA_HOME must point to $(DATA_MODE)bit JDK." 329 echo "JAVA_HOME must point to $(DATA_MODE)bit JDK."
330 330
331 test_gamma: $(BUILDTREE_MAKE) 331 test_gamma: $(BUILDTREE_MAKE) $(GAMMADIR)/make/test/Queens.java
332 @echo Creating $@ ... 332 @echo Creating $@ ...
333 $(QUIETLY) ( \ 333 $(QUIETLY) ( \
334 echo '#!/bin/sh'; \ 334 echo '#!/bin/sh'; \
335 $(BUILDTREE_COMMENT); \ 335 $(BUILDTREE_COMMENT); \
336 echo '. ./env.sh'; \ 336 echo '. ./env.sh'; \
337 echo "if [ -z \$$JAVA_HOME ]; then { $(NO_JAVA_HOME_MSG); exit 0; }; fi"; \ 337 echo "if [ -z \$$JAVA_HOME ]; then { $(NO_JAVA_HOME_MSG); exit 0; }; fi"; \
338 echo "if ! \$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion 2>1 > /dev/null"; \ 338 echo "if ! \$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion 2>&1 > /dev/null"; \
339 echo "then"; \ 339 echo "then"; \
340 echo " $(WRONG_DATA_MODE_MSG); exit 0;"; \ 340 echo " $(WRONG_DATA_MODE_MSG); exit 0;"; \
341 echo "fi"; \ 341 echo "fi"; \
342 echo 'CLASSPATH="$(GAMMADIR)/make/$(OS_FAMILY):$$CLASSPATH"'; \ 342 echo "rm -f Queens.class"; \
343 echo "\$${JAVA_HOME}/bin/javac -d . $(GAMMADIR)/make/test/Queens.java"; \
343 echo '[ -f gamma_g ] && { gamma=gamma_g; }'; \ 344 echo '[ -f gamma_g ] && { gamma=gamma_g; }'; \
344 echo './$${gamma:-gamma} $(TESTFLAGS) Queens < /dev/null'; \ 345 echo './$${gamma:-gamma} $(TESTFLAGS) Queens < /dev/null'; \
345 ) > $@ 346 ) > $@
346 $(QUIETLY) chmod +x $@ 347 $(QUIETLY) chmod +x $@
347 348