hotspot/make/windows/projectfiles/common/Makefile
author ant
Tue, 17 Jun 2008 13:37:28 +0400
changeset 1171 a2782dd9f312
parent 338 5cf9f61d76f4
child 670 ddf3e9583f2f
permissions -rw-r--r--
4685768: A11y issue - Focus set to disabled component, can't Tab/Shift-Tab Summary: The restore-focus procedure should skip disabled components. Reviewed-by: art, dcherepanov
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
     2
# Copyright 1999-2007 Sun Microsystems, Inc.  All Rights Reserved.
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 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
    $(HOTSPOTWORKSPACE)/src/share/vm/gc_implementation/includeDB_gc_concurrentMarkSweep
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
IncludeDBs_kernel =$(IncludeDBs_base) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
                    $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
IncludeDBs_core =$(IncludeDBs_base) $(IncludeDBs_gc) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
                 $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_features
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
IncludeDBs_compiler1=$(IncludeDBs_core) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
                     $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
IncludeDBs_compiler2=$(IncludeDBs_core) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
                    $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
IncludeDBs_tiered=$(IncludeDBs_core) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
                    $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler1 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
                    $(HOTSPOTWORKSPACE)/src/share/vm/includeDB_compiler2
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
!if "$(Variant)" == "compiler1"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
IncludeDBs = $(IncludeDBs_compiler1)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
!if "$(Variant)" == "compiler2"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
IncludeDBs = $(IncludeDBs_compiler2)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
# 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
    86
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
!if "$(Variant)" == "tiered"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
IncludeDBs = $(IncludeDBs_tiered)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
# 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
    92
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
!if "$(Variant)" == "core"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
IncludeDBs = $(IncludeDBs_core)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
!if "$(Variant)" == "kernel"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
IncludeDBs = $(IncludeDBs_kernel)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
!include $(HOTSPOTWORKSPACE)/make/hotspot_version
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
!if "$(HOTSPOT_RELEASE_VERSION)" != ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
!if "$(HOTSPOT_BUILD_VERSION)" != ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
!if "$(JRE_RELEASE_VERSION)" != ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
# Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
# and if it is not see if we have the src/closed directory
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
!if "$(HOTSPOT_VM_DISTRO)" != ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
!if exists($(HOTSPOTWORKSPACE)\src\closed)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
HOTSPOT_VM_DISTRO="Java HotSpot(TM)"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
!else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
HOTSPOT_VM_DISTRO="OpenJDK"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
!endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
MakeDepsIDEOptions =       $(MakeDepsIDEOptions) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
      -includeDB_kernel    $(HOTSPOTBUILDSPACE)\includeDB_kernel \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
      -includeDB_core      $(HOTSPOTBUILDSPACE)\includeDB_core \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
      -includeDB_compiler1 $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
      -includeDB_compiler2 $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
      -includeDB_tiered    $(HOTSPOTBUILDSPACE)\includeDB_tiered \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
      -platform            $(Platform) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
      -define              HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
      -define              JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
      -define              HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
incls:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
	@mkdir incls
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
includeDB.current $(ProjectFile) Dependencies: local.make $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
                                               $(IncludeDBs) incls
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
	@rm -f includeDB $(HOTSPOTBUILDSPACE)\includeDB_kernel \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
                         $(HOTSPOTBUILDSPACE)\includeDB_core \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
                         $(HOTSPOTBUILDSPACE)\includeDB_compiler1 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
                         $(HOTSPOTBUILDSPACE)\includeDB_compiler2 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
                         $(HOTSPOTBUILDSPACE)\includeDB_tiered
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
	@cat $(IncludeDBs_kernel) > $(HOTSPOTBUILDSPACE)\includeDB_kernel
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
	@cat $(IncludeDBs_core) > $(HOTSPOTBUILDSPACE)\includeDB_core
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
	@cat $(IncludeDBs_compiler1)   > $(HOTSPOTBUILDSPACE)\includeDB_compiler1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
	@cat $(IncludeDBs_compiler2)   > $(HOTSPOTBUILDSPACE)\includeDB_compiler2
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
	@cat $(IncludeDBs_tiered)      > $(HOTSPOTBUILDSPACE)\includeDB_tiered
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
	@echo java.cpp jni.h >  includeDB
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
	@$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps diffs WinGammaPlatform$(VcVersion) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
                  $(Platform) includeDB.current $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
	@rm -f includeDB.current
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
	@cp includeDB includeDB.current
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
lists: $(HOTSPOTBUILDSPACE)/classes/MakeDeps.class FORCE
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
	@if exist incls rmdir /s /q incls
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
	@rm -f includeDB
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
	@cat $(IncludeDBs) > includeDB
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
	@mkdir incls
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
	@$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes MakeDeps WinGammaPlatform$(VcVersion) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
                 $(Platform) includeDB $(MakeDepsOptions) $(MakeDepsIDEOptions)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
	@rm -f includeDB.current
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
	@cp includeDB includeDB.current
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
clean:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
	@rm -rf incls $(HOTSPOTBUILDSPACE)/classes
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
	@rm -f includeDB includeDB.current $(ProjectFile) Dependencies
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
$(HOTSPOTBUILDSPACE)/classes/MakeDeps.class: $(MakeDepsSources)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
	@if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
	@mkdir $(HOTSPOTBUILDSPACE)\classes
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
	@$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\MakeDeps -g -d $(HOTSPOTBUILDSPACE)/classes $(MakeDepsSources)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
FORCE: