hotspot/make/linux/makefiles/buildtree.make
changeset 781 e1baa9c8f16f
parent 670 ddf3e9583f2f
parent 780 cbe15531645c
child 4013 b154310845de
equal deleted inserted replaced
743:b8b10c2a28fd 781:e1baa9c8f16f
   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