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