jdk/make/java/redist/Makefile
author dholmes
Tue, 15 Mar 2011 19:52:42 -0400 (2011-03-15)
changeset 8792 cd1dceb2d665
parent 8018 79ce40b4ab5e
child 8793 a25480ff1a6b
permissions -rw-r--r--
7027897: Build support for client-VM only configurations Summary: Support builds for which only the client VM is required and/or available Reviewed-by: ohair, andrew
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
7668
d4a77089c587 6962318: Update copyright year
ohair
parents: 7666
diff changeset
     2
# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4917
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4917
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4917
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4917
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4917
diff changeset
    23
# questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# Imports files exported by a hotspot build or provided from an external
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#   location into the OUTPUTDIR, and also primes the OUTPUTDIR with files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#   that are provided inside this workspace.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
# IMPORT_LIST contains the list of destination files that are copied 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#     from external places (outside this workspace).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
# INTERNAL_IMPORT_LIST is the list of destination files from BUILDDIR.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
# 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
BUILDDIR = ../..
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
    38
MODULE   = base
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
PRODUCT  = java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
include $(BUILDDIR)/common/Defs.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
SERVER_LOCATION = server
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
CLIENT_LOCATION = client
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
DB_SUFFIX = _db
6378
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
    46
DTRACE_SUFFIX = _dtrace
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
  LIB_LOCATION = $(BINDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
  LIB_LOCATION = $(LIBDIR)/$(LIBARCH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
JVM_NAME               = $(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
JVMLIB_NAME            = $(LIB_PREFIX)jvm.$(LIB_SUFFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
JVMMAP_NAME            = $(LIB_PREFIX)jvm.map
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
JVMPDB_NAME            = $(LIB_PREFIX)jvm.pdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
LIBJSIG_NAME           = $(LIB_PREFIX)jsig.$(LIBRARY_SUFFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
JVMDB_NAME             = $(LIB_PREFIX)jvm$(DB_SUFFIX).$(LIBRARY_SUFFIX)
6378
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
    60
JVMDTRACE_NAME         = $(LIB_PREFIX)jvm$(DTRACE_SUFFIX).$(LIBRARY_SUFFIX)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
CLASSSHARINGDATA_DIR   = $(BUILDDIR)/tools/sharing
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
# Needed to do file copy
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
ABS_BUILDDIR :=$(call FullPath,$(BUILDDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
4917
c98da2209f8c 6915413: Module build: building of specified jdk components instead of all
mchung
parents: 4665
diff changeset
    67
SUBDIRS_desktop = fonts
c98da2209f8c 6915413: Module build: building of specified jdk components instead of all
mchung
parents: 4665
diff changeset
    68
SUBDIRS_tools   = sajdi
c98da2209f8c 6915413: Module build: building of specified jdk components instead of all
mchung
parents: 4665
diff changeset
    69
include $(BUILDDIR)/common/Subdirs.gmk
c98da2209f8c 6915413: Module build: building of specified jdk components instead of all
mchung
parents: 4665
diff changeset
    70
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
    71
all clean clobber::
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
    72
	$(SUBDIRS-loop)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
    73
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
    74
all:: build
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
# List of files created here or coming from BUILDDIR area (this workspace)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
INTERNAL_IMPORT_LIST = $(LIBDIR)/classlist
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
# List of files coming from outside this workspace
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
    80
ifndef BUILD_CLIENT_ONLY
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
    81
  IMPORT_LIST = $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME) \
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
    82
                $(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
    83
else
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
    84
  IMPORT_LIST =
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
    85
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
4111
ffc9c33335f4 6891677: java/build integrate zero assembler JDK changes
gbenson
parents: 3288
diff changeset
    87
# Hotspot client is only available on 32-bit non-Zero builds
ffc9c33335f4 6891677: java/build integrate zero assembler JDK changes
gbenson
parents: 3288
diff changeset
    88
ifneq ($(ZERO_BUILD), true)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
  IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
                 $(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
endif
4111
ffc9c33335f4 6891677: java/build integrate zero assembler JDK changes
gbenson
parents: 3288
diff changeset
    93
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
#  Windows     vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv  Windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
IMPORT_LIST += $(MS_RUNTIME_LIBRARIES:%=$(BINDIR)/%)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
1776
33e9405ab91b 6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents: 2
diff changeset
   100
$(BINDIR)/$(MSVCRNN_DLL): $(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
	$(install-import-file)
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
   102
	$(call chmod-file, a+x)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
# Get the hotspot .map and .pdb files for client and server
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   105
ifndef BUILD_CLIENT_ONLY
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
IMPORT_LIST += \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
	$(LIBDIR)/$(JVMLIB_NAME) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
	$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
	$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME)
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   110
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   112
# Add .map and .pdb files to the import path for client and kernel VMs. 
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   113
# These are only available on 32-bit windows builds. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
  IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
                 $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME)
3114
f503507dcce5 6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents: 3111
diff changeset
   117
  ifeq ($(DO_KERNEL), true)
f503507dcce5 6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents: 3111
diff changeset
   118
    IMPORT_LIST += $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME) \
f503507dcce5 6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents: 3111
diff changeset
   119
                   $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME)
f503507dcce5 6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents: 3111
diff changeset
   120
  endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
$(LIBDIR)/$(JVMLIB_NAME): $(HOTSPOT_LIB_PATH)/$(JVMLIB_NAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
	$(install-import-file)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
# it is OK for the .map and .pdb files to not exist, so do not force a 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
# dependency on them from the bootstrap location, and allow the copy to fail.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME):
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
	-$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMMAP_NAME)  $@
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
   131
	@$(install-module-file)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   133
$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME):
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   134
	@$(prep-target)
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   135
	-$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMMAP_NAME)  $@
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
   136
	@$(install-module-file)
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   137
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   138
ifndef BUILD_CLIENT_ONLY
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME):
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
	-$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMMAP_NAME) $@
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
   142
	@$(install-module-file)
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   143
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME):
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
	-$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMPDB_NAME)  $@
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
   148
	@$(install-module-file)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   150
$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME):
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   151
	@$(prep-target)
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   152
	-$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMPDB_NAME)  $@
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
   153
	@$(install-module-file)
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   154
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   155
ifndef BUILD_CLIENT_ONLY
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME): 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
	-$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMPDB_NAME) $@
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
   159
	@$(install-module-file)
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   160
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
#  Windows     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  Windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
else # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
#  NOT Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv  NOT Windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   166
IMPORT_LIST += $(LIB_LOCATION)/$(LIBJSIG_NAME) 
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   167
ifndef BUILD_CLIENT_ONLY
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   168
  IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME)
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   169
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
ifeq ($(PLATFORM), solaris)
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   172
  ifndef BUILD_CLIENT_ONLY
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   173
    IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME)
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   174
    # The conditional can be removed when import JDKs contain these files.
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   175
    ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_NAME)),)
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   176
      IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_NAME)
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   177
    else
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   178
      $(warning WARNING: $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME) not found!)
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   179
    endif 
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   180
  endif 
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   181
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
4111
ffc9c33335f4 6891677: java/build integrate zero assembler JDK changes
gbenson
parents: 3288
diff changeset
   183
ifneq ($(ZERO_BUILD), true)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
ifeq ($(PLATFORM), solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
#  solaris   vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv  solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
6378
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   191
IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME)
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   192
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   193
# The conditional can be removed when import JDKs contain these files.
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   194
ifneq ($(wildcard $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME)),)
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   195
  IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_NAME)
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   196
  IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME)
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   197
  IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_NAME)
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   198
else
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   199
  $(warning WARNING: $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME) not found!)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   202
ifndef BUILD_CLIENT_ONLY
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   203
  # The conditional can be removed when import JDKs contain these files.
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   204
  ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)),)
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   205
    IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME)
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   206
  else
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   207
    $(warning WARNING: $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME) not found!)
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   208
  endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   210
  # The conditional can be removed when import JDKs contain these files.
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   211
  ifneq ($(wildcard $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME)),)
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   212
    IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_NAME)
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   213
  else
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   214
    $(warning WARNING: $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME) not found!)
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   215
 endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
# For backwards compatability, make a link of the 32-bit client JVM to $(LIBDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
IMPORT_LIST += $(LIB_LOCATION)/$(JVM_NAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
$(LIB_LOCATION)/$(JVM_NAME): $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
#  solaris   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
endif # 32bit solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
endif # 32bit
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
4111
ffc9c33335f4 6891677: java/build integrate zero assembler JDK changes
gbenson
parents: 3288
diff changeset
   229
endif # ZERO_BUILD
ffc9c33335f4 6891677: java/build integrate zero assembler JDK changes
gbenson
parents: 3288
diff changeset
   230
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
#  NOT Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ NOT Windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_NAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
	$(install-import-file)
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   237
	@$(call binary_file_verification,$@)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   239
$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_NAME): $(HOTSPOT_KERNEL_PATH)/$(JVM_NAME)
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   240
	$(install-file)
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   241
	@$(call binary_file_verification,$@)
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   242
4062
203caeb1e9a8 6896472: Missing libjsig.so causes jdk build failure
ohair
parents: 3288
diff changeset
   243
$(LIB_LOCATION)/$(LIBJSIG_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_NAME)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
	$(install-import-file)
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   245
	@$(call binary_file_verification,$@)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   247
ifndef BUILD_CLIENT_ONLY
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME):
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
	@$(prep-target)
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
   251
	$(call install-sym-link, ../$(LIBJSIG_NAME))
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   252
else
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   253
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME):
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   254
	@$(prep-target)
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   255
	$(call install-sym-link, ../$(LIBJSIG_NAME))
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   256
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_NAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
	$(install-import-file)
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   260
	@$(call binary_file_verification,$@)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_NAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
	$(install-import-file)
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   264
	@$(call binary_file_verification,$@)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   266
ifndef BUILD_CLIENT_ONLY
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
	$(install-import-file)
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   269
	@$(call binary_file_verification,$@)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
	$(install-import-file)
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   273
	@$(call binary_file_verification,$@)
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   274
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
6378
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   276
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDTRACE_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDTRACE_NAME)
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   277
	$(install-import-file)
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   278
	@$(call binary_file_verification,$@)
6378
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   279
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   280
$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDTRACE_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDTRACE_NAME)
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   281
	$(install-import-file)
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   282
	@$(call binary_file_verification,$@)
6378
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   283
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   284
ifndef BUILD_CLIENT_ONLY
6378
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   285
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDTRACE_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDTRACE_NAME)
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   286
	$(install-import-file)
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   287
	@$(call binary_file_verification,$@)
6378
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   288
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   289
$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDTRACE_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDTRACE_NAME)
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   290
	$(install-import-file)
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   291
	@$(call binary_file_verification,$@)
6378
5c7242a0a4a5 6983225: libjvm_db.so is not imported into solaris-x86 builds, and libjvm_dtrace.so not imported at all.
kamg
parents: 5506
diff changeset
   292
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_NAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
	$(install-import-file)
8008
753c38f4af83 6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents: 7668
diff changeset
   295
	@$(call binary_file_verification,$@)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
$(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt : $(HOTSPOT_SERVER_PATH)/Xusage.txt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
	$(install-import-file)
8792
cd1dceb2d665 7027897: Build support for client-VM only configurations
dholmes
parents: 8018
diff changeset
   299
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
$(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt : $(HOTSPOT_CLIENT_PATH)/Xusage.txt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
	$(install-import-file)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
3111
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   304
$(LIB_LOCATION)/$(KERNEL_LOCATION)/Xusage.txt : $(HOTSPOT_KERNEL_PATH)/Xusage.txt
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   305
	$(install-file)
fefdeafb7ab9 6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents: 2301
diff changeset
   306
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
#
7666
7b994e3dd41d 7008723: Remove binary plugs creation and use from openjdk
ohair
parents: 6378
diff changeset
   308
# Specific to non-OpenJDK building
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
#
7666
7b994e3dd41d 7008723: Remove binary plugs creation and use from openjdk
ohair
parents: 6378
diff changeset
   310
ifndef OPENJDK
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
INTERNAL_IMPORT_LIST += \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
            $(LIBDIR)/security/US_export_policy.jar \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
            $(LIBDIR)/security/local_policy.jar \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
            $(LIBDIR)/jce.jar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
$(LIBDIR)/jce.jar: \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
	    $(BUILDDIR)/closed/tools/crypto/jce/jce.jar
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4340
diff changeset
   319
	$(install-non-module-file)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
$(LIBDIR)/security/US_export_policy.jar: \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
	    $(BUILDDIR)/closed/tools/crypto/jce/US_export_policy.jar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
	$(install-file)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
$(LIBDIR)/security/local_policy.jar: \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
	    $(BUILDDIR)/closed/tools/crypto/jce/local_policy.jar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
	$(install-file)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
endif # OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
ADDJSUM_JARFILE = $(BUILDTOOLJARDIR)/addjsum.jar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
# Construct classlist file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
$(LIBDIR)/classlist: \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
    $(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
    $(ADDJSUM_JARFILE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
	@$(RM) -f $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
	$(BOOT_JAVA_CMD) -jar $(ADDJSUM_JARFILE) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
	    $(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
	$(MV) $@.temp $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
# Import internal files (ones that are stashed in this source tree)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
import_internal_files : $(INTERNAL_IMPORT_LIST)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
# Import files from the JDK that we are not building
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
import_files: $(IMPORT_LIST)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
# Get component information variables and rules
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
include $(BUILDDIR)/common/internal/ImportComponents.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
# Security files we need to import
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
SEC_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-bin.zip
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
SEC_FILES_WIN_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-windows-bin.zip
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
JGSS_WIN32_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-i586-bin.zip
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
JGSS_WIN64_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-x64-bin.zip
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
# Unzip zip file $2 into directory $1 (if $2 exists)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
#   Warning: $2 must be absolute path not relative
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
define SecUnzipper
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
if [ -f $2 ] ; then \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
  $(MKDIR) -p $1; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
  $(ECHO) "( $(CD) $1 && $(UNZIP) -o $2 )"; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
  ( $(CD) $1 && $(UNZIP) -o $2 ); \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
endef
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
# If sec-bin exists, unpack it into the build directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
#   Also, the library recompile build indirectly depends on two SSL classes,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
#   so copy those as well   FIXUP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
#   if sec-windows-bin exists, unpack it into the build directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
#   if JGSS files exists, unpack it into the build directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
$(TEMPDIR)/security_imported:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
	@$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_ZIP))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
	@$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_WIN_ZIP))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
    ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
	@$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN32_FILES_ZIP))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
	@$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN64_FILES_ZIP))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
	@$(ECHO) "Imported on `$(DATE)`" > $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
# Import all files from other components
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
$(TEMPDIR)/components_imported:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
	$(call import-component-binaries,$(ABS_OUTPUTDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
	$(call import-component-sources,$(IMPORTSRCDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
	$(call import-component-docs,$(IMPORTDOCDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
	$(call import-component-classes,$(CLASSDESTDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
	@$(ECHO) "Imported on `$(DATE)`" > $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
# Do pretty much everything
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
build : import_files \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
	import_internal_files \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
	$(TEMPDIR)/components_imported \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
	$(TEMPDIR)/security_imported
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
# Clean up what we imported (except for component files)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
clean clobber::
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
	$(RM) $(IMPORT_LIST)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
	$(RM) $(INTERNAL_IMPORT_LIST)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
	$(call import-component-sources-clean,$(IMPORTSRCDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
	$(call import-component-docs-clean,$(IMPORTDOCDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
	$(call import-component-classes-clean,$(CLASSDESTDIR))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
	$(RM) $(TEMPDIR)/components_imported
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
	$(RM) $(TEMPDIR)/security_imported
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
.PHONY: import_files import_internal_files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412