hotspot/make/CopyToExplodedJdk.gmk
author sspitsyn
Wed, 07 Dec 2016 23:45:31 +0000
changeset 42645 2d3bde7569e0
parent 41277 65200988b2ee
child 42985 84da697836d6
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
41277
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     1
#
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     2
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     4
#
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    10
#
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    15
# accompanied this code).
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    16
#
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    20
#
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    23
# questions.
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    24
#
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    25
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    26
# Copy all built libraries into exploded jdk
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    27
LIB_TARGETS := $(filter $(LIB_OUTPUTDIR)/%, $(TARGETS))
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    28
ifeq ($(OPENJDK_TARGET_OS), windows)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    29
  $(eval $(call SetupCopyFiles, COPY_LIBS_BIN, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    30
      SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    31
      DEST := $(JDK_OUTPUTDIR)/bin, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    32
      FILES := $(filter-out %.lib, $(LIB_TARGETS)), \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    33
  ))
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    34
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    35
  $(eval $(call SetupCopyFiles, COPY_LIBS_LIB, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    36
      SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    37
      DEST := $(JDK_OUTPUTDIR)/lib, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    38
      FILES := $(filter %.lib, $(LIB_TARGETS))))
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    39
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    40
  TARGETS += $(COPY_LIBS_BIN) $(COPY_LIBS_LIB)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    41
else
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    42
  $(eval $(call SetupCopyFiles, COPY_LIBS, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    43
      SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    44
      DEST := $(JDK_OUTPUTDIR)/lib, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    45
      FILES := $(filter %$(SHARED_LIBRARY_SUFFIX), $(LIB_TARGETS)), \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    46
  ))
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    47
  $(eval $(call SetupCopyFiles, LINK_LIBS, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    48
      SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    49
      DEST := $(JDK_OUTPUTDIR)/lib, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    50
      FILES := $(filter-out %$(SHARED_LIBRARY_SUFFIX), $(LIB_TARGETS)), \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    51
      MACRO := link-file-relative, \
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    52
  ))
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    53
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    54
  TARGETS += $(COPY_LIBS) $(LINK_LIBS)
65200988b2ee 8150736: Excessive disk space used by build system
erikj
parents:
diff changeset
    55
endif