annotate make/windows/projectfiles/common/Makefile @ 6031:6e4b0b4481b9

Merge from main OpenJDK repository
author Greg Lewis <glewis@eyesbeyond.com>
date Sat, 03 Feb 2018 14:01:55 -0800
parents 8a853c83f551
children
rev   line source
duke@0 1 #
sla@2235 2 # Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
duke@0 7 # published by the Free Software Foundation.
duke@0 8 #
duke@0 9 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 12 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 13 # accompanied this code).
duke@0 14 #
duke@0 15 # You should have received a copy of the GNU General Public License version
duke@0 16 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 18 #
trims@1563 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1563 20 # or visit www.oracle.com if you need additional information or have any
trims@1563 21 # questions.
duke@0 22 #
duke@0 23 #
duke@0 24
sla@2047 25 !ifdef LOCAL_MAKE
sla@2047 26 !include $(LOCAL_MAKE)
sla@2047 27 !endif
sla@2047 28
stefank@1992 29
duke@0 30 WorkSpace=$(HOTSPOTWORKSPACE)
duke@0 31
duke@0 32 !ifdef ALT_BOOTDIR
duke@0 33 BootStrapDir=$(ALT_BOOTDIR)
duke@0 34 !else
duke@0 35 !ifdef BOOTDIR
duke@0 36 BootStrapDir=$(BOOTDIR)
duke@0 37 !else
duke@0 38 !ifdef JAVA_HOME
duke@0 39 BootStrapDir=$(JAVA_HOME)
sla@2047 40 !else
sla@2047 41 !ifdef HOTSPOTJDKDIST
sla@2047 42 BootStrapDir=$(HOTSPOTJDKDIST)
sla@2047 43 !endif
duke@0 44 !endif
duke@0 45 !endif
duke@0 46 !endif
duke@0 47
mgronlun@4579 48 # if hotspot-only build and/or OPENJDK isn't passed down, need to set OPENJDK
mgronlun@4579 49 !ifndef OPENJDK
mgronlun@4579 50 !if !exists($(WorkSpace)\src\closed)
mgronlun@4579 51 OPENJDK=true
mgronlun@4579 52 !endif
sla@4403 53 !endif
sla@2047 54
sla@2047 55
stefank@1992 56 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make
sla@2047 57 !include $(WorkSpace)/make/windows/makefiles/compile.make
duke@0 58
duke@0 59 # Pick up rules for building JVMTI (JSR-163)
stefank@1992 60 JvmtiOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\jvmtifiles
kamg@91 61 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make
duke@0 62
sla@4403 63 # Pick up rules for building trace
sla@4403 64 TraceOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\tracefiles
sla@4403 65 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/trace.make
sla@4403 66
duke@0 67 !if "$(Variant)" == "compiler2"
duke@0 68 # Pick up rules for building adlc
kamg@91 69 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
duke@0 70 !endif
duke@0 71
duke@0 72 !if "$(Variant)" == "tiered"
duke@0 73 # Pick up rules for building adlc
kamg@91 74 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
duke@0 75 !endif
duke@0 76
sla@2047 77 HS_INTERNAL_NAME=jvm
sla@2047 78 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/launcher.make
sla@2047 79
sla@4403 80 default:: $(AdditionalTargets) $(JvmtiGeneratedFiles) $(TraceGeneratedFiles)
duke@0 81
duke@0 82 !include $(HOTSPOTWORKSPACE)/make/hotspot_version
duke@0 83
neliasso@4522 84 !if "$(USER_RELEASE_SUFFIX)" != ""
neliasso@4522 85 HOTSPOT_BUILD_VERSION = internal-$(USER_RELEASE_SUFFIX)
neliasso@4522 86 !else
neliasso@4522 87 HOTSPOT_BUILD_VERSION = internal
neliasso@4522 88 !endif
duke@0 89 !if "$(HOTSPOT_RELEASE_VERSION)" != ""
neliasso@4522 90 HOTSPOT_RELEASE_VERSION="\\\"$(HOTSPOT_RELEASE_VERSION)\\\""
duke@0 91 !else
neliasso@4522 92 HOTSPOT_RELEASE_VERSION="\\\"$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)-$(HOTSPOT_BUILD_VERSION)\\\""
duke@0 93 !endif
duke@0 94 !if "$(JRE_RELEASE_VERSION)" != ""
neliasso@4522 95 JRE_RELEASE_VERSION="\\\"$(JRE_RELEASE_VERSION)\\\""
duke@0 96 !else
neliasso@4522 97 JRE_RELEASE_VERSION="\\\"$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)\\\""
duke@0 98 !endif
duke@0 99
duke@0 100 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
duke@0 101 # and if it is not see if we have the src/closed directory
duke@0 102 !if "$(HOTSPOT_VM_DISTRO)" != ""
neliasso@4522 103 HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)
duke@0 104 !else
duke@0 105 !if exists($(HOTSPOTWORKSPACE)\src\closed)
neliasso@4522 106 HOTSPOT_VM_DISTRO="\\\"Java HotSpot(TM)\\\""
duke@0 107 !else
neliasso@4522 108 HOTSPOT_VM_DISTRO="\\\"OpenJDK\\\""
duke@0 109 !endif
duke@0 110 !endif
duke@0 111
neliasso@4522 112 ReleaseOptions = -define HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION) -define JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) -define HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)
neliasso@4522 113 ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) $(ReleaseOptions)
duke@0 114
sla@2235 115 $(HOTSPOTBUILDSPACE)/$(ProjectFile): $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class
tbell@4228 116 @$(RUN_JAVA) -Djava.class.path="$(HOTSPOTBUILDSPACE)/classes" ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions)
duke@0 117
duke@0 118 clean:
stefank@1992 119 @rm -rf $(HOTSPOTBUILDSPACE)/classes
sla@2235 120 @rm -r $(HOTSPOTBUILDSPACE)/$(ProjectFile)
duke@0 121
stefank@1992 122 $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources)
duke@0 123 @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
duke@0 124 @mkdir $(HOTSPOTBUILDSPACE)\classes
stefank@1992 125 @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources)
duke@0 126
duke@0 127 FORCE: