Thu, 06 Jan 2011 20:10:19 -0800
Added tag jdk7-b124 for changeset 0a8e0d4345b3
duke@435 | 1 | # |
stefank@2314 | 2 | # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. |
duke@435 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@435 | 4 | # |
duke@435 | 5 | # This code is free software; you can redistribute it and/or modify it |
duke@435 | 6 | # under the terms of the GNU General Public License version 2 only, as |
duke@435 | 7 | # published by the Free Software Foundation. |
duke@435 | 8 | # |
duke@435 | 9 | # This code is distributed in the hope that it will be useful, but WITHOUT |
duke@435 | 10 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@435 | 11 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@435 | 12 | # version 2 for more details (a copy is included in the LICENSE file that |
duke@435 | 13 | # accompanied this code). |
duke@435 | 14 | # |
duke@435 | 15 | # You should have received a copy of the GNU General Public License version |
duke@435 | 16 | # 2 along with this work; if not, write to the Free Software Foundation, |
duke@435 | 17 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@435 | 18 | # |
trims@1907 | 19 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
trims@1907 | 20 | # or visit www.oracle.com if you need additional information or have any |
trims@1907 | 21 | # questions. |
duke@435 | 22 | # |
duke@435 | 23 | # |
duke@435 | 24 | |
kamg@526 | 25 | !include $(WorkSpace)/make/windows/makefiles/rules.make |
duke@435 | 26 | |
duke@435 | 27 | # This is used externally by both batch and IDE builds, so can't |
duke@435 | 28 | # reference any of the HOTSPOTWORKSPACE, HOTSPOTBUILDSPACE, |
duke@435 | 29 | # HOTSPOTRELEASEBINDEST, or HOTSPOTDEBUGBINDEST environment variables. |
duke@435 | 30 | # |
stefank@2314 | 31 | # NOTE: unfortunately the ProjectCreatorSources list must be kept |
duke@435 | 32 | # synchronized between this and the Solaris version |
stefank@2314 | 33 | # (make/solaris/makefiles/projectcreator.make). |
duke@435 | 34 | |
stefank@2314 | 35 | ProjectCreatorSources=\ |
stefank@2314 | 36 | $(WorkSpace)\src\share\tools\ProjectCreator\DirectoryTree.java \ |
stefank@2314 | 37 | $(WorkSpace)\src\share\tools\ProjectCreator\DirectoryTreeNode.java \ |
stefank@2314 | 38 | $(WorkSpace)\src\share\tools\ProjectCreator\FileFormatException.java \ |
stefank@2314 | 39 | $(WorkSpace)\src\share\tools\ProjectCreator\Macro.java \ |
stefank@2314 | 40 | $(WorkSpace)\src\share\tools\ProjectCreator\MacroDefinitions.java \ |
stefank@2314 | 41 | $(WorkSpace)\src\share\tools\ProjectCreator\ProjectCreator.java \ |
stefank@2314 | 42 | $(WorkSpace)\src\share\tools\ProjectCreator\WinGammaPlatform.java \ |
stefank@2314 | 43 | $(WorkSpace)\src\share\tools\ProjectCreator\WinGammaPlatformVC6.java \ |
stefank@2314 | 44 | $(WorkSpace)\src\share\tools\ProjectCreator\WinGammaPlatformVC7.java \ |
stefank@2314 | 45 | $(WorkSpace)\src\share\tools\ProjectCreator\WinGammaPlatformVC8.java \ |
stefank@2314 | 46 | $(WorkSpace)\src\share\tools\ProjectCreator\WinGammaPlatformVC9.java \ |
stefank@2314 | 47 | $(WorkSpace)\src\share\tools\ProjectCreator\Util.java \ |
stefank@2314 | 48 | $(WorkSpace)\src\share\tools\ProjectCreator\BuildConfig.java \ |
stefank@2314 | 49 | $(WorkSpace)\src\share\tools\ProjectCreator\ArgsParser.java |
duke@435 | 50 | |
duke@435 | 51 | # This is only used internally |
stefank@2314 | 52 | ProjectCreatorIncludesPRIVATE=\ |
stefank@2314 | 53 | -relativeInclude src\share\vm \ |
duke@435 | 54 | -relativeInclude src\share\vm\prims \ |
duke@435 | 55 | -relativeInclude src\os\windows\vm \ |
duke@435 | 56 | -relativeInclude src\os_cpu\windows_$(Platform_arch)\vm \ |
stefank@2314 | 57 | -relativeInclude src\cpu\$(Platform_arch)\vm \ |
stefank@2314 | 58 | -absoluteInclude $(HOTSPOTBUILDSPACE)/%f/generated \ |
stefank@2314 | 59 | -ignorePath $(HOTSPOTBUILDSPACE)/%f/generated \ |
stefank@2314 | 60 | -ignorePath src\share\vm\adlc \ |
stefank@2314 | 61 | -ignorePath src\share\vm\shark |
duke@435 | 62 | |
duke@435 | 63 | # This is referenced externally by both the IDE and batch builds |
stefank@2314 | 64 | ProjectCreatorOptions= |
duke@435 | 65 | |
duke@435 | 66 | # This is used externally, but only by the IDE builds, so we can |
duke@435 | 67 | # reference environment variables which aren't defined in the batch |
duke@435 | 68 | # build process. |
duke@435 | 69 | |
stefank@2314 | 70 | ProjectCreatorIDEOptions = \ |
duke@435 | 71 | -useToGeneratePch java.cpp \ |
duke@435 | 72 | -disablePch os_windows.cpp \ |
duke@435 | 73 | -disablePch os_windows_$(Platform_arch).cpp \ |
duke@435 | 74 | -disablePch osThread_windows.cpp \ |
duke@435 | 75 | -disablePch bytecodeInterpreter.cpp \ |
duke@435 | 76 | -disablePch bytecodeInterpreterWithChecks.cpp \ |
stefank@2314 | 77 | -disablePch getThread_windows_$(Platform_arch).cpp \ |
duke@435 | 78 | -disablePch_compiler2 opcodes.cpp |
duke@435 | 79 | |
duke@435 | 80 | # Common options for the IDE builds for core, c1, and c2 |
stefank@2314 | 81 | ProjectCreatorIDEOptions=\ |
stefank@2314 | 82 | $(ProjectCreatorIDEOptions) \ |
duke@435 | 83 | -sourceBase $(HOTSPOTWORKSPACE) \ |
stefank@2314 | 84 | -buildBase $(HOTSPOTBUILDSPACE)\%f\%b \ |
duke@435 | 85 | -startAt src \ |
stefank@2314 | 86 | -compiler $(VcVersion) \ |
sla@2369 | 87 | -projectFileName $(HOTSPOTBUILDROOT)\$(ProjectFile) \ |
duke@435 | 88 | -jdkTargetRoot $(HOTSPOTJDKDIST) \ |
duke@435 | 89 | -define ALIGN_STACK_FRAMES \ |
duke@435 | 90 | -define VM_LITTLE_ENDIAN \ |
ikrylov@1094 | 91 | -prelink "" "Generating vm.def..." "cd $(HOTSPOTBUILDSPACE)\%f\%b set HOTSPOTMKSHOME=$(HOTSPOTMKSHOME) $(HOTSPOTMKSHOME)\sh $(HOTSPOTWORKSPACE)\make\windows\build_vm_def.sh $(LINK_VER)" \ |
sla@2369 | 92 | -postbuild "" "Building hotspot.exe..." "cd $(HOTSPOTBUILDSPACE)\%f\%b set HOTSPOTMKSHOME=$(HOTSPOTMKSHOME) nmake -f $(HOTSPOTWORKSPACE)\make\windows\projectfiles\common\Makefile LOCAL_MAKE=$(HOTSPOTBUILDSPACE)\%f\local.make JAVA_HOME=$(HOTSPOTJDKDIST) launcher" \ |
stefank@2314 | 93 | -ignoreFile jsig.c \ |
stefank@2314 | 94 | -ignoreFile jvmtiEnvRecommended.cpp \ |
stefank@2314 | 95 | -ignoreFile jvmtiEnvStub.cpp \ |
stefank@2314 | 96 | -ignoreFile globalDefinitions_gcc.hpp \ |
stefank@2314 | 97 | -ignoreFile globalDefinitions_sparcWorks.hpp \ |
stefank@2314 | 98 | -ignoreFile version.rc \ |
stefank@2314 | 99 | -ignoreFile Xusage.txt \ |
stefank@2314 | 100 | -define TARGET_ARCH_x86 \ |
stefank@2314 | 101 | -define TARGET_OS_ARCH_windows_x86 \ |
stefank@2314 | 102 | -define TARGET_OS_FAMILY_windows \ |
stefank@2314 | 103 | -define TARGET_COMPILER_visCPP \ |
stefank@2314 | 104 | $(ProjectCreatorIncludesPRIVATE) |
duke@435 | 105 | |
duke@435 | 106 | # Add in build-specific options |
duke@435 | 107 | !if "$(BUILDARCH)" == "i486" |
stefank@2314 | 108 | ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \ |
stefank@2314 | 109 | -define IA32 \ |
stefank@2314 | 110 | -ignorePath x86_64 \ |
stefank@2314 | 111 | -define TARGET_ARCH_MODEL_x86_32 |
stefank@2314 | 112 | !else |
stefank@2314 | 113 | ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \ |
stefank@2314 | 114 | -ignorePath x86_32 \ |
stefank@2314 | 115 | -define TARGET_ARCH_MODEL_x86_64 |
duke@435 | 116 | !endif |
duke@435 | 117 | |
stefank@2314 | 118 | ProjectCreatorIDEOptionsIgnoreCompiler1=\ |
stefank@2314 | 119 | -ignorePath_TARGET c1_ |
stefank@2314 | 120 | |
stefank@2314 | 121 | ProjectCreatorIDEOptionsIgnoreCompiler2=\ |
stefank@2314 | 122 | -ignorePath_TARGET src/share/vm/opto \ |
stefank@2314 | 123 | -ignorePath_TARGET src/share/vm/libadt \ |
stefank@2314 | 124 | -ignorePath_TARGET adfiles \ |
stefank@2314 | 125 | -ignoreFile_TARGET bcEscapeAnalyzer.cpp \ |
stefank@2314 | 126 | -ignoreFile_TARGET bcEscapeAnalyzer.hpp \ |
stefank@2314 | 127 | -ignorePath_TARGET chaitin \ |
stefank@2314 | 128 | -ignorePath_TARGET c2_ \ |
stefank@2314 | 129 | -ignorePath_TARGET runtime_ \ |
stefank@2314 | 130 | -ignoreFile_TARGET ciTypeFlow.cpp \ |
stefank@2314 | 131 | -ignoreFile_TARGET ciTypeFlow.hpp \ |
stefank@2314 | 132 | -ignoreFile_TARGET $(Platform_arch_model).ad |
stefank@2314 | 133 | |
stefank@2314 | 134 | ################################################## |
stefank@2314 | 135 | # Without compiler(core) specific options |
stefank@2314 | 136 | ################################################## |
stefank@2314 | 137 | ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \ |
stefank@2314 | 138 | $(ProjectCreatorIDEOptionsIgnoreCompiler1:TARGET=core) \ |
stefank@2314 | 139 | $(ProjectCreatorIDEOptionsIgnoreCompiler2:TARGET=core) |
stefank@2314 | 140 | |
duke@435 | 141 | ################################################## |
duke@435 | 142 | # JKERNEL specific options |
duke@435 | 143 | ################################################## |
stefank@2314 | 144 | ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \ |
duke@435 | 145 | -define_kernel KERNEL \ |
stefank@2314 | 146 | $(ProjectCreatorIDEOptionsIgnoreCompiler2:TARGET=kernel) \ |
stefank@2314 | 147 | -ignorePath_kernel src/share/vm/gc_implementation/parallelScavenge \ |
stefank@2314 | 148 | -ignorePath_kernel src/share/vm/gc_implementation/parNew \ |
stefank@2314 | 149 | -ignorePath_kernel src/share/vm/gc_implementation/concurrentMarkSweep \ |
stefank@2314 | 150 | -ignorePath_kernel src/share/vm/gc_implementation/g1 \ |
stefank@2314 | 151 | -ignoreFile_kernel attachListener.cpp \ |
stefank@2314 | 152 | -ignoreFile_kernel attachListener_windows.cpp \ |
stefank@2314 | 153 | -ignoreFile_kernel dump.cpp \ |
stefank@2314 | 154 | -ignoreFile_kernel dump_$(Platform_arch_model).cpp \ |
stefank@2314 | 155 | -ignoreFile_kernel forte.cpp \ |
stefank@2314 | 156 | -ignoreFile_kernel fprofiler.cpp \ |
stefank@2314 | 157 | -ignoreFile_kernel heapDumper.cpp \ |
stefank@2314 | 158 | -ignoreFile_kernel heapInspection.cpp \ |
stefank@2314 | 159 | -ignoreFile_kernel jniCheck.cpp \ |
stefank@2314 | 160 | -ignoreFile_kernel jvmtiCodeBlobEvents.cpp \ |
stefank@2314 | 161 | -ignoreFile_kernel jvmtiExtensions.cpp \ |
stefank@2314 | 162 | -ignoreFile_kernel jvmtiImpl.cpp \ |
stefank@2314 | 163 | -ignoreFile_kernel jvmtiRawMonitor.cpp \ |
stefank@2314 | 164 | -ignoreFile_kernel jvmtiTagMap.cpp \ |
stefank@2314 | 165 | -ignoreFile_kernel jvmtiTrace.cpp \ |
stefank@2314 | 166 | -ignoreFile_kernel jvmtiTrace.hpp \ |
stefank@2314 | 167 | -ignoreFile_kernel restore.cpp \ |
stefank@2314 | 168 | -ignoreFile_kernel serialize.cpp \ |
stefank@2314 | 169 | -ignoreFile_kernel vmStructs.cpp \ |
stefank@2314 | 170 | -ignoreFile_kernel g1MemoryPool.cpp \ |
stefank@2314 | 171 | -ignoreFile_kernel g1MemoryPool.hpp \ |
stefank@2314 | 172 | -ignoreFile_kernel psMemoryPool.cpp \ |
stefank@2314 | 173 | -ignoreFile_kernel psMemoryPool.hpp \ |
stefank@2314 | 174 | -ignoreFile_kernel gcAdaptivePolicyCounters.cpp \ |
stefank@2314 | 175 | -ignoreFile_kernel concurrentGCThread.cpp \ |
stefank@2314 | 176 | -ignoreFile_kernel mutableNUMASpace.cpp \ |
stefank@2314 | 177 | -ignoreFile_kernel ciTypeFlow.cpp \ |
stefank@2314 | 178 | -ignoreFile_kernel ciTypeFlow.hpp \ |
stefank@2314 | 179 | -ignoreFile_kernel oop.pcgc.inline.hpp \ |
stefank@2314 | 180 | -ignoreFile_kernel oop.psgc.inline.hpp \ |
stefank@2314 | 181 | -ignoreFile_kernel allocationStats.cpp \ |
stefank@2314 | 182 | -ignoreFile_kernel allocationStats.hpp \ |
stefank@2314 | 183 | -ignoreFile_kernel concurrentGCThread.hpp \ |
stefank@2314 | 184 | -ignoreFile_kernel gSpaceCounters.cpp \ |
stefank@2314 | 185 | -ignoreFile_kernel gSpaceCounters.hpp \ |
stefank@2314 | 186 | -ignoreFile_kernel gcAdaptivePolicyCounters.hpp \ |
stefank@2314 | 187 | -ignoreFile_kernel immutableSpace.cpp \ |
stefank@2314 | 188 | -ignoreFile_kernel mutableNUMASpace.hpp \ |
stefank@2314 | 189 | -ignoreFile_kernel mutableSpace.cpp \ |
stefank@2314 | 190 | -ignoreFile_kernel spaceCounters.cpp \ |
stefank@2314 | 191 | -ignoreFile_kernel spaceCounters.hpp \ |
stefank@2314 | 192 | -ignoreFile_kernel yieldingWorkgroup.cpp \ |
stefank@2314 | 193 | -ignoreFile_kernel yieldingWorkgroup.hpp \ |
stefank@2314 | 194 | -ignorePath_kernel vmStructs_ \ |
stefank@2314 | 195 | -ignoreFile_kernel $(Platform_arch_model).ad \ |
stefank@2314 | 196 | -additionalFile_kernel gcTaskManager.hpp |
duke@435 | 197 | |
duke@435 | 198 | ################################################## |
duke@435 | 199 | # Client(C1) compiler specific options |
duke@435 | 200 | ################################################## |
stefank@2314 | 201 | ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \ |
duke@435 | 202 | -define_compiler1 COMPILER1 \ |
stefank@2314 | 203 | $(ProjectCreatorIDEOptionsIgnoreCompiler2:TARGET=compiler1) |
duke@435 | 204 | |
duke@435 | 205 | ################################################## |
duke@435 | 206 | # Server(C2) compiler specific options |
duke@435 | 207 | ################################################## |
duke@435 | 208 | #NOTE! This list must be kept in sync with GENERATED_NAMES in adlc.make. |
stefank@2314 | 209 | ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \ |
duke@435 | 210 | -define_compiler2 COMPILER2 \ |
duke@435 | 211 | -additionalFile_compiler2 $(Platform_arch_model).ad \ |
stefank@2314 | 212 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/generated/adfiles ad_$(Platform_arch_model).cpp \ |
stefank@2314 | 213 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/generated/adfiles ad_$(Platform_arch_model).hpp \ |
stefank@2314 | 214 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/generated/adfiles ad_$(Platform_arch_model)_clone.cpp \ |
stefank@2314 | 215 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/generated/adfiles ad_$(Platform_arch_model)_expand.cpp \ |
stefank@2314 | 216 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/generated/adfiles ad_$(Platform_arch_model)_format.cpp \ |
stefank@2314 | 217 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/generated/adfiles ad_$(Platform_arch_model)_gen.cpp \ |
stefank@2314 | 218 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/generated/adfiles ad_$(Platform_arch_model)_misc.cpp \ |
stefank@2314 | 219 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/generated/adfiles ad_$(Platform_arch_model)_peephole.cpp \ |
stefank@2314 | 220 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/generated/adfiles ad_$(Platform_arch_model)_pipeline.cpp \ |
stefank@2314 | 221 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/generated/adfiles adGlobals_$(Platform_arch_model).hpp \ |
stefank@2314 | 222 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/generated/adfiles dfa_$(Platform_arch_model).cpp \ |
stefank@2314 | 223 | $(ProjectCreatorIDEOptionsIgnoreCompiler1:TARGET=compiler2) |
duke@435 | 224 | |
duke@435 | 225 | # Add in the jvmti (JSR-163) options |
duke@435 | 226 | # NOTE: do not pull in jvmtiEnvRecommended.cpp. This file is generated |
duke@435 | 227 | # so the programmer can diff it with jvmtiEnv.cpp to be sure the |
duke@435 | 228 | # code merge was done correctly (@see jvmti.make and jvmtiEnvFill.java). |
duke@435 | 229 | # If so, they would then check it in as a new version of jvmtiEnv.cpp. |
stefank@2314 | 230 | ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \ |
stefank@2314 | 231 | -additionalGeneratedFile $(HOTSPOTBUILDSPACE)/%f/generated/jvmtifiles jvmtiEnv.hpp \ |
stefank@2314 | 232 | -additionalGeneratedFile $(HOTSPOTBUILDSPACE)/%f/generated/jvmtifiles jvmtiEnter.cpp \ |
stefank@2314 | 233 | -additionalGeneratedFile $(HOTSPOTBUILDSPACE)/%f/generated/jvmtifiles jvmtiEnterTrace.cpp \ |
stefank@2314 | 234 | -additionalGeneratedFile $(HOTSPOTBUILDSPACE)/%f/generated/jvmtifiles jvmti.h \ |
stefank@2314 | 235 | -additionalGeneratedFile $(HOTSPOTBUILDSPACE)/%f/generated/jvmtifiles bytecodeInterpreterWithChecks.cpp |