Makefile revision 442
0N/A#
0N/A# Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved.
0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A#
0N/A# This code is free software; you can redistribute it and/or modify it
0N/A# under the terms of the GNU General Public License version 2 only, as
0N/A# published by the Free Software Foundation.
0N/A#
0N/A# This code is distributed in the hope that it will be useful, but WITHOUT
0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A# version 2 for more details (a copy is included in the LICENSE file that
0N/A# accompanied this code).
0N/A#
0N/A# You should have received a copy of the GNU General Public License version
0N/A# 2 along with this work; if not, write to the Free Software Foundation,
0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A#
0N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0N/A# CA 95054 USA or visit www.sun.com if you need additional information or
0N/A# have any questions.
0N/A#
0N/A#
0N/A
0N/AWorkSpace=$(HOTSPOTWORKSPACE)
0N/A
0N/A!ifdef ALT_BOOTDIR
0N/ABootStrapDir=$(ALT_BOOTDIR)
0N/A!else
0N/A!ifdef BOOTDIR
0N/ABootStrapDir=$(BOOTDIR)
0N/A!else
0N/A!ifdef JAVA_HOME
0N/ABootStrapDir=$(JAVA_HOME)
0N/A!endif
0N/A!endif
0N/A!endif
0N/A
91N/A!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/makedeps.make
0N/A
0N/A# Pick up rules for building JVMTI (JSR-163)
0N/AJvmtiOutDir=$(HOTSPOTBUILDSPACE)\jvmtifiles
91N/A!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make
0N/A
91N/APlatform=$(HOTSPOTWORKSPACE)/make/windows/platform_$(BUILDARCH)
0N/A
0N/Adefault:: $(AdditionalTargets) $(JvmtiGeneratedFiles)
0N/A
0N/AIncludeDBs_base=$(HOTSPOTWORKSPACE)/src/share/vm/includeDB_core \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_jvmti \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_gc \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_serial
0N/A
0N/A# Parallel gc files
0N/AIncludeDBs_gc=$(HOTSPOTWORKSPACE)/src/share/vm/includeDB_gc_parallel \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_shared \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_parNew \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_parallelScavenge \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_concurrentMarkSweep \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_g1
0N/A
0N/A
0N/AIncludeDBs_kernel =$(IncludeDBs_base) \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
0N/A
0N/AIncludeDBs_core =$(IncludeDBs_base) $(IncludeDBs_gc) \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_features
0N/A
0N/AIncludeDBs_compiler1=$(IncludeDBs_core) \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
0N/A
0N/AIncludeDBs_compiler2=$(IncludeDBs_core) \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
0N/A
0N/AIncludeDBs_tiered=$(IncludeDBs_core) \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1 \
0N/A $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
0N/A
0N/A
0N/A!if "$(Variant)" == "compiler1"
0N/AIncludeDBs = $(IncludeDBs_compiler1)
0N/A!endif
0N/A
0N/A!if "$(Variant)" == "compiler2"
0N/AIncludeDBs = $(IncludeDBs_compiler2)
91N/A# Pick up rules for building adlc
0N/A!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
0N/A!endif
0N/A
0N/A!if "$(Variant)" == "tiered"
0N/AIncludeDBs = $(IncludeDBs_tiered)
91N/A# Pick up rules for building adlc
0N/A!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
0N/A!endif
0N/A
0N/A!if "$(Variant)" == "core"
0N/AIncludeDBs = $(IncludeDBs_core)
0N/A!endif
0N/A
0N/A!if "$(Variant)" == "kernel"
0N/AIncludeDBs = $(IncludeDBs_kernel)
0N/A!endif
0N/A
0N/A!include $(HOTSPOTWORKSPACE)/make/hotspot_version
0N/A
0N/A!if "$(HOTSPOT_RELEASE_VERSION)" != ""
0N/AHOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)"
0N/A!else
0N/AHOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)"
0N/A!endif
0N/AHOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
0N/A!if "$(HOTSPOT_BUILD_VERSION)" != ""
0N/AHOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)"
0N/A!endif
0N/A!if "$(JRE_RELEASE_VERSION)" != ""
0N/AJRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)"
0N/A!else
0N/AJRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)"
0N/A!endif
0N/A
0N/A# Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
0N/A# and if it is not see if we have the src/closed directory
0N/A!if "$(HOTSPOT_VM_DISTRO)" != ""
0N/AHOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)"
0N/A!else
0N/A!if exists($(HOTSPOTWORKSPACE)\src\closed)
0N/AHOTSPOT_VM_DISTRO="Java HotSpot(TM)"
0N/A!else
0N/AHOTSPOT_VM_DISTRO="OpenJDK"
0N/A!endif
0N/A!endif
0N/A
0N/AMakeDepsIDEOptions = $(MakeDepsIDEOptions) \
0N/A -includeDB_kernel $(HOTSPOTBUILDSPACE)\includeDB_kernel \
0N/A -includeDB_core $(HOTSPOTBUILDSPACE)\includeDB_core \
0N/A -includeDB_compiler1 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
0N/A -includeDB_compiler2 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
0N/A -includeDB_tiered $(HOTSPOTBUILDSPACE)\includeDB_tiered \
0N/A -platform $(Platform) \
0N/A -define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \
0N/A -define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \
0N/A -define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\"
0N/A
0N/Aincls:
0N/A @mkdir incls
0N/A
0N/AincludeDB.current $(ProjectFile) Dependencies: local.make $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class \
0N/A $(IncludeDBs) incls
0N/A @rm -f includeDB $(HOTSPOTBUILDSPACE)\includeDB_kernel \
0N/A $(HOTSPOTBUILDSPACE)\includeDB_core \
0N/A $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
0N/A $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
0N/A $(HOTSPOTBUILDSPACE)\includeDB_tiered
0N/A @cat $(IncludeDBs_kernel) > $(HOTSPOTBUILDSPACE)\includeDB_kernel
0N/A @cat $(IncludeDBs_core) > $(HOTSPOTBUILDSPACE)\includeDB_core
0N/A @cat $(IncludeDBs_compiler1) > $(HOTSPOTBUILDSPACE)\includeDB_compiler1
0N/A @cat $(IncludeDBs_compiler2) > $(HOTSPOTBUILDSPACE)\includeDB_compiler2
0N/A @cat $(IncludeDBs_tiered) > $(HOTSPOTBUILDSPACE)\includeDB_tiered
0N/A @echo java.cpp jni.h > includeDB
0N/A @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps diffs WinGammaPlatform$(VcVersion) \
0N/A $(Platform) includeDB.current $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
0N/A @rm -f includeDB.current
0N/A @cp includeDB includeDB.current
0N/A
0N/Alists: $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class FORCE
0N/A @if exist incls rmdir /s /q incls
0N/A @rm -f includeDB
0N/A @cat $(IncludeDBs) > includeDB
0N/A @mkdir incls
0N/A @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps WinGammaPlatform$(VcVersion) \
0N/A $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
0N/A @rm -f includeDB.current
0N/A @cp includeDB includeDB.current
0N/A
0N/Aclean:
0N/A @rm -rf incls $(HOTSPOTBUILDSPACE)/classes
0N/A @rm -f includeDB includeDB.current $(ProjectFile) Dependencies
0N/A
0N/A$(HOTSPOTBUILDSPACE)/classes/MakeDeps.class: $(MakeDepsSources)
0N/A @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
0N/A @mkdir $(HOTSPOTBUILDSPACE)\classes
0N/A @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\MakeDeps -g -d $(HOTSPOTBUILDSPACE)/classes $(MakeDepsSources)
0N/A
FORCE: