make/StaticLibsImage.gmk
author mbaesken
Wed, 06 Nov 2019 14:04:07 +0100
changeset 58959 b7b170ba3ba9
parent 58846 f9ac726ab347
permissions -rw-r--r--
8233328: fix minimal VM build on Linux s390x Reviewed-by: lucy, mdoerr
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
58846
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
     1
#
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
     2
# Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
     4
#
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    10
#
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    15
# accompanied this code).
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    16
#
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    20
#
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    23
# questions.
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    24
#
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    25
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    26
# This makefile creates an image of the optional static versions of certain JDK
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    27
# libraries.
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    28
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    29
default: all
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    30
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    31
include $(SPEC)
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    32
include MakeBase.gmk
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    33
include Modules.gmk
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    34
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    35
################################################################################
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    36
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    37
TARGETS :=
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    38
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    39
$(foreach m, $(STATIC_LIBS_MODULES), \
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    40
  $(eval $(call SetupCopyFiles, COPY_STATIC_LIBS_$m, \
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    41
      FLATTEN := true, \
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    42
      SRC := $(SUPPORT_OUTPUTDIR)/native/$m, \
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    43
      DEST := $(STATIC_LIBS_IMAGE_DIR)/lib, \
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    44
      FILES := $(filter %$(STATIC_LIBRARY_SUFFIX), \
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    45
          $(call FindFiles, $(SUPPORT_OUTPUTDIR)/native/$m/*/static)), \
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    46
  )) \
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    47
  $(eval TARGETS += $$(COPY_STATIC_LIBS_$m)) \
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    48
)
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    49
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    50
################################################################################
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    51
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    52
all: $(TARGETS)
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    53
f9ac726ab347 8232748: Build static versions of certain JDK libraries
erikj
parents:
diff changeset
    54
.PHONY: all