1 #
   2 # Copyright (c) 1999, 2010, 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 WorkSpace=$(HOTSPOTWORKSPACE)
  26 
  27 !ifdef ALT_BOOTDIR
  28 BootStrapDir=$(ALT_BOOTDIR)
  29 !else
  30 !ifdef BOOTDIR
  31 BootStrapDir=$(BOOTDIR)
  32 !else
  33 !ifdef JAVA_HOME
  34 BootStrapDir=$(JAVA_HOME)
  35 !endif
  36 !endif
  37 !endif
  38 
  39 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make
  40 
  41 # Pick up rules for building JVMTI (JSR-163)
  42 JvmtiOutDir=$(HOTSPOTBUILDSPACE)\jvmtifiles
  43 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make
  44 
  45 Platform=$(HOTSPOTWORKSPACE)/make/windows/platform_$(BUILDARCH)
  46 
  47 default:: $(AdditionalTargets) $(JvmtiGeneratedFiles) ../$(ProjectFile)
  48 
  49 !if "$(Variant)" == "compiler2"
  50 # Pick up rules for building adlc
  51 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
  52 !endif
  53 
  54 !if "$(Variant)" == "tiered"
  55 # Pick up rules for building adlc
  56 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
  57 !endif
  58 
  59 !include $(HOTSPOTWORKSPACE)/make/hotspot_version
  60 
  61 !if "$(HOTSPOT_RELEASE_VERSION)" != ""
  62 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)"
  63 !else
  64 HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)"
  65 !endif
  66 HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
  67 !if "$(HOTSPOT_BUILD_VERSION)" != ""
  68 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)"
  69 !endif
  70 !if "$(JRE_RELEASE_VERSION)" != ""
  71 JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)"
  72 !else
  73 JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)"
  74 !endif
  75 
  76 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
  77 # and if it is not see if we have the src/closed directory
  78 !if "$(HOTSPOT_VM_DISTRO)" != ""
  79 HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)"
  80 !else
  81 !if exists($(HOTSPOTWORKSPACE)\src\closed)
  82 HOTSPOT_VM_DISTRO="Java HotSpot(TM)"
  83 !else
  84 HOTSPOT_VM_DISTRO="OpenJDK"
  85 !endif
  86 !endif
  87 
  88 ProjectCreatorIDEOptions =       $(ProjectCreatorIDEOptions) \
  89       -platform            $(Platform) \
  90       -define              HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \
  91       -define              JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \
  92       -define              HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\"
  93 
  94 incls:
  95         @mkdir incls
  96 
  97 ../$(ProjectFile): local.make $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class incls
  98         @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions)
  99 
 100 clean:
 101         @rm -rf incls $(HOTSPOTBUILDSPACE)/classes
 102         @rm -r ../$(ProjectFile)
 103 
 104 $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources)
 105         @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
 106         @mkdir $(HOTSPOTBUILDSPACE)\classes
 107         @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources)
 108 
 109 FORCE: