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