jdk/make/java/jvm/Makefile
changeset 8792 cd1dceb2d665
parent 5506 202f599c92aa
child 8793 a25480ff1a6b
equal deleted inserted replaced
8788:b98f18278dc4 8792:cd1dceb2d665
     1 #
     1 #
     2 # Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 1995, 2011, Oracle and/or its affiliates. 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.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
    42 	$(install-non-module-file)
    42 	$(install-non-module-file)
    43 
    43 
    44 $(PLATFORM_INCLUDE)/%.h: $(PLATFORM_SRC)/javavm/export/%.h
    44 $(PLATFORM_INCLUDE)/%.h: $(PLATFORM_SRC)/javavm/export/%.h
    45 	$(install-non-module-file)
    45 	$(install-non-module-file)
    46 
    46 
    47 JVMCFG = $(LIBDIR)/$(LIBARCH)/jvm.cfg
    47 JVMCFG_DIR = $(LIBDIR)/$(LIBARCH)
       
    48 JVMCFG = $(JVMCFG_DIR)/jvm.cfg
    48 
    49 
    49 #
    50 #
    50 # How to install jvm.cfg.
    51 # How to install jvm.cfg.
    51 #
    52 #
    52 ifeq ($(ZERO_BUILD), true)
    53 ifeq ($(ZERO_BUILD), true)
    53 JVMCFG_ARCH = zero
    54 JVMCFG_ARCH = zero
    54 else
    55 else
    55 JVMCFG_ARCH = $(ARCH)
    56 JVMCFG_ARCH = $(ARCH)
    56 endif
    57 endif
    57 
    58 
       
    59 ifdef BUILD_CLIENT_ONLY
       
    60 $(JVMCFG)::
       
    61 	$(MKDIR) -p $(JVMCFG_DIR)
       
    62 	@# Update jvm.cfg to use -client by default and alias -server to -client
       
    63 	$(RM) -f $(JVMCFG)
       
    64 	$(ECHO) "-client KNOWN">$(JVMCFG)
       
    65 	$(ECHO) "-server ALIASED_TO -client">>$(JVMCFG)
       
    66 	$(ECHO) "-hotspot ALIASED_TO -client">>$(JVMCFG)
       
    67 	$(ECHO) "-classic WARN">>$(JVMCFG)
       
    68 	$(ECHO) "-native ERROR">>$(JVMCFG)
       
    69 	$(ECHO) "-green ERROR">>$(JVMCFG)
       
    70 else
    58 $(JVMCFG): $(PLATFORM_SRC)/bin/$(JVMCFG_ARCH)/jvm.cfg
    71 $(JVMCFG): $(PLATFORM_SRC)/bin/$(JVMCFG_ARCH)/jvm.cfg
    59 	$(install-file)
    72 	$(install-file)
       
    73 endif
    60 
    74 
    61 all: build
    75 all: build
    62 
    76 
    63 build: $(FILES_h) $(JVMCFG)
    77 build: $(FILES_h) $(JVMCFG)
    64 
    78