jdk/make/Import.gmk
author ihse
Fri, 21 Nov 2014 16:05:11 +0100
changeset 27736 8c9bd4be4a86
parent 25859 3317bb8137f4
child 27799 097b1d6f6894
permissions -rw-r--r--
8058631: Rename posix to unix in build system to match file name changes Reviewed-by: simonis, erikj, tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
     1
#
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
     2
# Copyright (c) 2012, 2013, 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.
8c9bd4be4a86 8058631: Rename posix to unix in build system to match file name changes
ihse
parents: 25859
diff changeset
    34
ifeq ($(OPENJDK_TARGET_OS_TYPE), unix)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    35
  INSTALL_LIBRARIES_HERE := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    36
  HOTSPOT_LIB_DIR := $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    37
else
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    38
  INSTALL_LIBRARIES_HERE := $(JDK_OUTPUTDIR)/bin
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    39
  HOTSPOT_LIB_DIR := $(HOTSPOT_DIST)/jre/bin
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
define CopyDir
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    45
  $1_SRC_FILES := $(shell $(FIND) $2 -type f -a \( -name DUMMY $(addprefix -o$(SPACE)-name$(SPACE),$4) \))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    46
  $1_DST_FILES := $$(patsubst $2/%,$3/%,$$($1_SRC_FILES))
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23355
diff changeset
    47
  HOTSPOT_IMPORT_TARGET_FILES += $$($1_DST_FILES)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    48
  $3/%: $2/%
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    49
	$(ECHO) $(LOG_INFO) Copying $$(@F)
15677
e0ab6fb02225 8008295: build-infra: Cleanup in Import.gmk
erikj
parents: 15139
diff changeset
    50
	$$(install-file)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    51
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    52
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23355
diff changeset
    53
################################################################################
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    54
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    55
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    56
# Import hotspot
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    57
#
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    58
HOTSPOT_IMPORT_FILES := $(addprefix $(LIBRARY_PREFIX), jvm.* saproc.* jsig.* sawindbg.* jvm_db.* jvm_dtrace.*) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    59
    Xusage.txt sa-jdi.jar
14428
cacd70dfb133 8002028: build-infra: need no-hotspot partial build
tbell
parents: 14231
diff changeset
    60
$(eval $(call CopyDir,HOTSPOT0, $(HOTSPOT_LIB_DIR), $(INSTALL_LIBRARIES_HERE), $(HOTSPOT_IMPORT_FILES)))
cacd70dfb133 8002028: build-infra: need no-hotspot partial build
tbell
parents: 14231
diff changeset
    61
$(eval $(call CopyDir,HOTSPOT1, $(HOTSPOT_DIST)/lib, $(JDK_OUTPUTDIR)/lib, $(HOTSPOT_IMPORT_FILES)))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    62
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
    63
ifeq ($(OPENJDK_TARGET_OS), macosx)
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
    64
  JSIG_DEBUGINFO := $(strip $(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig$(SHARED_LIBRARY_SUFFIX).dSYM) \
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
    65
      $(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.diz) )
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
    66
else
21131
7171b82a14c3 8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents: 20888
diff changeset
    67
  JSIG_DEBUGINFO := $(strip $(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.debuginfo) \
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
    68
      $(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.diz) )
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
    69
endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    70
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    71
ifneq ($(OPENJDK_TARGET_OS), windows)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    72
  ifeq ($(JVM_VARIANT_SERVER), true)
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23355
diff changeset
    73
    HOTSPOT_IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/server/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    74
    ifneq (, $(JSIG_DEBUGINFO))
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23355
diff changeset
    75
      HOTSPOT_IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/server/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    76
    endif
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    77
  endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    78
  ifeq ($(JVM_VARIANT_CLIENT), true)
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23355
diff changeset
    79
    HOTSPOT_IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/client/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    80
    ifneq (, $(JSIG_DEBUGINFO))
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23355
diff changeset
    81
      HOTSPOT_IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/client/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    82
    endif
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    83
  endif
21131
7171b82a14c3 8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents: 20888
diff changeset
    84
  ifneq ($(OPENJDK_TARGET_OS), macosx)
7171b82a14c3 8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents: 20888
diff changeset
    85
    ifeq ($(JVM_VARIANT_MINIMAL1), true)
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23355
diff changeset
    86
      HOTSPOT_IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/minimal/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
21131
7171b82a14c3 8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents: 20888
diff changeset
    87
      ifneq (,$(JSIG_DEBUGINFO))
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23355
diff changeset
    88
        HOTSPOT_IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/minimal/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
21131
7171b82a14c3 8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents: 20888
diff changeset
    89
      endif
15680
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
    90
    endif
21131
7171b82a14c3 8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents: 20888
diff changeset
    91
  endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    92
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    93
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
    94
$(INSTALL_LIBRARIES_HERE)/server/%$(SHARED_LIBRARY_SUFFIX): $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    95
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    96
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    97
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    98
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
    99
ifeq ($(OPENJDK_TARGET_OS), macosx)
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   100
  $(INSTALL_LIBRARIES_HERE)/server/%.dSYM : $(INSTALL_LIBRARIES_HERE)/%.dSYM
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   101
	$(MKDIR) -p $(@D)
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   102
	$(RM) $@
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   103
	$(LN) -s ../$(@F) $@
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   104
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   105
  $(INSTALL_LIBRARIES_HERE)/server/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   106
	$(MKDIR) -p $(@D)
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   107
	$(RM) $@
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   108
	$(RM) $@.tmp $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   109
	$(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
   110
	$(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
   111
	$(RM) $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   112
	$(MV) $@.tmp $@
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   113
else
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   114
  $(INSTALL_LIBRARIES_HERE)/server/%.debuginfo: $(INSTALL_LIBRARIES_HERE)/%.debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   115
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   116
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   117
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   118
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   119
  $(INSTALL_LIBRARIES_HERE)/server/%.diz: $(INSTALL_LIBRARIES_HERE)/%.diz
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   120
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   121
	$(RM) $@
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   122
	$(RM) $@.tmp $(basename $@).debuginfo
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   123
	$(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
   124
	$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   125
	$(RM) $(basename $@).debuginfo
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   126
	$(MV) $@.tmp $@
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   127
endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   128
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
   129
$(INSTALL_LIBRARIES_HERE)/client/%$(SHARED_LIBRARY_SUFFIX): $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX)
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
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   134
ifeq ($(OPENJDK_TARGET_OS), macosx)
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   135
  $(INSTALL_LIBRARIES_HERE)/client/%.dSYM : $(INSTALL_LIBRARIES_HERE)/%.dSYM
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   136
	$(MKDIR) -p $(@D)
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   137
	$(RM) $@
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   138
	$(LN) -s ../$(@F) $@
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   139
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   140
  $(INSTALL_LIBRARIES_HERE)/client/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   141
	$(MKDIR) -p $(@D)
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   142
	$(RM) $@
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   143
	$(RM) $@.tmp $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   144
	$(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
   145
	$(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
   146
	$(RM) $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   147
	$(MV) $@.tmp $@
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   148
else
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   149
  $(INSTALL_LIBRARIES_HERE)/client/%.debuginfo: $(INSTALL_LIBRARIES_HERE)/%.debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   150
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   151
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   152
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   153
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   154
  $(INSTALL_LIBRARIES_HERE)/client/%.diz: $(INSTALL_LIBRARIES_HERE)/%.diz
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   155
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   156
	$(RM) $@
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   157
	$(RM) $@.tmp $(basename $@).debuginfo
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   158
	$(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
   159
	$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   160
	$(RM) $(basename $@).debuginfo
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   161
	$(MV) $@.tmp $@
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   162
endif
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   163
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 17957
diff changeset
   164
$(INSTALL_LIBRARIES_HERE)/minimal/%$(SHARED_LIBRARY_SUFFIX): $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX)
15680
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   165
	$(MKDIR) -p $(@D)
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   166
	$(RM) $@
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   167
	$(LN) -s ../$(@F) $@
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   168
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   169
ifneq ($(OPENJDK_TARGET_OS), macosx)
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   170
  $(INSTALL_LIBRARIES_HERE)/minimal/%.debuginfo: $(INSTALL_LIBRARIES_HERE)/%.debuginfo
15680
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   171
	$(MKDIR) -p $(@D)
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   172
	$(RM) $@
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   173
	$(LN) -s ../$(@F) $@
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   174
21133
dcec14b84950 8027298: broken link in jdk8b113 macosx binaries
erikj
parents: 21131
diff changeset
   175
  $(INSTALL_LIBRARIES_HERE)/minimal/%.diz: $(INSTALL_LIBRARIES_HERE)/%.diz
15680
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   176
	$(MKDIR) -p $(@D)
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   177
	$(RM) $@
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   178
	$(RM) $@.tmp $(basename $@).debuginfo
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   179
	$(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   180
	$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   181
	$(RM) $(basename $@).debuginfo
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   182
	$(MV) $@.tmp $@
20887
e6ca3d58bfe9 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 17957
diff changeset
   183
endif
15680
d379c4f7bb47 8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents: 15139
diff changeset
   184
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 15691
diff changeset
   185
##########################################################################################
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 15691
diff changeset
   186
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23355
diff changeset
   187
hotspot: $(HOTSPOT_IMPORT_TARGET_FILES)
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 15691
diff changeset
   188
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23355
diff changeset
   189
all: hotspot
17957
1a51992c6097 8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents: 15691
diff changeset
   190
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents: 23355
diff changeset
   191
.PHONY: hotspot all