jdk/make/Import.gmk
author ksrini
Mon, 14 Mar 2016 15:04:57 -0700
changeset 36705 890c250d8da8
parent 35241 075bbb8f2423
child 37525 4f8679a3077d
permissions -rw-r--r--
8071982: Update tests for revamped Doclet API 8071984: Update test cases for repeating and type annotations output in javadoc Reviewed-by: ksrini, bpatel Contributed-by: oleg.barbashov@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
     1
#
33653
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
     2
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
     4
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    10
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    15
# accompanied this code).
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    16
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    20
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    23
# questions.
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    24
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    25
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    26
default: all
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    27
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    28
include $(SPEC)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    29
include MakeBase.gmk
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    30
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23355
diff changeset
    31
################################################################################
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    32
27736
8c9bd4be4a86 8058631: Rename posix to unix in build system to match file name changes
ihse
parents: 25859
diff changeset
    33
# Put the libraries here. Different locations for different target OS types.
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    34
ifneq ($(OPENJDK_TARGET_OS), windows)
30329
f483f76692f6 8075725: Remove /jre subdir in hotspot dist dir
erikj
parents: 27953
diff changeset
    35
  HOTSPOT_LIB_DIR := $(HOTSPOT_DIST)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    36
  BASE_INSTALL_LIBRARIES_HERE := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base$(OPENJDK_TARGET_CPU_LIBDIR)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    37
else
30329
f483f76692f6 8075725: Remove /jre subdir in hotspot dist dir
erikj
parents: 27953
diff changeset
    38
  HOTSPOT_LIB_DIR := $(HOTSPOT_DIST)/bin
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    39
  BASE_INSTALL_LIBRARIES_HERE := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    40
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    41
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23355
diff changeset
    42
################################################################################
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    43
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    44
# Import hotspot
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    45
#
33653
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    46
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    47
# Don't import jsig library for static builds
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    48
ifneq ($(STATIC_BUILD), true)
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    49
  JSIG_IMPORT = jsig.*
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    50
else
35241
075bbb8f2423 8146403: Windows build can be faster
erikj
parents: 34374
diff changeset
    51
  JSIG_IMPORT =
33653
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    52
endif
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    53
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    54
HOTSPOT_BASE_IMPORT_FILES := \
33653
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    55
    $(addprefix $(LIBRARY_PREFIX), jvm.* $(JSIG_IMPORT) jvm_db.* jvm_dtrace.*) \
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    56
    Xusage.txt \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    57
    #
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    58
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    59
$(eval $(call SetupCopyFiles,COPY_HOTSPOT_BASE, \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    60
    SRC := $(HOTSPOT_LIB_DIR), \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    61
    DEST := $(BASE_INSTALL_LIBRARIES_HERE), \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    62
    FILES := $(shell $(FIND) $(HOTSPOT_LIB_DIR) -type f  \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    63
        -a \( -name DUMMY $(addprefix -o$(SPACE)-name$(SPACE), $(HOTSPOT_BASE_IMPORT_FILES)) \) )))
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    64
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    65
ifeq ($(OPENJDK_TARGET_OS), windows)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    66
  $(eval $(call SetupCopyFiles,COPY_HOTSPOT_BASE_JVMLIB, \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    67
      SRC := $(HOTSPOT_DIST)/lib, \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    68
      DEST := $(BASE_INSTALL_LIBRARIES_HERE), \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    69
      FILES := $(wildcard $(HOTSPOT_DIST)/lib/*.lib)))
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    70
endif
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    71
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    72
BASE_TARGETS := $(COPY_HOTSPOT_BASE) $(COPY_HOTSPOT_BASE_JVMLIB)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    73
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
    74
################################################################################
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    75
33653
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    76
ifneq ($(STATIC_BUILD), true)
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    77
  ifeq ($(OPENJDK_TARGET_OS), macosx)
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    78
    JSIG_DEBUGINFO := $(strip $(wildcard $(HOTSPOT_DIST)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig$(SHARED_LIBRARY_SUFFIX).dSYM) \
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    79
        $(wildcard $(HOTSPOT_DIST)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.diz) )
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    80
  else
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    81
    JSIG_DEBUGINFO := $(strip $(wildcard $(HOTSPOT_DIST)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.debuginfo) \
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    82
        $(wildcard $(HOTSPOT_DIST)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.diz) )
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    83
  endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    84
33653
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    85
  ifneq ($(OPENJDK_TARGET_OS), windows)
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    86
    ifeq ($(JVM_VARIANT_SERVER), true)
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    87
      BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/server/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    88
      ifneq (, $(JSIG_DEBUGINFO))
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    89
        BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/server/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    90
      endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    91
    endif
33653
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    92
    ifeq ($(JVM_VARIANT_CLIENT), true)
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    93
      BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/client/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    94
      ifneq (, $(JSIG_DEBUGINFO))
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    95
        BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/client/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    96
      endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    97
    endif
33653
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    98
    ifneq ($(OPENJDK_TARGET_OS), macosx)
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
    99
      ifeq ($(JVM_VARIANT_MINIMAL1), true)
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
   100
        BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/minimal/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
   101
        ifneq (,$(JSIG_DEBUGINFO))
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
   102
          BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/minimal/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
c1ee09fe3274 8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents: 30329
diff changeset
   103
        endif
21131
7171b82a14c3 8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents: 20888
diff changeset
   104
      endif
15680
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   105
    endif
21131
7171b82a14c3 8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents: 20888
diff changeset
   106
  endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   107
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   108
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   109
$(BASE_INSTALL_LIBRARIES_HERE)/server/%$(SHARED_LIBRARY_SUFFIX): $(BASE_INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   110
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   111
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   112
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   113
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   114
ifeq ($(OPENJDK_TARGET_OS), macosx)
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   115
  $(BASE_INSTALL_LIBRARIES_HERE)/server/%.dSYM : $(BASE_INSTALL_LIBRARIES_HERE)/%.dSYM
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   116
	$(MKDIR) -p $(@D)
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   117
	$(RM) $@
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   118
	$(LN) -s ../$(@F) $@
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   119
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   120
  $(BASE_INSTALL_LIBRARIES_HERE)/server/%.diz : $(BASE_INSTALL_LIBRARIES_HERE)/%.diz
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   121
	$(MKDIR) -p $(@D)
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   122
	$(RM) $@
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   123
	$(RM) $@.tmp $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   124
	$(LN) -s ../$(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   125
	$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   126
	$(RM) $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   127
	$(MV) $@.tmp $@
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   128
else
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   129
  $(BASE_INSTALL_LIBRARIES_HERE)/server/%.debuginfo: $(BASE_INSTALL_LIBRARIES_HERE)/%.debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   130
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   131
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   132
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   133
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   134
  $(BASE_INSTALL_LIBRARIES_HERE)/server/%.diz: $(BASE_INSTALL_LIBRARIES_HERE)/%.diz
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   135
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   136
	$(RM) $@
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   137
	$(RM) $@.tmp $(basename $@).debuginfo
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   138
	$(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo
15139
3ec04e4fbb5e 8006385: build-infra: linux and solaris *-debuginfo-*.zip file created from the new makefile has extra HUDSON direcotry in jre/lib/i386/server
erikj
parents: 14596
diff changeset
   139
	$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   140
	$(RM) $(basename $@).debuginfo
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   141
	$(MV) $@.tmp $@
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   142
endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   143
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   144
$(BASE_INSTALL_LIBRARIES_HERE)/client/%$(SHARED_LIBRARY_SUFFIX): $(BASE_INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   145
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   146
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   147
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   148
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   149
ifeq ($(OPENJDK_TARGET_OS), macosx)
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   150
  $(BASE_INSTALL_LIBRARIES_HERE)/client/%.dSYM : $(BASE_INSTALL_LIBRARIES_HERE)/%.dSYM
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   151
	$(MKDIR) -p $(@D)
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   152
	$(RM) $@
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   153
	$(LN) -s ../$(@F) $@
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   154
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   155
  $(BASE_INSTALL_LIBRARIES_HERE)/client/%.diz : $(BASE_INSTALL_LIBRARIES_HERE)/%.diz
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   156
	$(MKDIR) -p $(@D)
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   157
	$(RM) $@
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   158
	$(RM) $@.tmp $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   159
	$(LN) -s ../$(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   160
	$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   161
	$(RM) $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   162
	$(MV) $@.tmp $@
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   163
else
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   164
  $(BASE_INSTALL_LIBRARIES_HERE)/client/%.debuginfo: $(BASE_INSTALL_LIBRARIES_HERE)/%.debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   165
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   166
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   167
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   168
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   169
  $(BASE_INSTALL_LIBRARIES_HERE)/client/%.diz: $(BASE_INSTALL_LIBRARIES_HERE)/%.diz
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   170
	$(MKDIR) -p $(@D)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   171
	$(RM) $@
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   172
	$(RM) $@.tmp $(basename $@).debuginfo
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   173
	$(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   174
	$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   175
	$(RM) $(basename $@).debuginfo
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   176
	$(MV) $@.tmp $@
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   177
endif
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   178
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   179
$(BASE_INSTALL_LIBRARIES_HERE)/minimal/%$(SHARED_LIBRARY_SUFFIX): $(BASE_INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   180
	$(MKDIR) -p $(@D)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   181
	$(RM) $@
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   182
	$(LN) -s ../$(@F) $@
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   183
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   184
ifneq ($(OPENJDK_TARGET_OS), macosx)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   185
  $(BASE_INSTALL_LIBRARIES_HERE)/minimal/%.debuginfo: $(BASE_INSTALL_LIBRARIES_HERE)/%.debuginfo
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   186
	$(MKDIR) -p $(@D)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   187
	$(RM) $@
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   188
	$(LN) -s ../$(@F) $@
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   189
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   190
  $(BASE_INSTALL_LIBRARIES_HERE)/minimal/%.diz: $(BASE_INSTALL_LIBRARIES_HERE)/%.diz
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   191
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   192
	$(RM) $@
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   193
	$(RM) $@.tmp $(basename $@).debuginfo
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   194
	$(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo
15139
3ec04e4fbb5e 8006385: build-infra: linux and solaris *-debuginfo-*.zip file created from the new makefile has extra HUDSON direcotry in jre/lib/i386/server
erikj
parents: 14596
diff changeset
   195
	$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   196
	$(RM) $(basename $@).debuginfo
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   197
	$(MV) $@.tmp $@
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   198
endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   199
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   200
################################################################################
15680
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   201
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   202
ifeq ($(OPENJDK_TARGET_OS), windows)
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   203
  $(eval $(call SetupCopyFiles,BASE_COPY_LIBS_BIN, \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   204
      SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   205
      DEST := $(JDK_OUTPUTDIR)/bin, \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   206
      FILES := $(filter-out %.lib, $(BASE_TARGETS))))
15680
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   207
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   208
  $(eval $(call SetupCopyFiles,BASE_COPY_LIBS_LIB, \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   209
      SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   210
      DEST := $(JDK_OUTPUTDIR)/lib, \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   211
      FILES := $(filter %.lib, $(BASE_TARGETS))))
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   212
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   213
else
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   214
  $(eval $(call SetupCopyFiles,BASE_COPY_LIBS, \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   215
      SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   216
      DEST := $(JDK_OUTPUTDIR)/lib, \
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   217
      FILES := $(BASE_TARGETS)))
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   218
endif
15680
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   219
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   220
################################################################################
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 15691
diff changeset
   221
34374
b45db1cff661 8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents: 33653
diff changeset
   222
all: $(BASE_TARGETS) $(BASE_COPY_LIBS_BIN) $(BASE_COPY_LIBS_LIB) \
b45db1cff661 8142336: Convert the SA agent build to modular build-infra makefiles
erikj
parents: 33653
diff changeset
   223
    $(BASE_COPY_LIBS)
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 15691
diff changeset
   224
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 25859
diff changeset
   225
.PHONY: default all