annotate make/linux/makefiles/vm.make @ 3557:b7ae1ee1d2e4

7167625: Adjustments for SE-Embedded build process Summary: Simple change to the SE-Embedded build rules that should not affect any other OpenJDK users. Reviewed-by: kvn, dholmes
author collins
date Fri, 11 May 2012 11:30:03 -0700
parents d652a62d6e03
children 4767c78f3504
rev   line source
duke@0 1 #
dcubed@3546 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@1563 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1563 20 # or visit www.oracle.com if you need additional information or have any
trims@1563 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@2208 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@1992 39 DEP_DIR = $(GENERATED)/dependencies
duke@0 40
stefank@1992 41 # reads the generated files defining the set of .o's and the .o .h dependencies
stefank@1992 42 -include $(DEP_DIR)/*.d
duke@0 43
duke@0 44 # read machine-specific adjustments (%%% should do this via buildtree.make?)
never@1069 45 ifeq ($(ZERO_BUILD), true)
never@1069 46 include $(MAKEFILES_DIR)/zeroshark.make
never@1069 47 else
never@1069 48 include $(MAKEFILES_DIR)/$(BUILDARCH).make
never@1069 49 endif
duke@0 50
duke@0 51 # set VPATH so make knows where to look for source files
stefank@1992 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@1992 55 Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles
stefank@1992 56 VPATH += $(Src_Dirs_V:%=%:)
duke@0 57
stefank@1992 58 # set INCLUDES for C preprocessor.
stefank@1992 59 Src_Dirs_I += $(GENERATED)
stefank@1992 60 # The order is important for the precompiled headers to work.
stefank@1992 61 INCLUDES += $(PRECOMPILED_HEADER_DIR:%=-I%) $(Src_Dirs_I:%=-I%)
duke@0 62
dcubed@2955 63 # SYMFLAG is used by {jsig,saproc}.make
dcubed@3546 64 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
dcubed@2955 65 # always build with debug info when we can create .debuginfo files
duke@0 66 SYMFLAG = -g
duke@0 67 else
dcubed@2955 68 ifeq (${VERSION}, debug)
dcubed@2955 69 SYMFLAG = -g
dcubed@2955 70 else
dcubed@2955 71 SYMFLAG =
dcubed@2955 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@3391 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
ohrstrom@3390 100 # This is VERY important! The version define must only be supplied to vm_version.o
ohrstrom@3390 101 # If not, ccache will not re-use the cache at all, since the version string might contain
ohrstrom@3390 102 # a time and date.
erikj@3391 103 vm_version.o: CXXFLAGS += ${JRE_VERSION}
ohrstrom@3390 104
collins@3557 105 ifndef JAVASE_EMBEDDED
collins@3557 106 ifneq (${ARCH},arm)
phh@3294 107 CFLAGS += -DINCLUDE_TRACE
phh@3294 108 endif
collins@3557 109 endif
phh@3294 110
duke@0 111 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
duke@0 112 CFLAGS += $(CFLAGS_WARN/BYFILE)
duke@0 113
duke@0 114 # Do not use C++ exception handling
duke@0 115 CFLAGS += $(CFLAGS/NOEX)
duke@0 116
duke@0 117 # Extra flags from gnumake's invocation or environment
duke@0 118 CFLAGS += $(EXTRA_CFLAGS)
bobv@1703 119 LFLAGS += $(EXTRA_CFLAGS)
duke@0 120
dsamersoff@2546 121 # Don't set excutable bit on stack segment
dsamersoff@2546 122 # the same could be done by separate execstack command
dsamersoff@2546 123 LFLAGS += -Xlinker -z -Xlinker noexecstack
dsamersoff@2546 124
duke@0 125 LIBS += -lm -ldl -lpthread
duke@0 126
duke@0 127 # By default, link the *.o into the library, not the executable.
duke@0 128 LINK_INTO$(LINK_INTO) = LIBJVM
duke@0 129
duke@0 130 JDK_LIBDIR = $(JAVA_HOME)/jre/lib/$(LIBARCH)
duke@0 131
duke@0 132 #----------------------------------------------------------------------
duke@0 133 # jvm_db & dtrace
duke@0 134 include $(MAKEFILES_DIR)/dtrace.make
duke@0 135
duke@0 136 #----------------------------------------------------------------------
duke@0 137 # JVM
duke@0 138
phh@1197 139 JVM = jvm
phh@1197 140 LIBJVM = lib$(JVM).so
phh@1197 141 LIBJVM_G = lib$(JVM)$(G_SUFFIX).so
duke@0 142
dcubed@2955 143 LIBJVM_DEBUGINFO = lib$(JVM).debuginfo
dcubed@3546 144 LIBJVM_DIZ = lib$(JVM).diz
dcubed@2955 145 LIBJVM_G_DEBUGINFO = lib$(JVM)$(G_SUFFIX).debuginfo
dcubed@3546 146 LIBJVM_G_DIZ = lib$(JVM)$(G_SUFFIX).diz
dcubed@2955 147
kamg@2208 148 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt
stefank@1992 149
kamg@2208 150 SOURCE_PATHS=\
kamg@2208 151 $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
kamg@2208 152 \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) \))
kamg@2208 153 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
kamg@2208 154 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
kamg@2208 155 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
kamg@2208 156 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
stefank@1992 157
collins@3557 158 ifndef JAVASE_EMBEDDED
collins@3557 159 ifneq (${ARCH},arm)
phh@3294 160 SOURCE_PATHS+=$(shell if [ -d $(HS_ALT_SRC)/share/vm/jfr ]; then \
phh@3294 161 find $(HS_ALT_SRC)/share/vm/jfr -type d; \
phh@3294 162 fi)
phh@3294 163 endif
collins@3557 164 endif
phh@3294 165
kamg@2208 166 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
kamg@2208 167 CORE_PATHS+=$(GENERATED)/jvmtifiles
kamg@2208 168
kamg@2208 169 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
kamg@2208 170 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
kamg@2208 171
kamg@2208 172 COMPILER2_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/opto)
kamg@2208 173 COMPILER2_PATHS += $(call altsrc,$(HS_COMMON_SRC)/share/vm/libadt)
kamg@2208 174 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/opto
kamg@2208 175 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/libadt
kamg@2208 176 COMPILER2_PATHS += $(GENERATED)/adfiles
stefank@1992 177
dholmes@2457 178 SHARK_PATHS := $(GAMMADIR)/src/share/vm/shark
dholmes@2457 179
stefank@1992 180 # Include dirs per type.
stefank@1992 181 Src_Dirs/CORE := $(CORE_PATHS)
stefank@1992 182 Src_Dirs/COMPILER1 := $(CORE_PATHS) $(COMPILER1_PATHS)
stefank@1992 183 Src_Dirs/COMPILER2 := $(CORE_PATHS) $(COMPILER2_PATHS)
stefank@1992 184 Src_Dirs/TIERED := $(CORE_PATHS) $(COMPILER1_PATHS) $(COMPILER2_PATHS)
stefank@1992 185 Src_Dirs/ZERO := $(CORE_PATHS)
dholmes@2457 186 Src_Dirs/SHARK := $(CORE_PATHS) $(SHARK_PATHS)
stefank@1992 187 Src_Dirs := $(Src_Dirs/$(TYPE))
stefank@1992 188
stefank@1992 189 COMPILER2_SPECIFIC_FILES := opto libadt bcEscapeAnalyzer.cpp chaitin\* c2_\* runtime_\*
stefank@1992 190 COMPILER1_SPECIFIC_FILES := c1_\*
stefank@1992 191 SHARK_SPECIFIC_FILES := shark
stefank@1992 192 ZERO_SPECIFIC_FILES := zero
stefank@1992 193
stefank@1992 194 # Always exclude these.
stefank@1992 195 Src_Files_EXCLUDE := jsig.c jvmtiEnvRecommended.cpp jvmtiEnvStub.cpp
stefank@1992 196
stefank@1992 197 # Exclude per type.
stefank@1992 198 Src_Files_EXCLUDE/CORE := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
stefank@1992 199 Src_Files_EXCLUDE/COMPILER1 := $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
stefank@1992 200 Src_Files_EXCLUDE/COMPILER2 := $(COMPILER1_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES)
stefank@1992 201 Src_Files_EXCLUDE/TIERED := $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES)
stefank@1992 202 Src_Files_EXCLUDE/ZERO := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
stefank@1992 203 Src_Files_EXCLUDE/SHARK := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES)
stefank@1992 204
stefank@1992 205 Src_Files_EXCLUDE += $(Src_Files_EXCLUDE/$(TYPE))
stefank@1992 206
stefank@1992 207 # Special handling of arch model.
stefank@1992 208 ifeq ($(Platform_arch_model), x86_32)
stefank@1992 209 Src_Files_EXCLUDE += \*x86_64\*
stefank@1992 210 endif
stefank@1992 211 ifeq ($(Platform_arch_model), x86_64)
stefank@1992 212 Src_Files_EXCLUDE += \*x86_32\*
stefank@1992 213 endif
stefank@1992 214
stefank@1992 215 # Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
stefank@1992 216 define findsrc
stefank@2046 217 $(notdir $(shell find $(1)/. ! -name . -prune \
stefank@2046 218 -a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \
stefank@2046 219 -a ! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \)))
stefank@1992 220 endef
stefank@1992 221
stefank@1992 222 Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e)))
stefank@1992 223
stefank@2004 224 Obj_Files = $(sort $(addsuffix .o,$(basename $(Src_Files))))
stefank@1992 225
duke@0 226 JVM_OBJ_FILES = $(Obj_Files)
duke@0 227
duke@0 228 vm_version.o: $(filter-out vm_version.o,$(JVM_OBJ_FILES))
duke@0 229
never@1381 230 mapfile : $(MAPFILE) vm.def
duke@0 231 rm -f $@
never@1381 232 awk '{ if ($$0 ~ "INSERT VTABLE SYMBOLS HERE") \
never@1381 233 { system ("cat vm.def"); } \
never@1381 234 else \
never@1381 235 { print $$0 } \
never@1381 236 }' > $@ < $(MAPFILE)
duke@0 237
duke@0 238 mapfile_reorder : mapfile $(REORDERFILE)
duke@0 239 rm -f $@
duke@0 240 cat $^ > $@
duke@0 241
never@1381 242 vm.def: $(Res_Files) $(Obj_Files)
never@1381 243 sh $(GAMMADIR)/make/linux/makefiles/build_vm_def.sh *.o > $@
never@1381 244
twisti@1714 245 ifeq ($(SHARK_BUILD), true)
never@1069 246 STATIC_CXX = false
never@1069 247 else
twisti@1714 248 ifeq ($(ZERO_LIBARCH), ppc64)
twisti@1714 249 STATIC_CXX = false
twisti@1714 250 else
twisti@1714 251 STATIC_CXX = true
twisti@1714 252 endif
never@1069 253 endif
duke@0 254
duke@0 255 ifeq ($(LINK_INTO),AOUT)
duke@0 256 LIBJVM.o =
duke@0 257 LIBJVM_MAPFILE =
duke@0 258 LIBS_VM = $(LIBS)
duke@0 259 else
duke@0 260 LIBJVM.o = $(JVM_OBJ_FILES)
duke@0 261 LIBJVM_MAPFILE$(LDNOMAP) = mapfile_reorder
duke@0 262 LFLAGS_VM$(LDNOMAP) += $(MAPFLAG:FILENAME=$(LIBJVM_MAPFILE))
duke@0 263 LFLAGS_VM += $(SONAMEFLAG:SONAME=$(LIBJVM))
duke@0 264
duke@0 265 # JVM is statically linked with libgcc[_s] and libstdc++; this is needed to
duke@0 266 # get around library dependency and compatibility issues. Must use gcc not
duke@0 267 # g++ to link.
duke@0 268 ifeq ($(STATIC_CXX), true)
duke@0 269 LFLAGS_VM += $(STATIC_LIBGCC)
duke@0 270 LIBS_VM += $(STATIC_STDCXX)
duke@0 271 else
duke@0 272 LIBS_VM += -lstdc++
duke@0 273 endif
duke@0 274
duke@0 275 LIBS_VM += $(LIBS)
duke@0 276 endif
never@1069 277 ifeq ($(ZERO_BUILD), true)
never@1069 278 LIBS_VM += $(LIBFFI_LIBS)
never@1069 279 endif
twisti@1714 280 ifeq ($(SHARK_BUILD), true)
twisti@1714 281 LFLAGS_VM += $(LLVM_LDFLAGS)
twisti@1714 282 LIBS_VM += $(LLVM_LIBS)
twisti@1714 283 endif
duke@0 284
erikj@3391 285 LINK_VM = $(LINK_LIB.CC)
duke@0 286
duke@0 287 # rule for building precompiled header
stefank@1992 288 $(PRECOMPILED_HEADER):
duke@0 289 $(QUIETLY) echo Generating precompiled header $@
stefank@1992 290 $(QUIETLY) mkdir -p $(PRECOMPILED_HEADER_DIR)
erikj@3391 291 $(QUIETLY) $(COMPILE.CXX) $(DEPFLAGS) -x c++-header $(PRECOMPILED_HEADER_SRC) -o $@ $(COMPILE_DONE)
duke@0 292
duke@0 293 # making the library:
duke@0 294
duke@0 295 ifneq ($(JVM_BASE_ADDR),)
duke@0 296 # By default shared library is linked at base address == 0. Modify the
duke@0 297 # linker script if JVM prefers a different base location. It can also be
duke@0 298 # implemented with 'prelink -r'. But 'prelink' is not (yet) available on
duke@0 299 # our build platform (AS-2.1).
duke@0 300 LD_SCRIPT = libjvm.so.lds
duke@0 301 $(LD_SCRIPT): $(LIBJVM_MAPFILE)
duke@0 302 $(QUIETLY) { \
duke@0 303 rm -rf $@; \
duke@0 304 $(LINK_VM) -Wl,--verbose $(LFLAGS_VM) 2>&1 | \
duke@0 305 sed -e '/^======/,/^======/!d' \
duke@0 306 -e '/^======/d' \
duke@0 307 -e 's/0\( + SIZEOF_HEADERS\)/$(JVM_BASE_ADDR)\1/' \
duke@0 308 > $@; \
duke@0 309 }
duke@0 310 LD_SCRIPT_FLAG = -Wl,-T,$(LD_SCRIPT)
duke@0 311 endif
duke@0 312
duke@0 313 # With more recent Redhat releases (or the cutting edge version Fedora), if
duke@0 314 # SELinux is configured to be enabled, the runtime linker will fail to apply
duke@0 315 # the text relocation to libjvm.so considering that it is built as a non-PIC
duke@0 316 # DSO. To workaround that, we run chcon to libjvm.so after it is built. See
duke@0 317 # details in bug 6538311.
duke@0 318 $(LIBJVM): $(LIBJVM.o) $(LIBJVM_MAPFILE) $(LD_SCRIPT)
duke@0 319 $(QUIETLY) { \
duke@0 320 echo Linking vm...; \
erikj@3391 321 $(LINK_LIB.CXX/PRE_HOOK) \
duke@0 322 $(LINK_VM) $(LD_SCRIPT_FLAG) \
duke@0 323 $(LFLAGS_VM) -o $@ $(LIBJVM.o) $(LIBS_VM); \
erikj@3391 324 $(LINK_LIB.CXX/POST_HOOK) \
duke@0 325 rm -f $@.1; ln -s $@ $@.1; \
phh@1197 326 [ -f $(LIBJVM_G) ] || { ln -s $@ $(LIBJVM_G); ln -s $@.1 $(LIBJVM_G).1; }; \
bobv@1703 327 if [ \"$(CROSS_COMPILE_ARCH)\" = \"\" ] ; then \
bobv@1703 328 if [ -x /usr/sbin/selinuxenabled ] ; then \
bobv@1703 329 /usr/sbin/selinuxenabled; \
bobv@1703 330 if [ $$? = 0 ] ; then \
bobv@1703 331 /usr/bin/chcon -t textrel_shlib_t $@; \
bobv@1703 332 if [ $$? != 0 ]; then \
bobv@1703 333 echo "ERROR: Cannot chcon $@"; \
bobv@1703 334 fi \
bobv@1703 335 fi \
bobv@1703 336 fi \
bobv@1703 337 fi \
duke@0 338 }
dcubed@2955 339 ifeq ($(CROSS_COMPILE_ARCH),)
dcubed@3546 340 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
dcubed@2955 341 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DEBUGINFO)
dcubed@2955 342 $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DEBUGINFO) $@
dcubed@2955 343 ifeq ($(STRIP_POLICY),all_strip)
dcubed@2955 344 $(QUIETLY) $(STRIP) $@
dcubed@2955 345 else
dcubed@2955 346 ifeq ($(STRIP_POLICY),min_strip)
dcubed@2955 347 $(QUIETLY) $(STRIP) -g $@
dcubed@2955 348 # implied else here is no stripping at all
dcubed@2955 349 endif
dcubed@2955 350 endif
dcubed@2955 351 $(QUIETLY) [ -f $(LIBJVM_G_DEBUGINFO) ] || ln -s $(LIBJVM_DEBUGINFO) $(LIBJVM_G_DEBUGINFO)
dcubed@3546 352 ifeq ($(ZIP_DEBUGINFO_FILES),1)
dcubed@3546 353 $(ZIPEXE) -q -y $(LIBJVM_DIZ) $(LIBJVM_DEBUGINFO) $(LIBJVM_G_DEBUGINFO)
dcubed@3546 354 $(RM) $(LIBJVM_DEBUGINFO) $(LIBJVM_G_DEBUGINFO)
dcubed@3546 355 [ -f $(LIBJVM_G_DIZ) ] || { ln -s $(LIBJVM_DIZ) $(LIBJVM_G_DIZ); }
dcubed@3546 356 endif
dcubed@2955 357 endif
dcubed@2955 358 endif
duke@0 359
dcubed@2955 360 DEST_SUBDIR = $(JDK_LIBDIR)/$(VM_SUBDIR)
dcubed@2955 361 DEST_JVM = $(DEST_SUBDIR)/$(LIBJVM)
dcubed@2955 362 DEST_JVM_DEBUGINFO = $(DEST_SUBDIR)/$(LIBJVM_DEBUGINFO)
dcubed@3546 363 DEST_JVM_DIZ = $(DEST_SUBDIR)/$(LIBJVM_DIZ)
duke@0 364
duke@0 365 install_jvm: $(LIBJVM)
duke@0 366 @echo "Copying $(LIBJVM) to $(DEST_JVM)"
dcubed@2955 367 $(QUIETLY) test -f $(LIBJVM_DEBUGINFO) && \
dcubed@2955 368 cp -f $(LIBJVM_DEBUGINFO) $(DEST_JVM_DEBUGINFO)
dcubed@3546 369 $(QUIETLY) test -f $(LIBJVM_DIZ) && \
dcubed@3546 370 cp -f $(LIBJVM_DIZ) $(DEST_JVM_DIZ)
duke@0 371 $(QUIETLY) cp -f $(LIBJVM) $(DEST_JVM) && echo "Done"
duke@0 372
duke@0 373 #----------------------------------------------------------------------
duke@0 374 # Other files
duke@0 375
duke@0 376 # Gamma launcher
duke@0 377 include $(MAKEFILES_DIR)/launcher.make
duke@0 378
duke@0 379 # Signal interposition library
duke@0 380 include $(MAKEFILES_DIR)/jsig.make
duke@0 381
duke@0 382 # Serviceability agent
duke@0 383 include $(MAKEFILES_DIR)/saproc.make
duke@0 384
duke@0 385 #----------------------------------------------------------------------
duke@0 386
stefank@1992 387 build: $(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(BUILDLIBSAPROC)
duke@0 388
duke@0 389 install: install_jvm install_jsig install_saproc
duke@0 390
duke@0 391 .PHONY: default build install install_jvm