Fri, 11 Apr 2008 09:56:35 -0400
Merge
duke@435 | 1 | # |
duke@435 | 2 | # Copyright 1999-2007 Sun Microsystems, Inc. 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 | # |
duke@435 | 19 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
duke@435 | 20 | # CA 95054 USA or visit www.sun.com if you need additional information or |
duke@435 | 21 | # have any 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 | # |
duke@435 | 31 | # NOTE: unfortunately the MakeDepsSources list must be kept |
duke@435 | 32 | # synchronized between this and the Solaris version |
kamg@526 | 33 | # (make/solaris/makefiles/makedeps.make). |
duke@435 | 34 | |
duke@435 | 35 | MakeDepsSources=\ |
duke@435 | 36 | $(WorkSpace)\src\share\tools\MakeDeps\Database.java \ |
duke@435 | 37 | $(WorkSpace)\src\share\tools\MakeDeps\DirectoryTree.java \ |
duke@435 | 38 | $(WorkSpace)\src\share\tools\MakeDeps\DirectoryTreeNode.java \ |
duke@435 | 39 | $(WorkSpace)\src\share\tools\MakeDeps\FileFormatException.java \ |
duke@435 | 40 | $(WorkSpace)\src\share\tools\MakeDeps\FileList.java \ |
duke@435 | 41 | $(WorkSpace)\src\share\tools\MakeDeps\FileName.java \ |
duke@435 | 42 | $(WorkSpace)\src\share\tools\MakeDeps\Macro.java \ |
duke@435 | 43 | $(WorkSpace)\src\share\tools\MakeDeps\MacroDefinitions.java \ |
duke@435 | 44 | $(WorkSpace)\src\share\tools\MakeDeps\MakeDeps.java \ |
duke@435 | 45 | $(WorkSpace)\src\share\tools\MakeDeps\MetroWerksMacPlatform.java \ |
duke@435 | 46 | $(WorkSpace)\src\share\tools\MakeDeps\Platform.java \ |
duke@435 | 47 | $(WorkSpace)\src\share\tools\MakeDeps\UnixPlatform.java \ |
duke@435 | 48 | $(WorkSpace)\src\share\tools\MakeDeps\WinGammaPlatform.java \ |
duke@435 | 49 | $(WorkSpace)\src\share\tools\MakeDeps\WinGammaPlatformVC6.java \ |
duke@435 | 50 | $(WorkSpace)\src\share\tools\MakeDeps\WinGammaPlatformVC7.java \ |
duke@435 | 51 | $(WorkSpace)\src\share\tools\MakeDeps\Util.java \ |
duke@435 | 52 | $(WorkSpace)\src\share\tools\MakeDeps\BuildConfig.java \ |
duke@435 | 53 | $(WorkSpace)\src\share\tools\MakeDeps\ArgsParser.java |
duke@435 | 54 | |
duke@435 | 55 | # This is only used internally |
duke@435 | 56 | MakeDepsIncludesPRIVATE=\ |
duke@435 | 57 | -relativeInclude src\share\vm\c1 \ |
duke@435 | 58 | -relativeInclude src\share\vm\compiler \ |
duke@435 | 59 | -relativeInclude src\share\vm\code \ |
duke@435 | 60 | -relativeInclude src\share\vm\interpreter \ |
duke@435 | 61 | -relativeInclude src\share\vm\ci \ |
duke@435 | 62 | -relativeInclude src\share\vm\classfile \ |
duke@435 | 63 | -relativeInclude src\share\vm\gc_implementation\parallelScavenge \ |
duke@435 | 64 | -relativeInclude src\share\vm\gc_implementation\shared \ |
duke@435 | 65 | -relativeInclude src\share\vm\gc_implementation\parNew \ |
duke@435 | 66 | -relativeInclude src\share\vm\gc_implementation\concurrentMarkSweep \ |
duke@435 | 67 | -relativeInclude src\share\vm\gc_interface \ |
duke@435 | 68 | -relativeInclude src\share\vm\asm \ |
duke@435 | 69 | -relativeInclude src\share\vm\memory \ |
duke@435 | 70 | -relativeInclude src\share\vm\oops \ |
duke@435 | 71 | -relativeInclude src\share\vm\prims \ |
duke@435 | 72 | -relativeInclude src\share\vm\runtime \ |
duke@435 | 73 | -relativeInclude src\share\vm\services \ |
duke@435 | 74 | -relativeInclude src\share\vm\utilities \ |
duke@435 | 75 | -relativeInclude src\share\vm\libadt \ |
duke@435 | 76 | -relativeInclude src\share\vm\opto \ |
duke@435 | 77 | -relativeInclude src\os\windows\vm \ |
duke@435 | 78 | -relativeInclude src\os_cpu\windows_$(Platform_arch)\vm \ |
duke@435 | 79 | -relativeInclude src\cpu\$(Platform_arch)\vm |
duke@435 | 80 | |
duke@435 | 81 | # This is referenced externally by both the IDE and batch builds |
duke@435 | 82 | MakeDepsOptions= |
duke@435 | 83 | |
duke@435 | 84 | # This is used externally, but only by the IDE builds, so we can |
duke@435 | 85 | # reference environment variables which aren't defined in the batch |
duke@435 | 86 | # build process. |
duke@435 | 87 | |
duke@435 | 88 | MakeDepsIDEOptions = \ |
duke@435 | 89 | -useToGeneratePch java.cpp \ |
duke@435 | 90 | -disablePch os_windows.cpp \ |
duke@435 | 91 | -disablePch os_windows_$(Platform_arch).cpp \ |
duke@435 | 92 | -disablePch osThread_windows.cpp \ |
duke@435 | 93 | -disablePch bytecodeInterpreter.cpp \ |
duke@435 | 94 | -disablePch bytecodeInterpreterWithChecks.cpp \ |
duke@435 | 95 | -disablePch getThread_windows_$(Platform_arch).cpp \ |
duke@435 | 96 | -disablePch_compiler2 opcodes.cpp |
duke@435 | 97 | |
duke@435 | 98 | # Common options for the IDE builds for core, c1, and c2 |
duke@435 | 99 | MakeDepsIDEOptions=\ |
duke@435 | 100 | $(MakeDepsIDEOptions) \ |
duke@435 | 101 | -sourceBase $(HOTSPOTWORKSPACE) \ |
duke@435 | 102 | -buildBase $(HOTSPOTBUILDSPACE)\%f\%b \ |
duke@435 | 103 | -startAt src \ |
duke@435 | 104 | -compiler $(VcVersion) \ |
duke@435 | 105 | -projectFileName $(HOTSPOTBUILDSPACE)\$(ProjectFile) \ |
duke@435 | 106 | -jdkTargetRoot $(HOTSPOTJDKDIST) \ |
duke@435 | 107 | -define ALIGN_STACK_FRAMES \ |
duke@435 | 108 | -define VM_LITTLE_ENDIAN \ |
duke@435 | 109 | -additionalFile includeDB_compiler1 \ |
duke@435 | 110 | -additionalFile includeDB_compiler2 \ |
duke@435 | 111 | -additionalFile includeDB_core \ |
duke@435 | 112 | -additionalFile includeDB_features \ |
duke@435 | 113 | -additionalFile includeDB_jvmti \ |
duke@435 | 114 | -additionalFile includeDB_gc \ |
duke@435 | 115 | -additionalFile includeDB_gc_parallel \ |
duke@435 | 116 | -additionalFile includeDB_gc_parallelScavenge \ |
duke@435 | 117 | -additionalFile includeDB_gc_concurrentMarkSweep \ |
duke@435 | 118 | -additionalFile includeDB_gc_parNew \ |
duke@435 | 119 | -additionalFile includeDB_gc_shared \ |
duke@435 | 120 | -additionalFile includeDB_gc_serial \ |
duke@435 | 121 | -additionalGeneratedFile $(HOTSPOTBUILDSPACE)\%f\%b vm.def \ |
kamg@526 | 122 | -prelink "" "Generating vm.def..." "cd $(HOTSPOTBUILDSPACE)\%f\%b $(HOTSPOTMKSHOME)\sh $(HOTSPOTWORKSPACE)\make\windows\build_vm_def.sh" \ |
duke@435 | 123 | $(MakeDepsIncludesPRIVATE) |
duke@435 | 124 | |
duke@435 | 125 | # Add in build-specific options |
duke@435 | 126 | !if "$(BUILDARCH)" == "i486" |
duke@435 | 127 | MakeDepsIDEOptions=$(MakeDepsIDEOptions) -define IA32 |
duke@435 | 128 | !endif |
duke@435 | 129 | |
duke@435 | 130 | ################################################## |
duke@435 | 131 | # JKERNEL specific options |
duke@435 | 132 | ################################################## |
duke@435 | 133 | MakeDepsIDEOptions=$(MakeDepsIDEOptions) \ |
duke@435 | 134 | -define_kernel KERNEL \ |
duke@435 | 135 | |
duke@435 | 136 | ################################################## |
duke@435 | 137 | # Client(C1) compiler specific options |
duke@435 | 138 | ################################################## |
duke@435 | 139 | MakeDepsIDEOptions=$(MakeDepsIDEOptions) \ |
duke@435 | 140 | -define_compiler1 COMPILER1 \ |
duke@435 | 141 | |
duke@435 | 142 | ################################################## |
duke@435 | 143 | # Server(C2) compiler specific options |
duke@435 | 144 | ################################################## |
duke@435 | 145 | #NOTE! This list must be kept in sync with GENERATED_NAMES in adlc.make. |
duke@435 | 146 | MakeDepsIDEOptions=$(MakeDepsIDEOptions) \ |
duke@435 | 147 | -define_compiler2 COMPILER2 \ |
duke@435 | 148 | -absoluteInclude_compiler2 $(HOTSPOTBUILDSPACE)/%f/incls \ |
duke@435 | 149 | -additionalFile_compiler2 $(Platform_arch_model).ad \ |
duke@435 | 150 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/incls ad_$(Platform_arch_model).cpp \ |
duke@435 | 151 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/incls ad_$(Platform_arch_model).hpp \ |
duke@435 | 152 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/incls ad_$(Platform_arch_model)_clone.cpp \ |
duke@435 | 153 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/incls ad_$(Platform_arch_model)_expand.cpp \ |
duke@435 | 154 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/incls ad_$(Platform_arch_model)_format.cpp \ |
duke@435 | 155 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/incls ad_$(Platform_arch_model)_gen.cpp \ |
duke@435 | 156 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/incls ad_$(Platform_arch_model)_misc.cpp \ |
duke@435 | 157 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/incls ad_$(Platform_arch_model)_peephole.cpp \ |
duke@435 | 158 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/incls ad_$(Platform_arch_model)_pipeline.cpp \ |
duke@435 | 159 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/incls adGlobals_$(Platform_arch_model).hpp \ |
duke@435 | 160 | -additionalGeneratedFile_compiler2 $(HOTSPOTBUILDSPACE)/%f/incls dfa_$(Platform_arch_model).cpp |
duke@435 | 161 | |
duke@435 | 162 | # Add in the jvmti (JSR-163) options |
duke@435 | 163 | # NOTE: do not pull in jvmtiEnvRecommended.cpp. This file is generated |
duke@435 | 164 | # so the programmer can diff it with jvmtiEnv.cpp to be sure the |
duke@435 | 165 | # code merge was done correctly (@see jvmti.make and jvmtiEnvFill.java). |
duke@435 | 166 | # If so, they would then check it in as a new version of jvmtiEnv.cpp. |
duke@435 | 167 | MakeDepsIDEOptions=$(MakeDepsIDEOptions) \ |
duke@435 | 168 | -absoluteInclude $(HOTSPOTBUILDSPACE)/jvmtifiles \ |
duke@435 | 169 | -additionalGeneratedFile $(HOTSPOTBUILDSPACE)/jvmtifiles jvmtiEnv.hpp \ |
duke@435 | 170 | -additionalGeneratedFile $(HOTSPOTBUILDSPACE)/jvmtifiles jvmtiEnter.cpp \ |
duke@435 | 171 | -additionalGeneratedFile $(HOTSPOTBUILDSPACE)/jvmtifiles jvmtiEnterTrace.cpp \ |
duke@435 | 172 | -additionalGeneratedFile $(HOTSPOTBUILDSPACE)/jvmtifiles jvmti.h \ |
duke@435 | 173 | -additionalGeneratedFile $(HOTSPOTBUILDSPACE)/jvmtifiles bytecodeInterpreterWithChecks.cpp |