annotate make/linux/makefiles/vm.make @ 4189:2f82d59ddf61

Merge jdk7u12-b03
author andrew
date Fri, 30 Nov 2012 12:17:17 +0000
parents 807df5d59cd5 b9d9ae5d5525
children 6e4feb17117d
rev   line source
duke@0 1 #
dcubed@3476 2 # Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
duke@0 7 # published by the Free Software Foundation.
duke@0 8 #
duke@0 9 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 12 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 13 # accompanied this code).
duke@0 14 #
duke@0 15 # You should have received a copy of the GNU General Public License version
duke@0 16 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 18 #
trims@1519 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1519 20 # or visit www.oracle.com if you need additional information or have any
trims@1519 21 # questions.
duke@0 22 #
duke@0 23 #
duke@0 24
duke@0 25 # Rules to build JVM and related libraries, included from vm.make in the build
duke@0 26 # directory.
duke@0 27
duke@0 28 # Common build rules.
kamg@91 29 MAKEFILES_DIR=$(GAMMADIR)/make/$(Platform_os_family)/makefiles
duke@0 30 include $(MAKEFILES_DIR)/rules.make
kamg@2136 31 include $(GAMMADIR)/make/altsrc.make
duke@0 32
duke@0 33 default: build
duke@0 34
duke@0 35 #----------------------------------------------------------------------
duke@0 36 # Defs
duke@0 37
duke@0 38 GENERATED = ../generated
stefank@1932 39 DEP_DIR = $(GENERATED)/dependencies
duke@0 40
stefank@1932 41 # reads the generated files defining the set of .o's and the .o .h dependencies
stefank@1932 42 -include $(DEP_DIR)/*.d
duke@0 43
duke@0 44 # read machine-specific adjustments (%%% should do this via buildtree.make?)
erikj@3751 45 ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
never@1025 46 include $(MAKEFILES_DIR)/zeroshark.make
never@1025 47 else
never@1025 48 include $(MAKEFILES_DIR)/$(BUILDARCH).make
never@1025 49 endif
duke@0 50
duke@0 51 # set VPATH so make knows where to look for source files
stefank@1932 52 # Src_Dirs_V is everything in src/share/vm/*, plus the right os/*/vm and cpu/*/vm
duke@0 53 # The adfiles directory contains ad_<arch>.[ch]pp.
duke@0 54 # The jvmtifiles directory contains jvmti*.[ch]pp
stefank@1932 55 Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles
stefank@1932 56 VPATH += $(Src_Dirs_V:%=%:)
duke@0 57
stefank@1932 58 # set INCLUDES for C preprocessor.
stefank@1932 59 Src_Dirs_I += $(GENERATED)
stefank@1932 60 # The order is important for the precompiled headers to work.
stefank@1932 61 INCLUDES += $(PRECOMPILED_HEADER_DIR:%=-I%) $(Src_Dirs_I:%=-I%)
duke@0 62
dcubed@2884 63 # SYMFLAG is used by {jsig,saproc}.make
dcubed@3476 64 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
dcubed@2884 65 # always build with debug info when we can create .debuginfo files
duke@0 66 SYMFLAG = -g
duke@0 67 else
dcubed@2884 68 ifeq (${VERSION}, debug)
dcubed@2884 69 SYMFLAG = -g
dcubed@2884 70 else
dcubed@2884 71 SYMFLAG =
dcubed@2884 72 endif
duke@0 73 endif
duke@0 74
duke@0 75 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined
duke@0 76 # in $(GAMMADIR)/make/defs.make
duke@0 77 ifeq ($(HOTSPOT_BUILD_VERSION),)
duke@0 78 BUILD_VERSION = -DHOTSPOT_RELEASE_VERSION="\"$(HOTSPOT_RELEASE_VERSION)\""
duke@0 79 else
duke@0 80 BUILD_VERSION = -DHOTSPOT_RELEASE_VERSION="\"$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)\""
duke@0 81 endif
duke@0 82
duke@0 83 # The following variables are defined in the generated flags.make file.
duke@0 84 BUILD_VERSION = -DHOTSPOT_RELEASE_VERSION="\"$(HS_BUILD_VER)\""
duke@0 85 JRE_VERSION = -DJRE_RELEASE_VERSION="\"$(JRE_RELEASE_VER)\""
jrose@100 86 HS_LIB_ARCH = -DHOTSPOT_LIB_ARCH=\"$(LIBARCH)\"
duke@0 87 BUILD_TARGET = -DHOTSPOT_BUILD_TARGET="\"$(TARGET)\""
duke@0 88 BUILD_USER = -DHOTSPOT_BUILD_USER="\"$(HOTSPOT_BUILD_USER)\""
duke@0 89 VM_DISTRO = -DHOTSPOT_VM_DISTRO="\"$(HOTSPOT_VM_DISTRO)\""
duke@0 90
erikj@3325 91 CXXFLAGS = \
duke@0 92 ${SYSDEFS} \
duke@0 93 ${INCLUDES} \
duke@0 94 ${BUILD_VERSION} \
duke@0 95 ${BUILD_TARGET} \
duke@0 96 ${BUILD_USER} \
jrose@100 97 ${HS_LIB_ARCH} \
duke@0 98 ${VM_DISTRO}
duke@0 99
andrew@1373 100 ifdef DERIVATIVE_ID
andrew@1373 101 CPPFLAGS += -DDERIVATIVE_ID="\"$(DERIVATIVE_ID)\""
andrew@1373 102 endif
andrew@1373 103
ohrstrom@3324 104 # This is VERY important! The version define must only be supplied to vm_version.o
ohrstrom@3324 105 # If not, ccache will not re-use the cache at all, since the version string might contain
ohrstrom@3324 106 # a time and date.
erikj@3325 107 vm_version.o: CXXFLAGS += ${JRE_VERSION}
ohrstrom@3324 108
collins@3858 109 ifndef JAVASE_EMBEDDED
collins@3858 110 ifneq (${ARCH},arm)
phh@3224 111 CFLAGS += -DINCLUDE_TRACE
phh@3224 112 endif
collins@3858 113 endif
phh@3224 114
andrew@1373 115 ifdef DISTRIBUTION_ID
andrew@1373 116 CPPFLAGS += -DDISTRIBUTION_ID="\"$(DISTRIBUTION_ID)\""
andrew@1373 117 endif
andrew@1373 118
duke@0 119 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
duke@0 120 CFLAGS += $(CFLAGS_WARN/BYFILE)
duke@0 121
duke@0 122 # Do not use C++ exception handling
duke@0 123 CFLAGS += $(CFLAGS/NOEX)
duke@0 124
duke@0 125 # Extra flags from gnumake's invocation or environment
duke@0 126 CFLAGS += $(EXTRA_CFLAGS)
bobv@1650 127 LFLAGS += $(EXTRA_CFLAGS)
duke@0 128
dsamersoff@2472 129 # Don't set excutable bit on stack segment
dsamersoff@2472 130 # the same could be done by separate execstack command
dsamersoff@2472 131 LFLAGS += -Xlinker -z -Xlinker noexecstack
dsamersoff@2472 132
duke@0 133 LIBS += -lm -ldl -lpthread
duke@0 134
duke@0 135 # By default, link the *.o into the library, not the executable.
duke@0 136 LINK_INTO$(LINK_INTO) = LIBJVM
duke@0 137
duke@0 138 JDK_LIBDIR = $(JAVA_HOME)/jre/lib/$(LIBARCH)
duke@0 139
duke@0 140 #----------------------------------------------------------------------
duke@0 141 # jvm_db & dtrace
duke@0 142 include $(MAKEFILES_DIR)/dtrace.make
duke@0 143
duke@0 144 #----------------------------------------------------------------------
duke@0 145 # JVM
duke@0 146
phh@1144 147 JVM = jvm
phh@1144 148 LIBJVM = lib$(JVM).so
phh@1144 149 LIBJVM_G = lib$(JVM)$(G_SUFFIX).so
duke@0 150
dcubed@2884 151 LIBJVM_DEBUGINFO = lib$(JVM).debuginfo
dcubed@3476 152 LIBJVM_DIZ = lib$(JVM).diz
dcubed@2884 153 LIBJVM_G_DEBUGINFO = lib$(JVM)$(G_SUFFIX).debuginfo
dcubed@3476 154 LIBJVM_G_DIZ = lib$(JVM)$(G_SUFFIX).diz
dcubed@2884 155
kamg@2136 156 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt
stefank@1932 157
kamg@2136 158 SOURCE_PATHS=\
kamg@2136 159 $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
kamg@2136 160 \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) \))
kamg@2136 161 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
kamg@2136 162 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
kamg@2136 163 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
kamg@2136 164 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
stefank@1932 165
collins@3858 166 ifndef JAVASE_EMBEDDED
collins@3858 167 ifneq (${ARCH},arm)
phh@3224 168 SOURCE_PATHS+=$(shell if [ -d $(HS_ALT_SRC)/share/vm/jfr ]; then \
phh@3224 169 find $(HS_ALT_SRC)/share/vm/jfr -type d; \
phh@3224 170 fi)
phh@3224 171 endif
collins@3858 172 endif
phh@3224 173
kamg@2136 174 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
kamg@2136 175 CORE_PATHS+=$(GENERATED)/jvmtifiles
kamg@2136 176
kamg@2136 177 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
kamg@2136 178 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
kamg@2136 179
kamg@2136 180 COMPILER2_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/opto)
kamg@2136 181 COMPILER2_PATHS += $(call altsrc,$(HS_COMMON_SRC)/share/vm/libadt)
kamg@2136 182 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/opto
kamg@2136 183 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/libadt
kamg@2136 184 COMPILER2_PATHS += $(GENERATED)/adfiles
stefank@1932 185
dholmes@2387 186 SHARK_PATHS := $(GAMMADIR)/src/share/vm/shark
dholmes@2387 187
stefank@1932 188 # Include dirs per type.
stefank@1932 189 Src_Dirs/CORE := $(CORE_PATHS)
stefank@1932 190 Src_Dirs/COMPILER1 := $(CORE_PATHS) $(COMPILER1_PATHS)
stefank@1932 191 Src_Dirs/COMPILER2 := $(CORE_PATHS) $(COMPILER2_PATHS)
stefank@1932 192 Src_Dirs/TIERED := $(CORE_PATHS) $(COMPILER1_PATHS) $(COMPILER2_PATHS)
stefank@1932 193 Src_Dirs/ZERO := $(CORE_PATHS)
dholmes@2387 194 Src_Dirs/SHARK := $(CORE_PATHS) $(SHARK_PATHS)
stefank@1932 195 Src_Dirs := $(Src_Dirs/$(TYPE))
stefank@1932 196
stefank@1932 197 COMPILER2_SPECIFIC_FILES := opto libadt bcEscapeAnalyzer.cpp chaitin\* c2_\* runtime_\*
stefank@1932 198 COMPILER1_SPECIFIC_FILES := c1_\*
stefank@1932 199 SHARK_SPECIFIC_FILES := shark
stefank@1932 200 ZERO_SPECIFIC_FILES := zero
stefank@1932 201
stefank@1932 202 # Always exclude these.
stefank@1932 203 Src_Files_EXCLUDE := jsig.c jvmtiEnvRecommended.cpp jvmtiEnvStub.cpp
stefank@1932 204
stefank@1932 205 # Exclude per type.
stefank@1932 206 Src_Files_EXCLUDE/CORE := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
stefank@1932 207 Src_Files_EXCLUDE/COMPILER1 := $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
stefank@1932 208 Src_Files_EXCLUDE/COMPILER2 := $(COMPILER1_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES)
stefank@1932 209 Src_Files_EXCLUDE/TIERED := $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES)
stefank@1932 210 Src_Files_EXCLUDE/ZERO := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
stefank@1932 211 Src_Files_EXCLUDE/SHARK := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES)
stefank@1932 212
stefank@1932 213 Src_Files_EXCLUDE += $(Src_Files_EXCLUDE/$(TYPE))
stefank@1932 214
stefank@1932 215 # Special handling of arch model.
stefank@1932 216 ifeq ($(Platform_arch_model), x86_32)
stefank@1932 217 Src_Files_EXCLUDE += \*x86_64\*
stefank@1932 218 endif
stefank@1932 219 ifeq ($(Platform_arch_model), x86_64)
stefank@1932 220 Src_Files_EXCLUDE += \*x86_32\*
stefank@1932 221 endif
stefank@1932 222
stefank@1932 223 # Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
stefank@1932 224 define findsrc
stefank@1986 225 $(notdir $(shell find $(1)/. ! -name . -prune \
stefank@1986 226 -a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \
stefank@1986 227 -a ! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \)))
stefank@1932 228 endef
stefank@1932 229
stefank@1932 230 Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e)))
stefank@1932 231
stefank@1944 232 Obj_Files = $(sort $(addsuffix .o,$(basename $(Src_Files))))
stefank@1932 233
duke@0 234 JVM_OBJ_FILES = $(Obj_Files)
duke@0 235
duke@0 236 vm_version.o: $(filter-out vm_version.o,$(JVM_OBJ_FILES))
duke@0 237
never@1324 238 mapfile : $(MAPFILE) vm.def
duke@0 239 rm -f $@
never@1324 240 awk '{ if ($$0 ~ "INSERT VTABLE SYMBOLS HERE") \
never@1324 241 { system ("cat vm.def"); } \
never@1324 242 else \
never@1324 243 { print $$0 } \
never@1324 244 }' > $@ < $(MAPFILE)
duke@0 245
duke@0 246 mapfile_reorder : mapfile $(REORDERFILE)
duke@0 247 rm -f $@
duke@0 248 cat $^ > $@
duke@0 249
never@1324 250 vm.def: $(Res_Files) $(Obj_Files)
never@1324 251 sh $(GAMMADIR)/make/linux/makefiles/build_vm_def.sh *.o > $@
never@1324 252
andrew@2005 253 ifeq ($(STATIC_CXX),)
andrew@4189 254 ifeq ($(JVM_VARIANT_ZEROSHARK), true)
twisti@1661 255 STATIC_CXX = false
twisti@1661 256 else
andrew@2005 257 ifeq ($(ZERO_LIBARCH), ppc64)
andrew@2005 258 STATIC_CXX = false
andrew@2005 259 else
andrew@2005 260 STATIC_CXX = true
andrew@2005 261 endif
twisti@1661 262 endif
never@1025 263 endif
duke@0 264
duke@0 265 ifeq ($(LINK_INTO),AOUT)
duke@0 266 LIBJVM.o =
duke@0 267 LIBJVM_MAPFILE =
duke@0 268 LIBS_VM = $(LIBS)
duke@0 269 else
duke@0 270 LIBJVM.o = $(JVM_OBJ_FILES)
duke@0 271 LIBJVM_MAPFILE$(LDNOMAP) = mapfile_reorder
duke@0 272 LFLAGS_VM$(LDNOMAP) += $(MAPFLAG:FILENAME=$(LIBJVM_MAPFILE))
duke@0 273 LFLAGS_VM += $(SONAMEFLAG:SONAME=$(LIBJVM))
duke@0 274
duke@0 275 # JVM is statically linked with libgcc[_s] and libstdc++; this is needed to
duke@0 276 # get around library dependency and compatibility issues. Must use gcc not
duke@0 277 # g++ to link.
duke@0 278 ifeq ($(STATIC_CXX), true)
duke@0 279 LFLAGS_VM += $(STATIC_LIBGCC)
duke@0 280 LIBS_VM += $(STATIC_STDCXX)
duke@0 281 else
duke@0 282 LIBS_VM += -lstdc++
duke@0 283 endif
duke@0 284
duke@0 285 LIBS_VM += $(LIBS)
duke@0 286 endif
erikj@3751 287 ifeq ($(JVM_VARIANT_ZERO), true)
never@1025 288 LIBS_VM += $(LIBFFI_LIBS)
never@1025 289 endif
erikj@3751 290 ifeq ($(JVM_VARIANT_ZEROSHARK), true)
erikj@3751 291 LIBS_VM += $(LIBFFI_LIBS) $(LLVM_LIBS)
twisti@1661 292 LFLAGS_VM += $(LLVM_LDFLAGS)
twisti@1661 293 endif
duke@0 294
erikj@3325 295 LINK_VM = $(LINK_LIB.CC)
duke@0 296
duke@0 297 # rule for building precompiled header
stefank@1932 298 $(PRECOMPILED_HEADER):
duke@0 299 $(QUIETLY) echo Generating precompiled header $@
stefank@1932 300 $(QUIETLY) mkdir -p $(PRECOMPILED_HEADER_DIR)
erikj@3325 301 $(QUIETLY) $(COMPILE.CXX) $(DEPFLAGS) -x c++-header $(PRECOMPILED_HEADER_SRC) -o $@ $(COMPILE_DONE)
duke@0 302
duke@0 303 # making the library:
duke@0 304
duke@0 305 ifneq ($(JVM_BASE_ADDR),)
duke@0 306 # By default shared library is linked at base address == 0. Modify the
duke@0 307 # linker script if JVM prefers a different base location. It can also be
duke@0 308 # implemented with 'prelink -r'. But 'prelink' is not (yet) available on
duke@0 309 # our build platform (AS-2.1).
duke@0 310 LD_SCRIPT = libjvm.so.lds
duke@0 311 $(LD_SCRIPT): $(LIBJVM_MAPFILE)
duke@0 312 $(QUIETLY) { \
duke@0 313 rm -rf $@; \
duke@0 314 $(LINK_VM) -Wl,--verbose $(LFLAGS_VM) 2>&1 | \
duke@0 315 sed -e '/^======/,/^======/!d' \
duke@0 316 -e '/^======/d' \
duke@0 317 -e 's/0\( + SIZEOF_HEADERS\)/$(JVM_BASE_ADDR)\1/' \
duke@0 318 > $@; \
duke@0 319 }
duke@0 320 LD_SCRIPT_FLAG = -Wl,-T,$(LD_SCRIPT)
duke@0 321 endif
duke@0 322
duke@0 323 # With more recent Redhat releases (or the cutting edge version Fedora), if
duke@0 324 # SELinux is configured to be enabled, the runtime linker will fail to apply
duke@0 325 # the text relocation to libjvm.so considering that it is built as a non-PIC
duke@0 326 # DSO. To workaround that, we run chcon to libjvm.so after it is built. See
duke@0 327 # details in bug 6538311.
duke@0 328 $(LIBJVM): $(LIBJVM.o) $(LIBJVM_MAPFILE) $(LD_SCRIPT)
duke@0 329 $(QUIETLY) { \
duke@0 330 echo Linking vm...; \
erikj@3325 331 $(LINK_LIB.CXX/PRE_HOOK) \
duke@0 332 $(LINK_VM) $(LD_SCRIPT_FLAG) \
duke@0 333 $(LFLAGS_VM) -o $@ $(LIBJVM.o) $(LIBS_VM); \
erikj@3325 334 $(LINK_LIB.CXX/POST_HOOK) \
duke@0 335 rm -f $@.1; ln -s $@ $@.1; \
phh@1144 336 [ -f $(LIBJVM_G) ] || { ln -s $@ $(LIBJVM_G); ln -s $@.1 $(LIBJVM_G).1; }; \
bobv@1650 337 if [ \"$(CROSS_COMPILE_ARCH)\" = \"\" ] ; then \
bobv@1650 338 if [ -x /usr/sbin/selinuxenabled ] ; then \
bobv@1650 339 /usr/sbin/selinuxenabled; \
bobv@1650 340 if [ $$? = 0 ] ; then \
bobv@1650 341 /usr/bin/chcon -t textrel_shlib_t $@; \
bobv@1650 342 if [ $$? != 0 ]; then \
bobv@1650 343 echo "ERROR: Cannot chcon $@"; \
bobv@1650 344 fi \
bobv@1650 345 fi \
bobv@1650 346 fi \
bobv@1650 347 fi \
duke@0 348 }
dholmes@4181 349
andrew@4189 350 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
andrew@4189 351 ifneq ($(STRIP_POLICY),no_strip)
andrew@4189 352 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DEBUGINFO)
andrew@4189 353 $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DEBUGINFO) $@
andrew@4189 354 endif
andrew@4189 355 ifeq ($(STRIP_POLICY),all_strip)
andrew@4189 356 $(QUIETLY) $(STRIP) $@
andrew@4189 357 else
andrew@4189 358 ifeq ($(STRIP_POLICY),min_strip)
andrew@4189 359 $(QUIETLY) $(STRIP) -g $@
andrew@4189 360 # implied else here is no stripping at all
andrew@4189 361 endif
andrew@4189 362 endif
andrew@4189 363 endif
dcubed@2884 364 $(QUIETLY) [ -f $(LIBJVM_G_DEBUGINFO) ] || ln -s $(LIBJVM_DEBUGINFO) $(LIBJVM_G_DEBUGINFO)
andrew@4189 365 ifeq ($(ZIP_DEBUGINFO_FILES),1)
andrew@4189 366 ifneq ($(STRIP_POLICY),no_strip)
andrew@4189 367 $(ZIPEXE) -q -y $(LIBJVM_DIZ) $(LIBJVM_DEBUGINFO) $(LIBJVM_G_DEBUGINFO)
andrew@4189 368 $(RM) $(LIBJVM_DEBUGINFO) $(LIBJVM_G_DEBUGINFO)
andrew@4189 369 [ -f $(LIBJVM_G_DIZ) ] || { ln -s $(LIBJVM_DIZ) $(LIBJVM_G_DIZ); }
andrew@4189 370 endif
andrew@4189 371 endif
duke@0 372
dcubed@2884 373 DEST_SUBDIR = $(JDK_LIBDIR)/$(VM_SUBDIR)
dcubed@2884 374 DEST_JVM = $(DEST_SUBDIR)/$(LIBJVM)
dcubed@2884 375 DEST_JVM_DEBUGINFO = $(DEST_SUBDIR)/$(LIBJVM_DEBUGINFO)
dcubed@3476 376 DEST_JVM_DIZ = $(DEST_SUBDIR)/$(LIBJVM_DIZ)
duke@0 377
duke@0 378 install_jvm: $(LIBJVM)
duke@0 379 @echo "Copying $(LIBJVM) to $(DEST_JVM)"
dcubed@2884 380 $(QUIETLY) test -f $(LIBJVM_DEBUGINFO) && \
dcubed@2884 381 cp -f $(LIBJVM_DEBUGINFO) $(DEST_JVM_DEBUGINFO)
dcubed@3476 382 $(QUIETLY) test -f $(LIBJVM_DIZ) && \
dcubed@3476 383 cp -f $(LIBJVM_DIZ) $(DEST_JVM_DIZ)
duke@0 384 $(QUIETLY) cp -f $(LIBJVM) $(DEST_JVM) && echo "Done"
duke@0 385
duke@0 386 #----------------------------------------------------------------------
duke@0 387 # Other files
duke@0 388
duke@0 389 # Gamma launcher
duke@0 390 include $(MAKEFILES_DIR)/launcher.make
duke@0 391
duke@0 392 # Signal interposition library
duke@0 393 include $(MAKEFILES_DIR)/jsig.make
duke@0 394
duke@0 395 # Serviceability agent
duke@0 396 include $(MAKEFILES_DIR)/saproc.make
duke@0 397
mgerdin@3720 398 # Whitebox testing API
mgerdin@3720 399 include $(MAKEFILES_DIR)/wb.make
mgerdin@3720 400
duke@0 401 #----------------------------------------------------------------------
duke@0 402
andrew@4189 403 build: $(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(BUILDLIBSAPROC) $(WB_JAR) dtraceCheck
duke@0 404
duke@0 405 install: install_jvm install_jsig install_saproc
duke@0 406
duke@0 407 .PHONY: default build install install_jvm