jdk/makefiles/Import.gmk
author jwilhelm
Thu, 07 Feb 2013 15:51:25 +0100
changeset 15605 bf7de87bbe3a
parent 15139 3ec04e4fbb5e
child 15677 e0ab6fb02225
child 15680 d379c4f7bb47
permissions -rw-r--r--
8006432: Ratio flags should be unsigned Summary: Flags changed to be of uintx type Reviewed-by: johnc, tamao
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
     1
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
     2
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
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
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    31
#######
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    32
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    33
IMPORT_TARGET_FILES :=
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    34
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    35
IMPORT_CLASSES := CORBA JAXP JAXWS LANGTOOLS
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    36
IMPORT_SOURCES := CORBA JAXP JAXWS LANGTOOLS
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    37
# Only Corba has binaries
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    38
IMPORT_BINARIES := CORBA
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    39
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    40
#######
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    41
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    42
# Put the libraries here. Different locations for different target apis.
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    43
ifeq ($(OPENJDK_TARGET_OS_API),posix)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    44
    INSTALL_LIBRARIES_HERE:=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    45
    HOTSPOT_LIB_DIR:=$(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    46
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    47
    INSTALL_LIBRARIES_HERE:=$(JDK_OUTPUTDIR)/bin
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    48
    HOTSPOT_LIB_DIR:=$(HOTSPOT_DIST)/jre/bin
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    49
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    50
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    51
#######
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    52
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    53
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    54
# jar xf/unzip fails when executing them all in parallel
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    55
#   introduce artificial dependency (_DEP) buuhhh 
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    56
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    57
define ImportClasses
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    58
$1_CLASSES_DEP := $$(IMPORT_TARGET_CLASSES)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    59
IMPORT_TARGET_CLASSES += $(JDK_OUTPUTDIR)/classes/_the.$1.classes.imported
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    60
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    61
$(JDK_OUTPUTDIR)/classes/_the.$1.classes.imported : $$($1_DIST)/lib/classes.jar $$($1_CLASSES_DEP)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    62
	$(ECHO) Importing $1 classes.jar
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    63
	$(MKDIR) -p $$(@D)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    64
	$(RM) $$@ $$@.tmp
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    65
	($(CD) $$(@D) && $(JAR) xvf $$< > $$@.tmp)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    66
	$(MV) $$@.tmp $$@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    67
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    68
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    69
define ImportSources
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    70
$1_SOURCES_DEP := $$(IMPORT_TARGET_SOURCES)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    71
IMPORT_TARGET_SOURCES += $(JDK_OUTPUTDIR)/impsrc/_the.$1.src.imported
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    72
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    73
$(JDK_OUTPUTDIR)/impsrc/_the.$1.src.imported : $$($1_DIST)/lib/src.zip $$($1_SOURCES_DEP)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    74
	$(ECHO) Importing $1 src.zip
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    75
	$(MKDIR) -p $$(@D)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    76
	$(RM) $$@ $$@.tmp
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    77
	($(CD) $$(@D) && $(JAR) xvf $$< > $$@.tmp)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    78
	$(MV) $$@.tmp $$@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    79
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    80
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    81
define ImportBinaries
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    82
$1_BINARIES_DEP := $$(IMPORT_TARGET_BINARIES)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    83
IMPORT_TARGET_BINARIES += $(JDK_OUTPUTDIR)/_the.$1.binaries.imported
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    84
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    85
$(JDK_OUTPUTDIR)/_the.$1.binaries.imported : $$($1_DIST)/lib/bin.zip $$($1_BINARIES_DEP)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    86
	$(ECHO) Importing $1 bin.zip
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    87
	$(MKDIR) -p $$(@D)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
    88
	$(RM) $$@ $$@.tmp
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    89
	($(CD) $$(@D) && $(JAR) xvf $$< > $$@.tmp)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    90
	$(MV) $$@.tmp $$@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    91
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    92
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    93
#######
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    94
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    95
$(foreach I,$(IMPORT_CLASSES), $(eval $(call ImportClasses,$I)))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    96
$(foreach I,$(IMPORT_SOURCES), $(eval $(call ImportSources,$I)))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    97
$(foreach I,$(IMPORT_BINARIES), $(eval $(call ImportBinaries,$I)))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    98
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    99
IMPORT_TARGET_FILES += $(IMPORT_TARGET_CLASSES) $(IMPORT_TARGET_SOURCES) $(IMPORT_TARGET_BINARIES)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   100
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   101
#######
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   102
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   103
ifeq ($(OPENJDK_TARGET_OS),solaris)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   104
define do-install-file
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   105
	$(MKDIR) -p '$$(@D)'
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   106
	$(RM) '$$@'
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   107
	$(CP) -r -P '$$<' '$$(@D)'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   108
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   109
else ifeq ($(OPENJDK_TARGET_OS),macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   110
define do-install-file
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   111
	$(MKDIR) -p '$$(@D)'
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   112
	$(RM) '$$@'
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   113
	$(CP) -pRP '$$<' '$$@'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   114
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   115
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   116
define do-install-file
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   117
	$(MKDIR) -p '$$(@D)'
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   118
	$(RM) '$$@'
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   119
	$(CP) -P '$$<' '$$@'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   120
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   121
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   122
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   123
define CopyDir
14428
cacd70dfb133 8002028: build-infra: need no-hotspot partial build
tbell
parents: 14231
diff changeset
   124
        $1_SRC_FILES := $(shell $(FIND) $2 -type f -a \( -name DUMMY $(addprefix -o$(SPACE)-name$(SPACE),$4) \))
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   125
        $1_DST_FILES := $$(patsubst $2/%,$3/%,$$($1_SRC_FILES))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   126
        IMPORT_TARGET_FILES += $$($1_DST_FILES)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   127
$3/% : $2/%
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   128
	$(ECHO) $(LOG_INFO) Copying $$(@F)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   129
	$(do-install-file)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   130
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   131
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   132
#######
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   133
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   134
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   135
# Import hotspot
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   136
#
14428
cacd70dfb133 8002028: build-infra: need no-hotspot partial build
tbell
parents: 14231
diff changeset
   137
HOTSPOT_IMPORT_FILES:=$(addprefix $(LIBRARY_PREFIX), jvm.* saproc.* jsig.* sawindbg.* jvm_db.* jvm_dtrace.*) \
cacd70dfb133 8002028: build-infra: need no-hotspot partial build
tbell
parents: 14231
diff changeset
   138
                      Xusage.txt sa-jdi.jar
cacd70dfb133 8002028: build-infra: need no-hotspot partial build
tbell
parents: 14231
diff changeset
   139
$(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
   140
$(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
   141
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   142
JSIG_DEBUGINFO := $(strip $(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.debuginfo) \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   143
                  $(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.diz) )
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   144
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   145
ifneq ($(OPENJDK_TARGET_OS), windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   146
    ifeq ($(JVM_VARIANT_SERVER), true)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   147
        IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/server/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   148
        ifneq (,$(JSIG_DEBUGINFO))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   149
            IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/server/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   150
        endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   151
    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   152
    ifeq ($(JVM_VARIANT_CLIENT), true)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   153
        IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/client/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   154
        ifneq (,$(JSIG_DEBUGINFO))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   155
            IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/client/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   156
        endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   157
    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   158
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   159
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   160
$(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
   161
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   162
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   163
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   165
$(INSTALL_LIBRARIES_HERE)/server/%.debuginfo : $(INSTALL_LIBRARIES_HERE)/%.debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   166
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   167
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   168
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   169
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   170
$(INSTALL_LIBRARIES_HERE)/server/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   171
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   172
	$(RM) $@
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   173
	$(RM) $@.tmp $(basename $@).debuginfo
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   174
	$(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
   175
	$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   176
	$(RM) $(basename $@).debuginfo
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   177
	$(MV) $@.tmp $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   178
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   179
$(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
   180
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   181
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   182
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   183
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   184
$(INSTALL_LIBRARIES_HERE)/client/%.debuginfo : $(INSTALL_LIBRARIES_HERE)/%.debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   185
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   186
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   187
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   188
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   189
$(INSTALL_LIBRARIES_HERE)/client/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   190
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   191
	$(RM) $@
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   192
	$(RM) $@.tmp $(basename $@).debuginfo
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   193
	$(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
   194
	$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   195
	$(RM) $(basename $@).debuginfo
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   196
	$(MV) $@.tmp $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   197
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   198
#######
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   199
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   200
ifeq ($(OPENJDK_TARGET_OS),solaris)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   201
define install-file
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   202
	$(MKDIR) -p '$(@D)'
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   203
	$(RM) '$@'
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   204
	$(CP) -r -P '$<' '$(@D)'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   205
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   206
else ifeq ($(OPENJDK_TARGET_OS),macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   207
define install-file
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   208
	$(MKDIR) -p '$(@D)'
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   209
	$(RM) '$@'
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   210
	$(CP) -pRP '$<' '$@'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   211
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   212
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   213
define install-file
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   214
	$(MKDIR) -p '$(@D)'
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   215
	$(RM) '$@'
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   216
	$(CP) -P '$<' '$@'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   217
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   218
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   219
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   220
#######
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   221
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   222
all: $(IMPORT_TARGET_FILES)