annotate make/windows/projectfiles/common/Makefile @ 1563:c18cbe5936b8

6941466: Oracle rebranding changes for Hotspot repositories Summary: Change all the Sun copyrights to Oracle copyright Reviewed-by: ohair
author trims
date Thu, 27 May 2010 19:08:38 -0700
parents 0fc81f0a8ca8
children f95d63e2154a c7db7adb83b4
rev   line source
duke@0 1 #
trims@1563 2 # Copyright (c) 1999, 2008, 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 WorkSpace=$(HOTSPOTWORKSPACE)
duke@0 26
duke@0 27 !ifdef ALT_BOOTDIR
duke@0 28 BootStrapDir=$(ALT_BOOTDIR)
duke@0 29 !else
duke@0 30 !ifdef BOOTDIR
duke@0 31 BootStrapDir=$(BOOTDIR)
duke@0 32 !else
duke@0 33 !ifdef JAVA_HOME
duke@0 34 BootStrapDir=$(JAVA_HOME)
duke@0 35 !endif
duke@0 36 !endif
duke@0 37 !endif
duke@0 38
kamg@91 39 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/makedeps.make
duke@0 40
duke@0 41 # Pick up rules for building JVMTI (JSR-163)
duke@0 42 JvmtiOutDir=$(HOTSPOTBUILDSPACE)\jvmtifiles
kamg@91 43 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make
duke@0 44
kamg@91 45 Platform=$(HOTSPOTWORKSPACE)/make/windows/platform_$(BUILDARCH)
duke@0 46
duke@0 47 default:: $(AdditionalTargets) $(JvmtiGeneratedFiles)
duke@0 48
duke@0 49 IncludeDBs_base=$(HOTSPOTWORKSPACE)/src/share/vm/includeDB_core \
duke@0 50 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_jvmti \
duke@0 51 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_gc \
duke@0 52 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_serial
duke@0 53
duke@0 54 # Parallel gc files
duke@0 55 IncludeDBs_gc=$(HOTSPOTWORKSPACE)/src/share/vm/includeDB_gc_parallel \
duke@0 56 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_shared \
duke@0 57 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_parNew \
duke@0 58 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_parallelScavenge \
jmasa@447 59 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_concurrentMarkSweep \
jmasa@447 60 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_g1
duke@0 61
duke@0 62
duke@0 63 IncludeDBs_kernel =$(IncludeDBs_base) \
duke@0 64 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
duke@0 65
duke@0 66 IncludeDBs_core =$(IncludeDBs_base) $(IncludeDBs_gc) \
duke@0 67 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_features
duke@0 68
duke@0 69 IncludeDBs_compiler1=$(IncludeDBs_core) \
duke@0 70 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
duke@0 71
duke@0 72 IncludeDBs_compiler2=$(IncludeDBs_core) \
duke@0 73 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
duke@0 74
duke@0 75 IncludeDBs_tiered=$(IncludeDBs_core) \
duke@0 76 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1 \
duke@0 77 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
duke@0 78
duke@0 79
duke@0 80 !if "$(Variant)" == "compiler1"
duke@0 81 IncludeDBs = $(IncludeDBs_compiler1)
duke@0 82 !endif
duke@0 83
duke@0 84 !if "$(Variant)" == "compiler2"
duke@0 85 IncludeDBs = $(IncludeDBs_compiler2)
duke@0 86 # Pick up rules for building adlc
kamg@91 87 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
duke@0 88 !endif
duke@0 89
duke@0 90 !if "$(Variant)" == "tiered"
duke@0 91 IncludeDBs = $(IncludeDBs_tiered)
duke@0 92 # Pick up rules for building adlc
kamg@91 93 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
duke@0 94 !endif
duke@0 95
duke@0 96 !if "$(Variant)" == "core"
duke@0 97 IncludeDBs = $(IncludeDBs_core)
duke@0 98 !endif
duke@0 99
duke@0 100 !if "$(Variant)" == "kernel"
duke@0 101 IncludeDBs = $(IncludeDBs_kernel)
duke@0 102 !endif
duke@0 103
duke@0 104 !include $(HOTSPOTWORKSPACE)/make/hotspot_version
duke@0 105
duke@0 106 !if "$(HOTSPOT_RELEASE_VERSION)" != ""
duke@0 107 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)"
duke@0 108 !else
duke@0 109 HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)"
duke@0 110 !endif
duke@0 111 HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
duke@0 112 !if "$(HOTSPOT_BUILD_VERSION)" != ""
duke@0 113 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)"
duke@0 114 !endif
duke@0 115 !if "$(JRE_RELEASE_VERSION)" != ""
duke@0 116 JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)"
duke@0 117 !else
duke@0 118 JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)"
duke@0 119 !endif
duke@0 120
duke@0 121 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
duke@0 122 # and if it is not see if we have the src/closed directory
duke@0 123 !if "$(HOTSPOT_VM_DISTRO)" != ""
duke@0 124 HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)"
duke@0 125 !else
duke@0 126 !if exists($(HOTSPOTWORKSPACE)\src\closed)
duke@0 127 HOTSPOT_VM_DISTRO="Java HotSpot(TM)"
duke@0 128 !else
duke@0 129 HOTSPOT_VM_DISTRO="OpenJDK"
duke@0 130 !endif
duke@0 131 !endif
duke@0 132
duke@0 133 MakeDepsIDEOptions = $(MakeDepsIDEOptions) \
duke@0 134 -includeDB_kernel $(HOTSPOTBUILDSPACE)\includeDB_kernel \
duke@0 135 -includeDB_core $(HOTSPOTBUILDSPACE)\includeDB_core \
duke@0 136 -includeDB_compiler1 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
duke@0 137 -includeDB_compiler2 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
duke@0 138 -includeDB_tiered $(HOTSPOTBUILDSPACE)\includeDB_tiered \
duke@0 139 -platform $(Platform) \
duke@0 140 -define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \
duke@0 141 -define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \
duke@0 142 -define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\"
duke@0 143
duke@0 144 incls:
duke@0 145 @mkdir incls
duke@0 146
duke@0 147 includeDB.current $(ProjectFile) Dependencies: local.make $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class \
duke@0 148 $(IncludeDBs) incls
duke@0 149 @rm -f includeDB $(HOTSPOTBUILDSPACE)\includeDB_kernel \
duke@0 150 $(HOTSPOTBUILDSPACE)\includeDB_core \
duke@0 151 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
duke@0 152 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
duke@0 153 $(HOTSPOTBUILDSPACE)\includeDB_tiered
duke@0 154 @cat $(IncludeDBs_kernel) > $(HOTSPOTBUILDSPACE)\includeDB_kernel
duke@0 155 @cat $(IncludeDBs_core) > $(HOTSPOTBUILDSPACE)\includeDB_core
duke@0 156 @cat $(IncludeDBs_compiler1) > $(HOTSPOTBUILDSPACE)\includeDB_compiler1
duke@0 157 @cat $(IncludeDBs_compiler2) > $(HOTSPOTBUILDSPACE)\includeDB_compiler2
duke@0 158 @cat $(IncludeDBs_tiered) > $(HOTSPOTBUILDSPACE)\includeDB_tiered
duke@0 159 @echo java.cpp jni.h > includeDB
duke@0 160 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps diffs WinGammaPlatform$(VcVersion) \
duke@0 161 $(Platform) includeDB.current $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
duke@0 162 @rm -f includeDB.current
duke@0 163 @cp includeDB includeDB.current
duke@0 164
duke@0 165 lists: $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class FORCE
duke@0 166 @if exist incls rmdir /s /q incls
duke@0 167 @rm -f includeDB
duke@0 168 @cat $(IncludeDBs) > includeDB
duke@0 169 @mkdir incls
duke@0 170 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps WinGammaPlatform$(VcVersion) \
duke@0 171 $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
duke@0 172 @rm -f includeDB.current
duke@0 173 @cp includeDB includeDB.current
duke@0 174
duke@0 175 clean:
duke@0 176 @rm -rf incls $(HOTSPOTBUILDSPACE)/classes
duke@0 177 @rm -f includeDB includeDB.current $(ProjectFile) Dependencies
duke@0 178
duke@0 179 $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class: $(MakeDepsSources)
duke@0 180 @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
duke@0 181 @mkdir $(HOTSPOTBUILDSPACE)\classes
andrew@1027 182 @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\MakeDeps -d $(HOTSPOTBUILDSPACE)/classes $(MakeDepsSources)
duke@0 183
duke@0 184 FORCE: