make/Install.gmk
author thartmann
Fri, 06 Jan 2017 10:55:30 +0100
changeset 43429 1960562230bb
parent 33926 3a19edba4808
permissions -rw-r--r--
8171435: "assert(is_single_cpu() && !is_virtual()) failed: type check" with -XX:+PatchALot on SPARC Summary: Fixed several issues with PatchALot or unaligned accesses on SPARC. Reviewed-by: kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     1
#
33926
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25854
diff changeset
     2
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     4
#
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    10
#
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    15
# accompanied this code).
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    16
#
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    20
#
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    23
# questions.
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    24
#
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    25
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    26
default: install
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    27
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    28
include $(SPEC)
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    29
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    30
BINARIES := $(notdir $(wildcard $(JDK_IMAGE_DIR)/bin/*))
33926
3a19edba4808 8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents: 25854
diff changeset
    31
INSTALLDIR := openjdk-$(VERSION_SHORT)
25854
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    32
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    33
# Install the jdk image, in a very crude way. Not taking into
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    34
# account, how to install properly on macosx or windows etc.
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    35
install:
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    36
	echo Installing jdk image into $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    37
	echo and creating $(words $(BINARIES)) links from $(INSTALL_PREFIX)/bin into the jdk.
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    38
	$(MKDIR) -p $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    39
	$(RM) -r $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/*
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    40
	$(CP) -rp $(JDK_IMAGE_DIR)/* $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    41
	$(MKDIR) -p $(INSTALL_PREFIX)/bin
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    42
	$(RM) $(addprefix $(INSTALL_PREFIX)/bin/, $(BINARIES))
98ce0879ab4c 8054834: Modular Source Code
chegar
parents:
diff changeset
    43
	$(foreach b, $(BINARIES), $(LN) -s $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/bin/$b $(INSTALL_PREFIX)/bin/$b &&) true