0
|
1 #
|
|
2 # Copyright 2006-2007 Sun Microsystems, Inc. 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
20 # CA 95054 USA or visit www.sun.com if you need additional information or
|
|
21 # have any questions.
|
|
22 #
|
|
23 #
|
|
24
|
|
25 # The common definitions for hotspot windows builds.
|
|
26 # Include the top level defs.make under make directory instead of this one.
|
|
27 # This file is included into make/defs.make.
|
|
28 # On windows it is only used to construct parameters for
|
|
29 # build/windows/build.make when make/Makefile is used to build VM.
|
|
30
|
|
31 SLASH_JAVA ?= J:
|
|
32 PATH_SEP = ;
|
|
33
|
|
34 # Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
|
|
35 ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) x86),)
|
|
36 ARCH_DATA_MODEL=32
|
|
37 PLATFORM=windows-i586
|
|
38 VM_PLATFORM=windows_i486
|
|
39 HS_ARCH=x86
|
|
40 MAKE_ARGS += ARCH=x86
|
|
41 MAKE_ARGS += BUILDARCH=i486
|
|
42 MAKE_ARGS += Platform_arch=x86
|
|
43 MAKE_ARGS += Platform_arch_model=x86_32
|
|
44 endif
|
|
45
|
|
46 ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) ia64),)
|
|
47 ARCH_DATA_MODEL=64
|
|
48 PLATFORM=windows-ia64
|
|
49 VM_PLATFORM=windows_ia64
|
|
50 HS_ARCH=ia64
|
|
51 MAKE_ARGS += LP64=1
|
|
52 MAKE_ARGS += ARCH=ia64
|
|
53 MAKE_ARGS += BUILDARCH=ia64
|
|
54 MAKE_ARGS += Platform_arch=ia64
|
|
55 MAKE_ARGS += Platform_arch_model=ia64
|
|
56 endif
|
|
57
|
|
58 ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) AMD64),)
|
|
59 ARCH_DATA_MODEL=64
|
|
60 PLATFORM=windows-amd64
|
|
61 VM_PLATFORM=windows_amd64
|
|
62 HS_ARCH=x86
|
|
63 MAKE_ARGS += LP64=1
|
|
64 MAKE_ARGS += ARCH=x86
|
|
65 MAKE_ARGS += BUILDARCH=amd64
|
|
66 MAKE_ARGS += Platform_arch=x86
|
|
67 MAKE_ARGS += Platform_arch_model=x86_64
|
|
68 endif
|
|
69
|
|
70 JDK_INCLUDE_SUBDIR=win32
|
|
71
|
|
72 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined
|
|
73 # and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make.
|
|
74
|
|
75 # next parameters are defined in $(GAMMADIR)/make/defs.make.
|
|
76 MAKE_ARGS += JDK_MKTG_VERSION=$(JDK_MKTG_VERSION)
|
|
77 MAKE_ARGS += JDK_MAJOR_VER=$(JDK_MAJOR_VERSION)
|
|
78 MAKE_ARGS += JDK_MINOR_VER=$(JDK_MINOR_VERSION)
|
|
79 MAKE_ARGS += JDK_MICRO_VER=$(JDK_MICRO_VERSION)
|
|
80
|
|
81 ifdef COOKED_JDK_UPDATE_VERSION
|
|
82 MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION)
|
|
83 endif
|
|
84
|
|
85 # COOKED_BUILD_NUMBER should only be set if we have a numeric
|
|
86 # build number. It must not be zero padded.
|
|
87 ifdef COOKED_BUILD_NUMBER
|
|
88 MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER)
|
|
89 endif
|
|
90
|
|
91 NMAKE= MAKEFLAGS= MFLAGS= nmake /NOLOGO
|
|
92
|
|
93 # Check for CYGWIN
|
|
94 ifneq (,$(findstring CYGWIN,$(shell uname)))
|
|
95 USING_CYGWIN=true
|
|
96 else
|
|
97 USING_CYGWIN=false
|
|
98 endif
|
|
99 # FIXUP: The subdirectory for a debug build is NOT the same on all platforms
|
|
100 VM_DEBUG=debug
|
|
101
|
|
102 # Windows wants particular paths due to nmake (must be after macros defined)
|
|
103 # It is important that gnumake invokes nmake with C:\\...\\ formated
|
|
104 # strings so that nmake gets C:\...\ style strings.
|
|
105 # Check for CYGWIN
|
|
106 ifeq ($(USING_CYGWIN), true)
|
|
107 ABS_OUTPUTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(OUTPUTDIR)"))
|
|
108 ABS_BOOTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(BOOTDIR)"))
|
|
109 ABS_GAMMADIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(GAMMADIR)"))
|
|
110 ABS_OS_MAKEFILE := $(shell /bin/cygpath -m -a "$(HS_BUILD_DIR)/$(OSNAME)")/build.make
|
|
111 else
|
|
112 ABS_OUTPUTDIR := $(subst /,\\,$(shell $(CD) $(OUTPUTDIR);$(PWD)))
|
|
113 ABS_BOOTDIR := $(subst /,\\,$(shell $(CD) $(BOOTDIR);$(PWD)))
|
|
114 ABS_GAMMADIR := $(subst /,\\,$(shell $(CD) $(GAMMADIR);$(PWD)))
|
|
115 ABS_OS_MAKEFILE := $(subst /,\\,$(shell $(CD) $(HS_BUILD_DIR)/$(OSNAME);$(PWD))/build.make)
|
|
116 endif
|
|
117
|
|
118 # Disable building SA on windows until we are sure
|
|
119 # we want to release it. If we build it here,
|
|
120 # the SDK makefiles will copy it over and put it into
|
|
121 # the created image.
|
|
122 BUILD_WIN_SA = 0
|
|
123 ifneq ($(ALT_BUILD_WIN_SA),)
|
|
124 BUILD_WIN_SA = $(ALT_BUILD_WIN_SA)
|
|
125 endif
|
|
126
|
|
127 ifeq ($(BUILD_WIN_SA), 1)
|
|
128 ifeq ($(ARCH),ia64)
|
|
129 BUILD_WIN_SA = 0
|
|
130 endif
|
|
131 endif
|
|
132
|
|
133 EXPORT_SERVER_DIR = $(EXPORT_JRE_BIN_DIR)/server
|
|
134 EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt
|
|
135 EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.dll
|
|
136 EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.pdb
|
|
137 EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.map
|
|
138 EXPORT_LIST += $(EXPORT_LIB_DIR)/jvm.lib
|
|
139 ifeq ($(ARCH_DATA_MODEL), 32)
|
|
140 EXPORT_CLIENT_DIR = $(EXPORT_JRE_BIN_DIR)/client
|
|
141 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt
|
|
142 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.dll
|
|
143 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.pdb
|
|
144 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.map
|
|
145 # kernel vm
|
|
146 EXPORT_KERNEL_DIR = $(EXPORT_JRE_BIN_DIR)/kernel
|
|
147 EXPORT_LIST += $(EXPORT_KERNEL_DIR)/Xusage.txt
|
|
148 EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.dll
|
|
149 EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.pdb
|
|
150 EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.map
|
|
151 endif
|
|
152
|
|
153 ifeq ($(BUILD_WIN_SA), 1)
|
|
154 EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.dll
|
|
155 EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.pdb
|
|
156 EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.map
|
|
157 EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar
|
|
158 # Must pass this down to nmake.
|
|
159 MAKE_ARGS += BUILD_WIN_SA=1
|
|
160 endif
|