jdk/makefiles/Import.gmk
author erikj
Wed, 05 Dec 2012 10:12:57 +0100
changeset 14596 a1f29d55b5ee
parent 14428 cacd70dfb133
child 15139 3ec04e4fbb5e
permissions -rw-r--r--
8004281: build-infra: Move all jar creation to images target and put jars in images/lib Reviewed-by: ohair, tbell, dholmes
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) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   173
ifeq (REALLY_WEIRD,1)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   174
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   175
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   176
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   177
# TODO: Check if this is what they really want...a zip containing a symlink
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   178
#
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   179
	$(RM) $@.tmp $(basename $@).debuginfo
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   180
	$(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   181
	$(ZIP) -q -y $@.tmp $(basename $@).debuginfo
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   182
	$(RM) $(basename $@).debuginfo
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   183
	$(MV) $@.tmp $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   184
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   185
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   186
$(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
   187
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   188
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   189
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   190
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   191
$(INSTALL_LIBRARIES_HERE)/client/%.debuginfo : $(INSTALL_LIBRARIES_HERE)/%.debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   192
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   193
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   194
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   195
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   196
$(INSTALL_LIBRARIES_HERE)/client/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   197
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   198
	$(RM) $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   199
ifeq (REALLY_WEIRD,1)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   200
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   201
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   202
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   203
# TODO: Check if this is what they really want...a zip containing a symlink
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   204
#
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   205
	$(RM) $@.tmp $(basename $@).debuginfo
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   206
	$(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   207
	$(ZIP) -q -y $@.tmp $(basename $@).debuginfo
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   208
	$(RM) $(basename $@).debuginfo
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   209
	$(MV) $@.tmp $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   210
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   211
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   212
#######
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   213
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   214
ifeq ($(OPENJDK_TARGET_OS),solaris)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   215
define install-file
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   216
	$(MKDIR) -p '$(@D)'
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   217
	$(RM) '$@'
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   218
	$(CP) -r -P '$<' '$(@D)'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   219
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   220
else ifeq ($(OPENJDK_TARGET_OS),macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   221
define install-file
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   222
	$(MKDIR) -p '$(@D)'
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   223
	$(RM) '$@'
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   224
	$(CP) -pRP '$<' '$@'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   225
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   226
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   227
define install-file
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   228
	$(MKDIR) -p '$(@D)'
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13164
diff changeset
   229
	$(RM) '$@'
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   230
	$(CP) -P '$<' '$@'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   231
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   232
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   233
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   234
#######
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   235
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   236
all: $(IMPORT_TARGET_FILES)