hotspot/make/windows/projectfiles/common/Makefile
author andrew
Sat, 12 Sep 2009 12:50:07 +0100
changeset 3818 75004bf9026c
parent 1561 51e4bf6d3d7b
child 5547 f4b087cbb361
permissions -rw-r--r--
6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk Summary: The build fails if the bootstrap JDK defaults to <1.5 Reviewed-by: jcoomes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
#
670
ddf3e9583f2f 6719955: Update copyright year
xdono
parents: 338
diff changeset
     2
# Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
# accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    20
# CA 95054 USA or visit www.sun.com if you need additional information or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    21
# have any questions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
#  
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
WorkSpace=$(HOTSPOTWORKSPACE)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
!ifdef ALT_BOOTDIR
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
BootStrapDir=$(ALT_BOOTDIR)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
!ifdef BOOTDIR
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
BootStrapDir=$(BOOTDIR)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
!ifdef JAVA_HOME
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
BootStrapDir=$(JAVA_HOME)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
    39
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/makedeps.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
# Pick up rules for building JVMTI (JSR-163)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
JvmtiOutDir=$(HOTSPOTBUILDSPACE)\jvmtifiles
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
    43
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
    45
Platform=$(HOTSPOTWORKSPACE)/make/windows/platform_$(BUILDARCH)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
default:: $(AdditionalTargets) $(JvmtiGeneratedFiles)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
IncludeDBs_base=$(HOTSPOTWORKSPACE)/src/share/vm/includeDB_core  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
                $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_jvmti \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
                $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_gc    \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
                $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_serial
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
# Parallel gc files
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
IncludeDBs_gc=$(HOTSPOTWORKSPACE)/src/share/vm/includeDB_gc_parallel       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
    $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_shared \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
    $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_parNew \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
    $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_parallelScavenge \
1561
51e4bf6d3d7b 6771742: Remove duplicate files from G1 merge
jmasa
parents: 670
diff changeset
    59
    $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_concurrentMarkSweep \
51e4bf6d3d7b 6771742: Remove duplicate files from G1 merge
jmasa
parents: 670
diff changeset
    60
    $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_g1
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
IncludeDBs_kernel =$(IncludeDBs_base) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
                    $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
IncludeDBs_core =$(IncludeDBs_base) $(IncludeDBs_gc) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
                 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_features
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
IncludeDBs_compiler1=$(IncludeDBs_core) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
                     $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
IncludeDBs_compiler2=$(IncludeDBs_core) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
                    $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
IncludeDBs_tiered=$(IncludeDBs_core) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
                    $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
                    $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
!if "$(Variant)" == "compiler1"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
IncludeDBs = $(IncludeDBs_compiler1)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
!if "$(Variant)" == "compiler2"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
IncludeDBs = $(IncludeDBs_compiler2)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
# Pick up rules for building adlc
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
    87
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
!if "$(Variant)" == "tiered"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
IncludeDBs = $(IncludeDBs_tiered)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
# Pick up rules for building adlc
338
5cf9f61d76f4 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 1
diff changeset
    93
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
!if "$(Variant)" == "core"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
IncludeDBs = $(IncludeDBs_core)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
!if "$(Variant)" == "kernel"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
IncludeDBs = $(IncludeDBs_kernel)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
!include $(HOTSPOTWORKSPACE)/make/hotspot_version
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
!if "$(HOTSPOT_RELEASE_VERSION)" != ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
!if "$(HOTSPOT_BUILD_VERSION)" != ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
!if "$(JRE_RELEASE_VERSION)" != ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
# Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
# and if it is not see if we have the src/closed directory
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
!if "$(HOTSPOT_VM_DISTRO)" != ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
!if exists($(HOTSPOTWORKSPACE)\src\closed)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
HOTSPOT_VM_DISTRO="Java HotSpot(TM)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
HOTSPOT_VM_DISTRO="OpenJDK"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
MakeDepsIDEOptions =       $(MakeDepsIDEOptions) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
      -includeDB_kernel    $(HOTSPOTBUILDSPACE)\includeDB_kernel \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
      -includeDB_core      $(HOTSPOTBUILDSPACE)\includeDB_core \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
      -includeDB_compiler1 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
      -includeDB_compiler2 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
      -includeDB_tiered    $(HOTSPOTBUILDSPACE)\includeDB_tiered \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
      -platform            $(Platform) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
      -define              HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
      -define              JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
      -define              HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
incls:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
	@mkdir incls
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
includeDB.current $(ProjectFile) Dependencies: local.make $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
                                               $(IncludeDBs) incls
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
	@rm -f includeDB $(HOTSPOTBUILDSPACE)\includeDB_kernel \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
                         $(HOTSPOTBUILDSPACE)\includeDB_core \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
                         $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
                         $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
                         $(HOTSPOTBUILDSPACE)\includeDB_tiered
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
	@cat $(IncludeDBs_kernel) > $(HOTSPOTBUILDSPACE)\includeDB_kernel
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
	@cat $(IncludeDBs_core) > $(HOTSPOTBUILDSPACE)\includeDB_core
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
	@cat $(IncludeDBs_compiler1)   > $(HOTSPOTBUILDSPACE)\includeDB_compiler1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
	@cat $(IncludeDBs_compiler2)   > $(HOTSPOTBUILDSPACE)\includeDB_compiler2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
	@cat $(IncludeDBs_tiered)      > $(HOTSPOTBUILDSPACE)\includeDB_tiered
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
	@echo java.cpp jni.h >  includeDB
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
	@$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps diffs WinGammaPlatform$(VcVersion) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
                  $(Platform) includeDB.current $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
	@rm -f includeDB.current
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
	@cp includeDB includeDB.current
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
lists: $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class FORCE
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
	@if exist incls rmdir /s /q incls
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
	@rm -f includeDB
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
	@cat $(IncludeDBs) > includeDB
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
	@mkdir incls
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
	@$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps WinGammaPlatform$(VcVersion) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
                 $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
	@rm -f includeDB.current
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
	@cp includeDB includeDB.current
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
clean:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
	@rm -rf incls $(HOTSPOTBUILDSPACE)/classes
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
	@rm -f includeDB includeDB.current $(ProjectFile) Dependencies
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
$(HOTSPOTBUILDSPACE)/classes/MakeDeps.class: $(MakeDepsSources)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
	@if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
	@mkdir $(HOTSPOTBUILDSPACE)\classes
3818
75004bf9026c 6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk
andrew
parents: 1561
diff changeset
   182
	@$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\MakeDeps -d $(HOTSPOTBUILDSPACE)/classes $(MakeDepsSources)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
FORCE: