jdk/makefiles/Import.gmk
author sherman
Thu, 19 Jul 2012 21:23:53 -0700
changeset 13360 b62b5e86f92a
parent 13164 72c5d01a857d
child 13702 efd6a05935b2
permissions -rw-r--r--
7130915: File.equals does not give expected results when path contains Non-English characters on Mac OS X Summary: to support Unicode nfd/nfc file path on Macos Reviewed-by: alanb
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)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    44
    ifneq ($(OPENJDK_TARGET_OS),macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    45
        INSTALL_LIBRARIES_HERE:=$(JDK_OUTPUTDIR)/lib/$(LIBARCH)
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)/lib
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    48
    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    49
    HOTSPOT_LIB_DIR:=$(HOTSPOT_DIST)/jre/lib/$(LIBARCH)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    50
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    51
    INSTALL_LIBRARIES_HERE:=$(JDK_OUTPUTDIR)/bin
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    52
    HOTSPOT_LIB_DIR:=$(HOTSPOT_DIST)/jre/bin
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    53
endif
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
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    57
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    58
# jar xf/unzip fails when executing them all in parallel
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    59
#   introduce artificial dependency (_DEP) buuhhh 
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
define ImportClasses
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    62
$1_CLASSES_DEP := $$(IMPORT_TARGET_CLASSES)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    63
IMPORT_TARGET_CLASSES += $(JDK_OUTPUTDIR)/classes/_the.$1.classes.imported
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    64
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    65
$(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
    66
	$(ECHO) Importing $1 classes.jar
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    67
	$(MKDIR) -p $$(@D)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    68
	($(CD) $$(@D) && $(JAR) xvf $$< > $$@.tmp)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    69
	$(MV) $$@.tmp $$@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    70
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    71
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    72
define ImportSources
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    73
$1_SOURCES_DEP := $$(IMPORT_TARGET_SOURCES)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    74
IMPORT_TARGET_SOURCES += $(JDK_OUTPUTDIR)/impsrc/_the.$1.src.imported
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    75
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    76
$(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
    77
	$(ECHO) Importing $1 src.zip
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    78
	$(MKDIR) -p $$(@D)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    79
	($(CD) $$(@D) && $(JAR) xvf $$< > $$@.tmp)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    80
	$(MV) $$@.tmp $$@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    81
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    82
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    83
define ImportBinaries
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    84
$1_BINARIES_DEP := $$(IMPORT_TARGET_BINARIES)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    85
IMPORT_TARGET_BINARIES += $(JDK_OUTPUTDIR)/_the.$1.binaries.imported
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    86
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    87
$(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
    88
	$(ECHO) Importing $1 bin.zip
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    89
	$(MKDIR) -p $$(@D)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    90
	($(CD) $$(@D) && $(JAR) xvf $$< > $$@.tmp)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    91
	$(MV) $$@.tmp $$@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    92
endef
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
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    96
$(foreach I,$(IMPORT_CLASSES), $(eval $(call ImportClasses,$I)))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    97
$(foreach I,$(IMPORT_SOURCES), $(eval $(call ImportSources,$I)))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    98
$(foreach I,$(IMPORT_BINARIES), $(eval $(call ImportBinaries,$I)))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
    99
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   100
IMPORT_TARGET_FILES += $(IMPORT_TARGET_CLASSES) $(IMPORT_TARGET_SOURCES) $(IMPORT_TARGET_BINARIES)
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
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   104
ifeq ($(OPENJDK_TARGET_OS),solaris)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   105
define do-install-file
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   106
	$(MKDIR) -p $$(@D)
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
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   111
	$(MKDIR) -p $$(@D)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   112
	$(CP) -pRP '$$<' '$$@'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   113
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   114
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   115
define do-install-file
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   116
	$(MKDIR) -p $$(@D)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   117
	$(CP) -P '$$<' '$$@'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   118
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   119
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   120
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   121
define CopyDir
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   122
        $1_SRC_FILES := $(shell $(FIND) $2 -type f)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   123
        $1_DST_FILES := $$(patsubst $2/%,$3/%,$$($1_SRC_FILES))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   124
        IMPORT_TARGET_FILES += $$($1_DST_FILES)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   125
$3/% : $2/%
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   126
	$(ECHO) Copying $$(@F)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   127
	$(do-install-file)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   128
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   129
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   130
#######
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
# Import hotspot
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
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   136
$(eval $(call CopyDir,HOTSPOT0, $(HOTSPOT_LIB_DIR), $(INSTALL_LIBRARIES_HERE)))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   137
$(eval $(call CopyDir,HOTSPOT1, $(HOTSPOT_DIST)/lib, $(JDK_OUTPUTDIR)/lib))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   138
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   139
JSIG_DEBUGINFO := $(wildcard $(HOTSPOT_DIST)/jre/lib/$(LIBARCH)/libjsig.debuginfo) \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   140
                  $(wildcard $(HOTSPOT_DIST)/jre/lib/$(LIBARCH)/libjsig.diz)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   141
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   142
ifneq ($(OPENJDK_TARGET_OS), windows)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   143
    ifeq ($(JVM_VARIANT_SERVER), true)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   144
        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
   145
        ifneq (,$(JSIG_DEBUGINFO))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   146
            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
   147
        endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   148
    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   149
    ifeq ($(JVM_VARIANT_CLIENT), true)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   150
        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
   151
        ifneq (,$(JSIG_DEBUGINFO))
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   152
            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
   153
        endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   154
    endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   155
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   156
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   157
$(INSTALL_LIBRARIES_HERE)/server/%$(SHARED_LIBRARY_SUFFIX) : $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   158
	$(RM) -f $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   159
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   160
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   161
$(INSTALL_LIBRARIES_HERE)/server/%.debuginfo : $(INSTALL_LIBRARIES_HERE)/%.debuginfo
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   162
	$(RM) -f $@
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/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   166
	$(RM) -f $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   167
ifeq (REALLY_WEIRD,1)
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
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   170
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   171
# 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
   172
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   173
	$(RM) -f $(basename $@).debuginfo
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   174
	$(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   175
	$(ZIP) -q -y $@ $(basename $@).debuginfo
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   176
	$(RM) -f $(basename $@).debuginfo
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   177
endif
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)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   180
	$(RM) -f $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   181
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   182
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   183
$(INSTALL_LIBRARIES_HERE)/client/%.debuginfo : $(INSTALL_LIBRARIES_HERE)/%.debuginfo
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   184
	$(RM) -f $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   185
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   186
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   187
$(INSTALL_LIBRARIES_HERE)/client/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   188
	$(RM) -f $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   189
ifeq (REALLY_WEIRD,1)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   190
	$(LN) -s ../$(@F) $@
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   191
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   192
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   193
# 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
   194
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   195
	$(RM) -f $(basename $@).debuginfo
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   196
	$(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   197
	$(ZIP) -q -y $@ $(basename $@).debuginfo
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   198
	$(RM) -f $(basename $@).debuginfo
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   199
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   200
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   201
#######
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
ifeq ($(OPENJDK_TARGET_OS),solaris)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   204
define install-file
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   205
	$(MKDIR) -p $(@D)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   206
	$(CP) -r -P '$<' '$(@D)'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   207
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   208
else ifeq ($(OPENJDK_TARGET_OS),macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   209
define install-file
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   210
	$(MKDIR) -p $(@D)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   211
	$(CP) -pRP '$<' '$@'
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   212
endef
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   213
else
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   214
define install-file
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   215
	$(MKDIR) -p $(@D)
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
ifndef OPENJDK
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
IMPORT_TARGET_FILES += \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   223
            $(JDK_OUTPUTDIR)/lib/security/US_export_policy.jar \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   224
            $(JDK_OUTPUTDIR)/lib/security/local_policy.jar \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   225
            $(JDK_OUTPUTDIR)/lib/jce.jar
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   226
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   227
$(JDK_OUTPUTDIR)/lib/jce.jar : $(JDK_TOPDIR)/make/closed/tools/crypto/jce/jce.jar
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   228
	$(ECHO) Copying $(@F)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   229
	$(install-file)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   230
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   231
$(JDK_OUTPUTDIR)/lib/security/local_policy.jar: $(JDK_TOPDIR)/make/closed/tools/crypto/jce/local_policy.jar
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   232
	$(ECHO) Copying $(@F)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   233
	$(install-file)
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
$(JDK_OUTPUTDIR)/lib/security/US_export_policy.jar: $(JDK_TOPDIR)/make/closed/tools/crypto/jce/US_export_policy.jar
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   236
	$(ECHO) Copying $(@F)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   237
	$(install-file)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   238
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   239
endif # OPENJDK
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   240
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   241
#######
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   242
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents:
diff changeset
   243
all: $(IMPORT_TARGET_FILES)