1 #
   2 # Copyright (c) 1999, 2013, 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\FileTreeCreatorVC10.java \
  35         $(WorkSpace)\src\share\tools\ProjectCreator\WinGammaPlatform.java \
  36         $(WorkSpace)\src\share\tools\ProjectCreator\WinGammaPlatformVC10.java \
  37         $(WorkSpace)\src\share\tools\ProjectCreator\Util.java \
  38         $(WorkSpace)\src\share\tools\ProjectCreator\BuildConfig.java \
  39         $(WorkSpace)\src\share\tools\ProjectCreator\ArgsParser.java
  40 
  41 # This is only used internally
  42 ProjectCreatorIncludesPRIVATE=\
  43         -relativeAltSrcInclude src\closed \
  44         -altRelativeInclude share\vm \
  45         -altRelativeInclude os\windows\vm \
  46         -altRelativeInclude os_cpu\windows_$(Platform_arch)\vm \
  47         -altRelativeInclude cpu\$(Platform_arch)\vm \
  48         -relativeInclude src\share\vm \
  49         -relativeInclude src\share\vm\precompiled \
  50         -relativeInclude src\share\vm\prims\wbtestmethods \
  51         -relativeInclude src\share\vm\prims \
  52         -relativeInclude src\os\windows\vm \
  53         -relativeInclude src\os_cpu\windows_$(Platform_arch)\vm \
  54         -relativeInclude src\cpu\$(Platform_arch)\vm \
  55         -absoluteInclude $(HOTSPOTBUILDSPACE)/%f/generated \
  56         -relativeSrcInclude src \
  57         -absoluteSrcInclude $(HOTSPOTBUILDSPACE) \
  58         -ignorePath $(HOTSPOTBUILDSPACE) \
  59         -ignorePath share\vm\adlc \
  60         -ignorePath share\vm\shark \
  61         -ignorePath share\tools \
  62         -ignorePath solaris \
  63         -ignorePath posix \
  64         -ignorePath sparc \
  65         -ignorePath linux \
  66         -ignorePath bsd \
  67         -ignorePath osx \
  68         -ignorePath arm \
  69         -ignorePath ppc \
  70         -ignorePath zero \
  71         -ignorePath aix \
  72         -hidePath .hg
  73 
  74 
  75 # This is referenced externally by both the IDE and batch builds
  76 ProjectCreatorOptions=
  77 
  78 # This is used externally, but only by the IDE builds, so we can
  79 # reference environment variables which aren't defined in the batch
  80 # build process.
  81 
  82 ProjectCreatorIDEOptions = \
  83         -useToGeneratePch  java.cpp \
  84         -disablePch        os_windows.cpp \
  85         -disablePch        os_windows_$(Platform_arch).cpp \
  86         -disablePch        osThread_windows.cpp \
  87         -disablePch        bytecodeInterpreter.cpp \
  88         -disablePch        bytecodeInterpreterWithChecks.cpp \
  89         -disablePch        getThread_windows_$(Platform_arch).cpp \
  90         -disablePch_compiler2     opcodes.cpp
  91 
  92 !if "$(BUILD_WIN_SA)" != "1"
  93 BUILD_VM_DEF_FLAG=-nosa
  94 !endif
  95 
  96 # Common options for the IDE builds for c1, and c2
  97 ProjectCreatorIDEOptions=\
  98         $(ProjectCreatorIDEOptions) \
  99         -sourceBase $(HOTSPOTWORKSPACE) \
 100         -buildBase $(HOTSPOTBUILDSPACE)\%f\%b \
 101         -buildSpace $(HOTSPOTBUILDSPACE) \
 102         -startAt src \
 103         -compiler $(VcVersion) \
 104         -projectFileName $(HOTSPOTBUILDSPACE)\$(ProjectFile) \
 105         -jdkTargetRoot $(HOTSPOTJDKDIST) \
 106         -define ALIGN_STACK_FRAMES \
 107         -define VM_LITTLE_ENDIAN \
 108         -prelink  "" "Generating vm.def..." "cd $(HOTSPOTBUILDSPACE)\%f\%b      set HOTSPOTMKSHOME=$(HOTSPOTMKSHOME)    set JAVA_HOME=$(HOTSPOTJDKDIST) $(HOTSPOTMKSHOME)\sh $(HOTSPOTWORKSPACE)\make\windows\build_vm_def.sh $(BUILD_VM_DEF_FLAG) $(LD_VER)" \
 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=1 \
 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 # Client(C1) compiler specific options
 164 ##################################################
 165 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
 166  -define_compiler1 COMPILER1 \
 167 $(ProjectCreatorIDEOptionsIgnoreCompiler2:TARGET=compiler1)
 168 
 169 ##################################################
 170 # Server(C2) compiler specific options
 171 ##################################################
 172 #NOTE! This list must be kept in sync with GENERATED_NAMES in adlc.make.
 173 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
 174  -define_compiler2 COMPILER2 \
 175  -additionalFile_compiler2 $(Platform_arch_model).ad \
 176  -additionalFile_compiler2 ad_$(Platform_arch_model).cpp \
 177  -additionalFile_compiler2 ad_$(Platform_arch_model).hpp \
 178  -additionalFile_compiler2 ad_$(Platform_arch_model)_clone.cpp \
 179  -additionalFile_compiler2 ad_$(Platform_arch_model)_expand.cpp \
 180  -additionalFile_compiler2 ad_$(Platform_arch_model)_format.cpp \
 181  -additionalFile_compiler2 ad_$(Platform_arch_model)_gen.cpp \
 182  -additionalFile_compiler2 ad_$(Platform_arch_model)_misc.cpp \
 183  -additionalFile_compiler2 ad_$(Platform_arch_model)_peephole.cpp \
 184  -additionalFile_compiler2 ad_$(Platform_arch_model)_pipeline.cpp \
 185  -additionalFile_compiler2 adGlobals_$(Platform_arch_model).hpp \
 186  -additionalFile_compiler2 dfa_$(Platform_arch_model).cpp \
 187  $(ProjectCreatorIDEOptionsIgnoreCompiler1:TARGET=compiler2)
 188 
 189 # Add in the jvmti (JSR-163) options
 190 # NOTE: do not pull in jvmtiEnvRecommended.cpp.  This file is generated
 191 #       so the programmer can diff it with jvmtiEnv.cpp to be sure the
 192 #       code merge was done correctly (@see jvmti.make and jvmtiEnvFill.java).
 193 #       If so, they would then check it in as a new version of jvmtiEnv.cpp.
 194 ProjectCreatorIDEOptions=$(ProjectCreatorIDEOptions) \
 195  -additionalFile jvmtiEnv.hpp \
 196  -additionalFile jvmtiEnter.cpp \
 197  -additionalFile jvmtiEnterTrace.cpp \
 198  -additionalFile jvmti.h \
 199  -additionalFile bytecodeInterpreterWithChecks.cpp \
 200  -additionalFile traceEventClasses.hpp \
 201  -additionalFile traceEventIds.hpp \
 202 !if "$(OPENJDK)" != "true"
 203  -additionalFile traceRequestables.hpp \
 204  -additionalFile traceEventControl.hpp \
 205  -additionalFile traceProducer.cpp \
 206 !endif
 207  -additionalFile traceTypes.hpp