annotate make/aix/makefiles/vm.make @ 5995:e7cbc95179c4

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