413 # basicvmtest (make sure various basic java options work) |
413 # basicvmtest (make sure various basic java options work) |
414 |
414 |
415 # Set up the directory in which the jvm directories live (client/, server/, etc.) |
415 # Set up the directory in which the jvm directories live (client/, server/, etc.) |
416 ifeq ($(PLATFORM),windows) |
416 ifeq ($(PLATFORM),windows) |
417 JVMS_DIR := $(PRODUCT_HOME)/bin |
417 JVMS_DIR := $(PRODUCT_HOME)/bin |
418 else ifeq ($(PLATFORM),bsd) |
418 else |
419 JVMS_DIR := $(PRODUCT_HOME)/lib |
419 JVMS_DIR := $(PRODUCT_HOME)/lib |
420 else |
|
421 # The jvms live in the architecture directory (amd64, sparcv9, |
|
422 # etc.). By using a wildcard there's no need to figure out the exact |
|
423 # name of that directory. |
|
424 JVMS_DIR := $(PRODUCT_HOME)/lib/* |
|
425 endif |
420 endif |
426 |
421 |
427 # Use the existance of a directory as a sign that jvm variant is available |
422 # Use the existance of a directory as a sign that jvm variant is available |
428 CANDIDATE_JVM_VARIANTS := client minimal server |
423 CANDIDATE_JVM_VARIANTS := client minimal server |
429 JVM_VARIANTS := $(strip $(foreach x,$(CANDIDATE_JVM_VARIANTS),$(if $(wildcard $(JVMS_DIR)/$(x)),$(x)))) |
424 JVM_VARIANTS := $(strip $(foreach x,$(CANDIDATE_JVM_VARIANTS),$(if $(wildcard $(JVMS_DIR)/$(x)),$(x)))) |