annotate make/windows/projectfiles/common/Makefile @ 196:d1605aabd0a1

6719955: Update copyright year Summary: Update copyright year for files that have been modified in 2008 Reviewed-by: ohair, tbell
author xdono
date Wed, 02 Jul 2008 12:55:16 -0700
parents a294fd0c4b38
children 8fa025608ec6
rev   line source
duke@0 1 #
xdono@196 2 # Copyright 1999-2008 Sun Microsystems, Inc. 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 #
duke@0 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@0 20 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@0 21 # have any 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 \
duke@0 59 $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_concurrentMarkSweep
duke@0 60
duke@0 61
duke@0 62 IncludeDBs_kernel =$(IncludeDBs_base) \
duke@0 63 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
duke@0 64
duke@0 65 IncludeDBs_core =$(IncludeDBs_base) $(IncludeDBs_gc) \
duke@0 66 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_features
duke@0 67
duke@0 68 IncludeDBs_compiler1=$(IncludeDBs_core) \
duke@0 69 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
duke@0 70
duke@0 71 IncludeDBs_compiler2=$(IncludeDBs_core) \
duke@0 72 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
duke@0 73
duke@0 74 IncludeDBs_tiered=$(IncludeDBs_core) \
duke@0 75 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1 \
duke@0 76 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
duke@0 77
duke@0 78
duke@0 79 !if "$(Variant)" == "compiler1"
duke@0 80 IncludeDBs = $(IncludeDBs_compiler1)
duke@0 81 !endif
duke@0 82
duke@0 83 !if "$(Variant)" == "compiler2"
duke@0 84 IncludeDBs = $(IncludeDBs_compiler2)
duke@0 85 # Pick up rules for building adlc
kamg@91 86 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
duke@0 87 !endif
duke@0 88
duke@0 89 !if "$(Variant)" == "tiered"
duke@0 90 IncludeDBs = $(IncludeDBs_tiered)
duke@0 91 # Pick up rules for building adlc
kamg@91 92 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
duke@0 93 !endif
duke@0 94
duke@0 95 !if "$(Variant)" == "core"
duke@0 96 IncludeDBs = $(IncludeDBs_core)
duke@0 97 !endif
duke@0 98
duke@0 99 !if "$(Variant)" == "kernel"
duke@0 100 IncludeDBs = $(IncludeDBs_kernel)
duke@0 101 !endif
duke@0 102
duke@0 103 !include $(HOTSPOTWORKSPACE)/make/hotspot_version
duke@0 104
duke@0 105 !if "$(HOTSPOT_RELEASE_VERSION)" != ""
duke@0 106 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)"
duke@0 107 !else
duke@0 108 HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)"
duke@0 109 !endif
duke@0 110 HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
duke@0 111 !if "$(HOTSPOT_BUILD_VERSION)" != ""
duke@0 112 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)"
duke@0 113 !endif
duke@0 114 !if "$(JRE_RELEASE_VERSION)" != ""
duke@0 115 JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)"
duke@0 116 !else
duke@0 117 JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)"
duke@0 118 !endif
duke@0 119
duke@0 120 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
duke@0 121 # and if it is not see if we have the src/closed directory
duke@0 122 !if "$(HOTSPOT_VM_DISTRO)" != ""
duke@0 123 HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)"
duke@0 124 !else
duke@0 125 !if exists($(HOTSPOTWORKSPACE)\src\closed)
duke@0 126 HOTSPOT_VM_DISTRO="Java HotSpot(TM)"
duke@0 127 !else
duke@0 128 HOTSPOT_VM_DISTRO="OpenJDK"
duke@0 129 !endif
duke@0 130 !endif
duke@0 131
duke@0 132 MakeDepsIDEOptions = $(MakeDepsIDEOptions) \
duke@0 133 -includeDB_kernel $(HOTSPOTBUILDSPACE)\includeDB_kernel \
duke@0 134 -includeDB_core $(HOTSPOTBUILDSPACE)\includeDB_core \
duke@0 135 -includeDB_compiler1 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
duke@0 136 -includeDB_compiler2 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
duke@0 137 -includeDB_tiered $(HOTSPOTBUILDSPACE)\includeDB_tiered \
duke@0 138 -platform $(Platform) \
duke@0 139 -define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \
duke@0 140 -define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \
duke@0 141 -define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\"
duke@0 142
duke@0 143 incls:
duke@0 144 @mkdir incls
duke@0 145
duke@0 146 includeDB.current $(ProjectFile) Dependencies: local.make $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class \
duke@0 147 $(IncludeDBs) incls
duke@0 148 @rm -f includeDB $(HOTSPOTBUILDSPACE)\includeDB_kernel \
duke@0 149 $(HOTSPOTBUILDSPACE)\includeDB_core \
duke@0 150 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
duke@0 151 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
duke@0 152 $(HOTSPOTBUILDSPACE)\includeDB_tiered
duke@0 153 @cat $(IncludeDBs_kernel) > $(HOTSPOTBUILDSPACE)\includeDB_kernel
duke@0 154 @cat $(IncludeDBs_core) > $(HOTSPOTBUILDSPACE)\includeDB_core
duke@0 155 @cat $(IncludeDBs_compiler1) > $(HOTSPOTBUILDSPACE)\includeDB_compiler1
duke@0 156 @cat $(IncludeDBs_compiler2) > $(HOTSPOTBUILDSPACE)\includeDB_compiler2
duke@0 157 @cat $(IncludeDBs_tiered) > $(HOTSPOTBUILDSPACE)\includeDB_tiered
duke@0 158 @echo java.cpp jni.h > includeDB
duke@0 159 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps diffs WinGammaPlatform$(VcVersion) \
duke@0 160 $(Platform) includeDB.current $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
duke@0 161 @rm -f includeDB.current
duke@0 162 @cp includeDB includeDB.current
duke@0 163
duke@0 164 lists: $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class FORCE
duke@0 165 @if exist incls rmdir /s /q incls
duke@0 166 @rm -f includeDB
duke@0 167 @cat $(IncludeDBs) > includeDB
duke@0 168 @mkdir incls
duke@0 169 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps WinGammaPlatform$(VcVersion) \
duke@0 170 $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
duke@0 171 @rm -f includeDB.current
duke@0 172 @cp includeDB includeDB.current
duke@0 173
duke@0 174 clean:
duke@0 175 @rm -rf incls $(HOTSPOTBUILDSPACE)/classes
duke@0 176 @rm -f includeDB includeDB.current $(ProjectFile) Dependencies
duke@0 177
duke@0 178 $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class: $(MakeDepsSources)
duke@0 179 @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
duke@0 180 @mkdir $(HOTSPOTBUILDSPACE)\classes
duke@0 181 @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\MakeDeps -g -d $(HOTSPOTBUILDSPACE)/classes $(MakeDepsSources)
duke@0 182
duke@0 183 FORCE: