6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA

Tue, 03 Feb 2009 08:10:28 -0800

author
twisti
date
Tue, 03 Feb 2009 08:10:28 -0800
changeset 995
b79faa366fbd
parent 994
7628781568e1
child 996
5bfdb08ea692

6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
Summary: The HotSpot tests Makefile has a hardcoded SLASH_JAVA which makes it difficult to run the tests on non-Sun build machines which do not have a /java infrastructure.
Reviewed-by: kamg

test/Makefile file | annotate | diff | comparison | revisions
     1.1 --- a/test/Makefile	Tue Feb 03 01:39:12 2009 -0800
     1.2 +++ b/test/Makefile	Tue Feb 03 08:10:28 2009 -0800
     1.3 @@ -28,9 +28,9 @@
     1.4  
     1.5  # Get OS/ARCH specifics
     1.6  OSNAME = $(shell uname -s)
     1.7 -SLASH_JAVA = /java
     1.8  ifeq ($(OSNAME), SunOS)
     1.9    PLATFORM = solaris
    1.10 +  SLASH_JAVA = /java
    1.11    ARCH = $(shell uname -p)
    1.12    ifeq ($(ARCH), i386)
    1.13      ARCH=i586
    1.14 @@ -38,6 +38,7 @@
    1.15  endif
    1.16  ifeq ($(OSNAME), Linux)
    1.17    PLATFORM = linux
    1.18 +  SLASH_JAVA = /java
    1.19    ARCH = $(shell uname -m)
    1.20    ifeq ($(ARCH), i386)
    1.21      ARCH = i586
    1.22 @@ -62,6 +63,10 @@
    1.23    EXESUFFIX = .exe
    1.24  endif
    1.25  
    1.26 +ifdef ALT_SLASH_JAVA
    1.27 +  SLASH_JAVA = $(ALT_SLASH_JAVA)
    1.28 +endif
    1.29 +
    1.30  # Utilities used
    1.31  CD    = cd
    1.32  CP    = cp

mercurial