Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
a4dbe3c3
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a4dbe3c3
编写于
2月 22, 2012
作者:
E
erikj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
Reviewed-by: dholmes, ohrstrom, ohair, jcoomes
上级
14612e0c
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
147 addition
and
89 deletion
+147
-89
make/bsd/makefiles/buildtree.make
make/bsd/makefiles/buildtree.make
+3
-0
make/bsd/makefiles/gcc.make
make/bsd/makefiles/gcc.make
+45
-41
make/bsd/makefiles/sparcWorks.make
make/bsd/makefiles/sparcWorks.make
+9
-6
make/defs.make
make/defs.make
+5
-0
make/linux/makefiles/buildtree.make
make/linux/makefiles/buildtree.make
+3
-0
make/linux/makefiles/gcc.make
make/linux/makefiles/gcc.make
+18
-19
make/linux/makefiles/sparcWorks.make
make/linux/makefiles/sparcWorks.make
+9
-6
make/solaris/makefiles/buildtree.make
make/solaris/makefiles/buildtree.make
+3
-0
make/solaris/makefiles/gcc.make
make/solaris/makefiles/gcc.make
+7
-5
make/solaris/makefiles/sparcWorks.make
make/solaris/makefiles/sparcWorks.make
+13
-12
make/windows/build.make
make/windows/build.make
+4
-0
make/windows/makefiles/compile.make
make/windows/makefiles/compile.make
+12
-0
make/windows/makefiles/defs.make
make/windows/makefiles/defs.make
+16
-0
未找到文件。
make/bsd/makefiles/buildtree.make
浏览文件 @
a4dbe3c3
...
...
@@ -58,6 +58,7 @@
# needs to be set here since this Makefile doesn't include defs.make
OS_VENDOR
:=
$(
shell
uname
-s
)
-include
$(SPEC)
include
$(GAMMADIR)/make/scm.make
include
$(GAMMADIR)/make/altsrc.make
...
...
@@ -247,6 +248,8 @@ flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
echo
"HOTSPOT_EXTRA_SYSDEFS
\$
$(HOTSPOT_EXTRA_SYSDEFS)
=
$(HOTSPOT_EXTRA_SYSDEFS)
"
&&
\
echo
"SYSDEFS +=
\$
$(HOTSPOT_EXTRA_SYSDEFS)
"
;
\
echo
;
\
[
-n
"
$(SPEC)
"
]
&&
\
echo
"include
$(SPEC)
"
;
\
echo
"include
\$
$(GAMMADIR)
/make/
$(OS_FAMILY)
/makefiles/
$(VARIANT)
.make"
;
\
echo
"include
\$
$(GAMMADIR)
/make/
$(OS_FAMILY)
/makefiles/
$(COMPILER)
.make"
;
\
)
>
$@
...
...
make/bsd/makefiles/gcc.make
浏览文件 @
a4dbe3c3
...
...
@@ -27,53 +27,57 @@ OS_VENDOR = $(shell uname -s)
#------------------------------------------------------------------------
# CC, CXX & AS
# When cross-compiling the ALT_COMPILER_PATH points
# to the cross-compilation toolset
ifdef
CROSS_COMPILE_ARCH
CXX
=
$(ALT_COMPILER_PATH)
/g++
CC
=
$(ALT_COMPILER_PATH)
/gcc
HOSTCXX
=
g++
HOSTCC
=
gcc
else
ifneq
($(OS_VENDOR), Darwin)
CXX
=
g++
CC
=
gcc
HOSTCXX
=
$(CXX)
HOSTCC
=
$(CC)
endif
# i486 hotspot requires -mstackrealign on Darwin.
# llvm-gcc supports this in Xcode 3.2.6 and 4.0.
# gcc-4.0 supports this on earlier versions.
# Prefer llvm-gcc where available.
ifeq
($(OS_VENDOR), Darwin)
ifeq
($(origin CXX), default)
CXX
=
llvm-g++
endif
ifeq
($(origin CC), default)
CC
=
llvm-gcc
# If a SPEC is not set already, then use these defaults.
ifeq
($(SPEC),)
# When cross-compiling the ALT_COMPILER_PATH points
# to the cross-compilation toolset
ifdef
CROSS_COMPILE_ARCH
CXX
=
$(ALT_COMPILER_PATH)
/g++
CC
=
$(ALT_COMPILER_PATH)
/gcc
HOSTCXX
=
g++
HOSTCC
=
gcc
else
ifneq
($(OS_VENDOR), Darwin)
CXX
=
g++
CC
=
gcc
HOSTCXX
=
$(CXX)
HOSTCC
=
$(CC)
endif
ifeq
($(ARCH), i486)
LLVM_SUPPORTS_STACKREALIGN
:=
$(
shell
\
[
"0"
`
llvm-gcc
-v
2>&1 |
grep
LLVM |
sed
-E
"s/.*LLVM build ([0-9]+
)
.*/
\1
/"
`
-gt
"2333"
]
\
&&
echo true
||
echo false
)
ifeq
($(LLVM_SUPPORTS_STACKREALIGN), true)
CXX32
?=
llvm-g++
CC32
?=
llvm-gcc
else
CXX32
?=
g++-4.0
CC32
?=
gcc-4.0
endif
CXX
=
$(CXX32)
CC
=
$(CC32)
# i486 hotspot requires -mstackrealign on Darwin.
# llvm-gcc supports this in Xcode 3.2.6 and 4.0.
# gcc-4.0 supports this on earlier versions.
# Prefer llvm-gcc where available.
ifeq
($(OS_VENDOR), Darwin)
ifeq
($(origin CXX), default)
CXX
=
llvm-g++
endif
ifeq
($(origin CC), default)
CC
=
llvm-gcc
endif
ifeq
($(ARCH), i486)
LLVM_SUPPORTS_STACKREALIGN
:=
$(
shell
\
[
"0"
`
llvm-gcc
-v
2>&1 |
grep
LLVM |
sed
-E
"s/.*LLVM build ([0-9]+
)
.*/
\1
/"
`
-gt
"2333"
]
\
&&
echo true
||
echo false
)
ifeq
($(LLVM_SUPPORTS_STACKREALIGN), true)
CXX32
?=
llvm-g++
CC32
?=
llvm-gcc
else
CXX32
?=
g++-4.0
CC32
?=
gcc-4.0
endif
CXX
=
$(CXX32)
CC
=
$(CC32)
endif
HOSTCXX
=
$(CXX)
HOSTCC
=
$(CC)
endif
HOSTCXX
=
$(CXX)
HOSTCC
=
$(CC)
AS
=
$(CC)
-c
-x
assembler-with-cpp
endif
AS
=
$(CC)
-c
-x
assembler-with-cpp
# -dumpversion in gcc-2.91 shows "egcs-2.91.66". In later version, it only
# prints the numbers (e.g. "2.95", "3.2.1")
...
...
make/bsd/makefiles/sparcWorks.make
浏览文件 @
a4dbe3c3
...
...
@@ -25,12 +25,15 @@
#------------------------------------------------------------------------
# CC, CXX & AS
CXX
=
CC
CC
=
cc
AS
=
$(CC)
-c
HOSTCXX
=
$(CXX)
HOSTCC
=
$(CC)
# If a SPEC is not set already, then use these defaults.
ifeq
($(SPEC),)
CXX
=
CC
CC
=
cc
AS
=
$(CC)
-c
HOSTCXX
=
$(CXX)
HOSTCC
=
$(CC)
endif
ARCHFLAG
=
$
(
ARCHFLAG/
$(BUILDARCH)
)
ARCHFLAG/
i486
=
-m32
...
...
make/defs.make
浏览文件 @
a4dbe3c3
...
...
@@ -24,6 +24,11 @@
# The common definitions for hotspot builds.
# Optionally include SPEC file generated by configure.
ifneq
($(SPEC),)
include
$(SPEC)
endif
# Default to verbose build logs (show all compile lines):
MAKE_VERBOSE
=
y
...
...
make/linux/makefiles/buildtree.make
浏览文件 @
a4dbe3c3
...
...
@@ -55,6 +55,7 @@
# The makefiles are split this way so that "make foo" will run faster by not
# having to read the dependency files for the vm.
-include
$(SPEC)
include
$(GAMMADIR)/make/scm.make
include
$(GAMMADIR)/make/altsrc.make
...
...
@@ -244,6 +245,8 @@ flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
echo
"HOTSPOT_EXTRA_SYSDEFS
\$
$(HOTSPOT_EXTRA_SYSDEFS)
=
$(HOTSPOT_EXTRA_SYSDEFS)
"
&&
\
echo
"SYSDEFS +=
\$
$(HOTSPOT_EXTRA_SYSDEFS)
"
;
\
echo
;
\
[
-n
"
$(SPEC)
"
]
&&
\
echo
"include
$(SPEC)
"
;
\
echo
"include
\$
$(GAMMADIR)
/make/
$(OS_FAMILY)
/makefiles/
$(VARIANT)
.make"
;
\
echo
"include
\$
$(GAMMADIR)
/make/
$(OS_FAMILY)
/makefiles/
$(COMPILER)
.make"
;
\
)
>
$@
...
...
make/linux/makefiles/gcc.make
浏览文件 @
a4dbe3c3
...
...
@@ -25,21 +25,26 @@
#------------------------------------------------------------------------
# CC, CXX & AS
# When cross-compiling the ALT_COMPILER_PATH points
# to the cross-compilation toolset
ifdef
CROSS_COMPILE_ARCH
CXX
=
$(ALT_COMPILER_PATH)
/g++
CC
=
$(ALT_COMPILER_PATH)
/gcc
HOSTCXX
=
g++
HOSTCC
=
gcc
else
CXX
=
g++
CC
=
gcc
HOSTCXX
=
$(CXX)
HOSTCC
=
$(CC)
# If a SPEC is not set already, then use these defaults.
ifeq
($(SPEC),)
# When cross-compiling the ALT_COMPILER_PATH points
# to the cross-compilation toolset
ifdef
CROSS_COMPILE_ARCH
CXX
=
$(ALT_COMPILER_PATH)
/g++
CC
=
$(ALT_COMPILER_PATH)
/gcc
HOSTCXX
=
g++
HOSTCC
=
gcc
STRIP
=
$(ALT_COMPILER_PATH)
/strip
else
CXX
=
g++
CC
=
gcc
HOSTCXX
=
$(CXX)
HOSTCC
=
$(CC)
STRIP
=
strip
endif
AS
=
$(CC)
-c
endif
AS
=
$(CC)
-c
# -dumpversion in gcc-2.91 shows "egcs-2.91.66". In later version, it only
# prints the numbers (e.g. "2.95", "3.2.1")
...
...
@@ -261,9 +266,3 @@ endif
ifdef
MINIMIZE_RAM_USAGE
CFLAGS
+=
-DMINIMIZE_RAM_USAGE
endif
ifdef
CROSS_COMPILE_ARCH
STRIP
=
$(ALT_COMPILER_PATH)
/strip
else
STRIP
=
strip
endif
make/linux/makefiles/sparcWorks.make
浏览文件 @
a4dbe3c3
...
...
@@ -25,12 +25,15 @@
#------------------------------------------------------------------------
# CC, CXX & AS
CXX
=
CC
CC
=
cc
AS
=
$(CC)
-c
HOSTCXX
=
$(CXX)
HOSTCC
=
$(CC)
# If a SPEC is not set already, then use these defaults.
ifeq
($(SPEC),)
CXX
=
CC
CC
=
cc
AS
=
$(CC)
-c
HOSTCXX
=
$(CXX)
HOSTCC
=
$(CC)
endif
ARCHFLAG
=
$
(
ARCHFLAG/
$(BUILDARCH)
)
ARCHFLAG/
i486
=
-m32
...
...
make/solaris/makefiles/buildtree.make
浏览文件 @
a4dbe3c3
...
...
@@ -55,6 +55,7 @@
# The makefiles are split this way so that "make foo" will run faster by not
# having to read the dependency files for the vm.
-include
$(SPEC)
include
$(GAMMADIR)/make/scm.make
include
$(GAMMADIR)/make/altsrc.make
...
...
@@ -237,6 +238,8 @@ flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
echo
"HOTSPOT_EXTRA_SYSDEFS
\$
$(HOTSPOT_EXTRA_SYSDEFS)
=
$(HOTSPOT_EXTRA_SYSDEFS)
"
&&
\
echo
"SYSDEFS +=
\$
$(HOTSPOT_EXTRA_SYSDEFS)
"
;
\
echo
;
\
[
-n
"
$(SPEC)
"
]
&&
\
echo
"include
$(SPEC)
"
;
\
echo
"include
\$
$(GAMMADIR)
/make/
$(OS_FAMILY)
/makefiles/
$(VARIANT)
.make"
;
\
echo
"include
\$
$(GAMMADIR)
/make/
$(OS_FAMILY)
/makefiles/
$(COMPILER)
.make"
;
\
)
>
$@
...
...
make/solaris/makefiles/gcc.make
浏览文件 @
a4dbe3c3
...
...
@@ -25,9 +25,13 @@
#------------------------------------------------------------------------
# CC, CXX & AS
CXX
=
g++
CC
=
gcc
AS
=
$(CC)
-c
# If a SPEC is not set already, then use these defaults.
ifeq
($(SPEC),)
CXX
=
g++
CC
=
gcc
AS
=
$(CC)
-c
MCS
=
/usr/ccs/bin/mcs
endif
Compiler
=
gcc
...
...
@@ -193,5 +197,3 @@ DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
ifeq
($(DEBUG_CFLAGS/$(BUILDARCH)),)
DEBUG_CFLAGS
+=
-gstabs
endif
MCS
=
/usr/ccs/bin/mcs
make/solaris/makefiles/sparcWorks.make
浏览文件 @
a4dbe3c3
...
...
@@ -22,18 +22,22 @@
#
#
# Compiler-specific flags for sparcworks.
# If a SPEC is not set already, then use these defaults.
ifeq
($(SPEC),)
# Compiler-specific flags for sparcworks.
CC
=
cc
CXX
=
CC
# tell make which C and C++ compilers to use
CC
=
cc
CXX
=
CC
# Note that this 'as' is an older version of the Sun Studio 'fbe', and will
# use the older style options. The 'fbe' options will match 'cc' and 'CC'.
AS
=
/usr/ccs/bin/as
# Note that this 'as' is an older version of the Sun Studio 'fbe', and will
# use the older style options. The 'fbe' options will match 'cc' and 'CC'.
AS
=
/usr/ccs/bin/as
NM
=
/usr/ccs/bin/nm
NAWK
=
/bin/nawk
NM
=
/usr/ccs/bin/nm
NAWK
=
/bin/nawk
MCS
=
/usr/ccs/bin/mcs
STRIP
=
/usr/ccs/bin/strip
endif
REORDER_FLAG
=
-xF
...
...
@@ -557,9 +561,6 @@ else
#LINK_INTO = LIBJVM
endif
MCS
=
/usr/ccs/bin/mcs
STRIP
=
/usr/ccs/bin/strip
# Solaris platforms collect lots of redundant file-ident lines,
# to the point of wasting a significant percentage of file space.
# (The text is stored in ELF .comment sections, contributed by
...
...
make/windows/build.make
浏览文件 @
a4dbe3c3
...
...
@@ -297,6 +297,10 @@ $(variantDir)\local.make: checks
@
echo
BUILDARCH
=
$(BUILDARCH)
>>
$@
@
echo
Platform_arch
=
$(Platform_arch)
>>
$@
@
echo
Platform_arch_model
=
$(Platform_arch_model)
>>
$@
@
echo
CXX
=
$(CXX)
>>
$@
@
echo
LD
=
$(LD)
>>
$@
@
echo
MT
=
$(MT)
>>
$@
@
echo
RC
=
$(RC)
>>
$@
@
sh
$(WorkSpace)
/make/windows/get_msc_ver.sh
>>
$@
checks
:
checkVariant checkWorkSpace checkSA
...
...
make/windows/makefiles/compile.make
浏览文件 @
a4dbe3c3
...
...
@@ -23,7 +23,9 @@
#
# Generic compiler settings
!if
"x$(CXX)"
==
"x"
CXX
=
cl.exe
!
endif
# CXX Flags: (these vary slightly from VC6->VS2003->VS2005 compilers)
# /nologo Supress copyright message at every cl.exe startup
...
...
@@ -183,8 +185,10 @@ BUFFEROVERFLOWLIB = bufferoverflowU.lib
LD_FLAGS
=
/manifest
$(LD_FLAGS)
$(BUFFEROVERFLOWLIB)
# Manifest Tool - used in VS2005 and later to adjust manifests stored
# as resources inside build artifacts.
!if
"x$(MT)"
==
"x"
MT
=
mt.exe
!
endif
!
endif
!if
"$(COMPILER_NAME)"
==
"VS2008"
PRODUCT_OPT_OPTION
=
/O2 /Oy-
...
...
@@ -194,8 +198,10 @@ GX_OPTION = /EHsc
LD_FLAGS
=
/manifest
$(LD_FLAGS)
# Manifest Tool - used in VS2005 and later to adjust manifests stored
# as resources inside build artifacts.
!if
"x$(MT)"
==
"x"
MT
=
mt.exe
!
endif
!
endif
!if
"$(COMPILER_NAME)"
==
"VS2010"
PRODUCT_OPT_OPTION
=
/O2 /Oy-
...
...
@@ -205,7 +211,9 @@ GX_OPTION = /EHsc
LD_FLAGS
=
/manifest
$(LD_FLAGS)
# Manifest Tool - used in VS2005 and later to adjust manifests stored
# as resources inside build artifacts.
!if
"x$(MT)"
==
"x"
MT
=
mt.exe
!
endif
!if
"$(BUILDARCH)"
==
"i486"
LD_FLAGS
=
/SAFESEH
$(LD_FLAGS)
!
endif
...
...
@@ -225,7 +233,9 @@ FASTDEBUG_OPT_OPTION = $(DEBUG_OPT_OPTION)
!
endif
# Generic linker settings
!if
"x$(LD)"
==
"x"
LD
=
link.exe
!
endif
LD_FLAGS
=
$(LD_FLAGS)
kernel32.lib user32.lib gdi32.lib winspool.lib
\
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
\
uuid.lib Wsock32.lib winmm.lib /nologo /machine:
$(MACHINE)
/opt:REF
\
...
...
@@ -237,7 +247,9 @@ LD_FLAGS= $(LD_FLAGS) psapi.lib
!
endif
# Resource compiler settings
!if
"x$(RC)"
==
"x"
RC
=
rc.exe
!
endif
RC_FLAGS
=
/D
"HS_VER=
$(HS_VER)
"
\
/D
"HS_DOTVER=
$(HS_DOTVER)
"
\
/D
"HS_BUILD_ID=
$(HS_BUILD_ID)
"
\
...
...
make/windows/makefiles/defs.make
浏览文件 @
a4dbe3c3
...
...
@@ -202,3 +202,19 @@ ifeq ($(BUILD_WIN_SA), 1)
# Must pass this down to nmake.
MAKE_ARGS
+=
BUILD_WIN_SA
=
1
endif
# Propagate compiler and tools paths from configure to nmake.
# Need to make sure they contain \\ and not /.
ifneq
($(SPEC),)
ifeq
($(USING_CYGWIN), true)
MAKE_ARGS
+=
CXX
=
"
$(
subst
/,
\\
,
$(
shell
/bin/cygpath -s -m -a
$(CXX)
))
"
MAKE_ARGS
+=
LD
=
"
$(
subst
/,
\\
,
$(
shell
/bin/cygpath -s -m -a
$(LD)
))
"
MAKE_ARGS
+=
RC
=
"
$(
subst
/,
\\
,
$(
shell
/bin/cygpath -s -m -a
$(RC)
))
"
MAKE_ARGS
+=
MT
=
"
$(
subst
/,
\\
,
$(
shell
/bin/cygpath -s -m -a
$(MT)
))
"
else
MAKE_ARGS
+=
CXX
=
"
$(
subst
/,
\\
,
$(CXX)
)
"
MAKE_ARGS
+=
LD
=
"
$(
subst
/,
\\
,
$(LD)
)
"
MAKE_ARGS
+=
RC
=
"
$(
subst
/,
\\
,
$(RC)
)
"
MAKE_ARGS
+=
MT
=
"
$(
subst
/,
\\
,
$(MT)
)
"
endif
endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录