Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
c586adb9
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看板
提交
c586adb9
编写于
4月 23, 2011
作者:
J
jcoomes
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7037250: cscope.make database generation is silently broken
Reviewed-by: stefank
上级
88ac75fa
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
47 addition
and
228 deletion
+47
-228
make/cscope.make
make/cscope.make
+45
-66
make/linux/Makefile
make/linux/Makefile
+1
-1
make/linux/makefiles/cscope.make
make/linux/makefiles/cscope.make
+0
-160
make/solaris/Makefile
make/solaris/Makefile
+1
-1
未找到文件。
make/
solaris/makefiles/
cscope.make
→
make/cscope.make
浏览文件 @
c586adb9
...
...
@@ -22,29 +22,23 @@
#
#
#
# The cscope.out file is made in the current directory and spans the entire
# source tree.
#
# Things to note:
# 1. We use relative names for cscope.
# 2. We *don't* remove the old cscope.out file, because cscope is smart
# enough to only build what has changed. It can be confused, however,
# if files are renamed or removed, so it may be necessary to manually
# remove cscope.out if a lot of reorganization has occurred.
#
# The cscope.out file is generated in the current directory. The old cscope.out
# file is *not* removed because cscope is smart enough to only build what has
# changed. cscope can be confused if files are renamed or removed, so it may be
# necessary to remove cscope.out (gmake cscope.clean) if a lot of reorganization
# has occurred.
include
$(GAMMADIR)/make/scm.make
NAWK
=
/usr/xpg4/bin/awk
RM
=
rm
-f
HG
=
hg
CS_TOP
=
../..
CS_TOP
=
$(GAMMADIR)
CSDIRS
=
$(CS_TOP)
/src
$(CS_TOP)
/make
CSINCS
=
$
(
CSDIRS:%
=
-I
%
)
CSCOPE
=
cscope
CSCOPE_OUT
=
cscope.out
CSCOPE_FLAGS
=
-b
# Allow .java files to be added from the environment (CSCLASSES=yes).
...
...
@@ -61,25 +55,22 @@ ifndef CSHEADERS
RMCCHEADERS
=
-o
-name
CClassHeaders
endif
# Use CS_GENERATED=x to include auto-generated files in the make directories.
ifdef
CS_GENERATED
CS_ADD_GENERATED
=
-o
-name
'*.incl'
else
CS_PRUNE_GENERATED
=
-o
-name
'
${OS}
_*_core'
-o
-name
'
${OS}
_*_compiler?'
endif
# Ignore build products.
CS_PRUNE_GENERATED
=
-o
-name
'
${OSNAME}
_*_core'
-o
\
-name
'
${OSNAME}
_*_compiler?'
# O
S-specific files for other systems are excluded by default. Use CS_OS=yes
#
to include platform-specific files for other platfor
ms.
if
n
def
CS_OS
CS_
OS
=
linux macos solaris win32
CS_PRUNE_OS
=
$(
patsubst
%,-o
-name
'*%*'
,
$(
filter-out
${OS}
,
${CS_OS}
))
# O
/S-specific files for all systems are included by default. Set CS_OS to a
#
space-separated list of identifiers to include only those syste
ms.
ifdef
CS_OS
CS_
PRUNE_OS
=
$(
patsubst
%,-o
-name
'*%*'
,
\
$(
filter-out
${CS_OS}
,linux macos solaris windows
))
endif
#
Processor-specific files for other processors are excluded by default. Use
#
CS_CPU=x to include platform-specific files for other platform
s.
if
n
def
CS_CPU
CS_
CPU
=
i486 sparc amd64 ia64
CS_PRUNE_CPU
=
$(
patsubst
%,-o
-name
'*%*'
,
$(
filter-out
${SRCARCH}
,
${CS_CPU}
))
#
CPU-specific files for all processors are included by default. Set CS_CPU
#
space-separated list identifiers to include only those CPU
s.
ifdef
CS_CPU
CS_
PRUNE_CPU
=
$(
patsubst
%,-o
-name
'*%*'
,
\
$(
filter-out
${CS_CPU}
,arm ppc sparc x86 zero
))
endif
# What files should we include? A simple rule might be just those files under
...
...
@@ -95,10 +86,14 @@ CS_PRUNE_STD = $(SCM_DIRS) \
-o
-name
'*demo'
\
-o
-name
pkgarchive
# Placeholder for user-defined excludes.
CS_PRUNE_EX
=
CS_PRUNE
=
$(CS_PRUNE_STD)
\
$(CS_PRUNE_OS)
\
$(CS_PRUNE_CPU)
\
$(CS_PRUNE_GENERATED)
\
$(CS_PRUNE_EX)
\
$(RMCCHEADERS)
# File names to include.
...
...
@@ -114,49 +109,33 @@ CSFILENAMES = -name '*.[ch]pp' \
-o
-name
'*.ad'
\
$(ADDCLASSES)
.PHONY
:
cscope cscope.clean cscope.scratch TAGS.clean FORCE
.PRECIOUS
:
cscope.out
cscope
cscope.out
:
cscope.files FORCE
$(CSCOPE)
$(CSCOPE_FLAGS)
cscope
$(CSCOPE_OUT)
:
cscope.files FORCE
$(CSCOPE)
-f
$(CSCOPE_OUT)
$(CSCOPE_FLAGS)
# The .raw file is reordered here in an attempt to make cscope display the most
# relevant files first.
cscope.files
:
.cscope.files.raw
echo
"
$(CSINCS)
"
>
$@
-
egrep
-v
"
\.
java|
\/
make
\/
"
$<
>>
$@
-
fgrep
".java"
$<
>>
$@
-
fgrep
"/make/"
$<
>>
$@
cscope.clean
:
$(QUIETLY)
$(RM)
$(CSCOPE_OUT)
cscope.files
.cscope.files.raw
:
.nametable.files
-
find
$(CSDIRS)
-type
d
\(
$(CS_PRUNE)
\)
-prune
-o
\
-type
f
\(
$(CSFILENAMES)
\)
-print
>
$@
cscope.scratch
:
cscope.clean cscope
cscope.clean
:
nametable.clean
-
$(RM)
cscope.out cscope.files .cscope.files.raw
# The raw list is reordered so cscope displays the most relevant files first.
cscope.files
:
$(QUIETLY)
\
raw
=
cscope.
$$$$
;
\
find
$(CSDIRS)
-type
d
\(
$(CS_PRUNE)
\)
-prune
-o
\
-type
f
\(
$(CSFILENAMES)
\)
-print
>
$$
raw
;
\
{
\
echo
"
$(CSINCS)
"
;
\
egrep
-v
"
\.
java|/make/"
$$
raw
;
\
fgrep
".java"
$$
raw
;
\
fgrep
"/make/"
$$
raw
;
\
}
>
$@
;
\
rm
-f
$$
raw
TAGS
:
cscope.files FORCE
egrep
-v
'^-|^$$'
$<
| etags
--members
-
TAGS.clean
:
nametable.clean
-
$(RM)
TAGS
# .nametable.files and .nametable.files.tmp are used to determine if any files
# were added to/deleted from/renamed in the workspace. If not, then there's
# normally no need to rebuild the cscope database. To force a rebuild of
# the cscope database: gmake nametable.clean.
.nametable.files
:
.nametable.files.tmp
(
cmp
-s
$@
$<
)
||
(
cp
$<
$@
)
-
$(RM)
$<
# `hg status' is slightly faster than `hg fstatus'. Both are
# quite a bit slower on an NFS mounted file system, so this is
# really geared towards repos on local file systems.
.nametable.files.tmp
:
-
$(HG)
fstatus
-acmn
>
$@
nametable.clean
:
-
$(RM)
.nametable.files .nametable.files.tmp
FORCE
:
.PHONY
:
cscope cscope.clean TAGS.clean nametable.clean FORCE
TAGS.clean
:
$(RM)
TAGS
make/linux/Makefile
浏览文件 @
c586adb9
...
...
@@ -359,7 +359,7 @@ clean_compiler1 clean_compiler2 clean_core clean_zero clean_shark:
clean
:
clean_compiler2 clean_compiler1 clean_core clean_zero clean_shark clean_docs
include
$(GAMMADIR)/make/
$(OSNAME)/makefiles/
cscope.make
include
$(GAMMADIR)/make/cscope.make
#-------------------------------------------------------------------------------
...
...
make/linux/makefiles/cscope.make
已删除
100644 → 0
浏览文件 @
88ac75fa
#
# Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
#
# The cscope.out file is made in the current directory and spans the entire
# source tree.
#
# Things to note:
# 1. We use relative names for cscope.
# 2. We *don't* remove the old cscope.out file, because cscope is smart
# enough to only build what has changed. It can be confused, however,
# if files are renamed or removed, so it may be necessary to manually
# remove cscope.out if a lot of reorganization has occurred.
#
include
$(GAMMADIR)/make/scm.make
NAWK
=
awk
RM
=
rm
-f
HG
=
hg
CS_TOP
=
../..
CSDIRS
=
$(CS_TOP)
/src
$(CS_TOP)
/build
CSINCS
=
$
(
CSDIRS:%
=
-I
%
)
CSCOPE
=
cscope
CSCOPE_FLAGS
=
-b
# Allow .java files to be added from the environment (CSCLASSES=yes).
ifdef
CSCLASSES
ADDCLASSES
=
-o
-name
'*.java'
endif
# Adding CClassHeaders also pushes the file count of a full workspace up about
# 200 files (these files also don't exist in a new workspace, and thus will
# cause the recreation of the database as they get created, which might seem
# a little confusing). Thus allow these files to be added from the environment
# (CSHEADERS=yes).
ifndef
CSHEADERS
RMCCHEADERS
=
-o
-name
CClassHeaders
endif
# Use CS_GENERATED=x to include auto-generated files in the build directories.
ifdef
CS_GENERATED
CS_ADD_GENERATED
=
-o
-name
'*.incl'
else
CS_PRUNE_GENERATED
=
-o
-name
'
${OS}
_*_core'
-o
-name
'
${OS}
_*_compiler?'
endif
# OS-specific files for other systems are excluded by default. Use CS_OS=yes
# to include platform-specific files for other platforms.
ifndef
CS_OS
CS_OS
=
linux macos solaris win32
CS_PRUNE_OS
=
$(
patsubst
%,-o
-name
'*%*'
,
$(
filter-out
${OS}
,
${CS_OS}
))
endif
# Processor-specific files for other processors are excluded by default. Use
# CS_CPU=x to include platform-specific files for other platforms.
ifndef
CS_CPU
CS_CPU
=
i486 sparc amd64 ia64
CS_PRUNE_CPU
=
$(
patsubst
%,-o
-name
'*%*'
,
$(
filter-out
${SRCARCH}
,
${CS_CPU}
))
endif
# What files should we include? A simple rule might be just those files under
# SCCS control, however this would miss files we create like the opcodes and
# CClassHeaders. The following attempts to find everything that is *useful*.
# (.del files are created by sccsrm, demo directories contain many .java files
# that probably aren't useful for development, and the pkgarchive may contain
# duplicates of files within the source hierarchy).
# Directories to exclude.
CS_PRUNE_STD
=
$(SCM_DIRS)
\
-o
-name
'.del-*'
\
-o
-name
'*demo'
\
-o
-name
pkgarchive
CS_PRUNE
=
$(CS_PRUNE_STD)
\
$(CS_PRUNE_OS)
\
$(CS_PRUNE_CPU)
\
$(CS_PRUNE_GENERATED)
\
$(RMCCHEADERS)
# File names to include.
CSFILENAMES
=
-name
'*.[ch]pp'
\
-o
-name
'*.[Ccshlxy]'
\
$(CS_ADD_GENERATED)
\
-o
-name
'*.il'
\
-o
-name
'*.cc'
\
-o
-name
'*[Mm]akefile*'
\
-o
-name
'*.gmk'
\
-o
-name
'*.make'
\
-o
-name
'*.ad'
\
$(ADDCLASSES)
.PRECIOUS
:
cscope.out
cscope cscope.out
:
cscope.files FORCE
$(CSCOPE)
$(CSCOPE_FLAGS)
# The .raw file is reordered here in an attempt to make cscope display the most
# relevant files first.
cscope.files
:
.cscope.files.raw
echo
"
$(CSINCS)
"
>
$@
-
egrep
-v
"
\.
java|
\/
make
\/
"
$<
>>
$@
-
fgrep
".java"
$<
>>
$@
-
fgrep
"/make/"
$<
>>
$@
.cscope.files.raw
:
.nametable.files
-
find
$(CSDIRS)
-type
d
\(
$(CS_PRUNE)
\)
-prune
-o
\
-type
f
\(
$(CSFILENAMES)
\)
-print
>
$@
cscope.clean
:
nametable.clean
-
$(RM)
cscope.out cscope.files .cscope.files.raw
TAGS
:
cscope.files FORCE
egrep
-v
'^-|^$$'
$<
| etags
--members
-
TAGS.clean
:
nametable.clean
-
$(RM)
TAGS
# .nametable.files and .nametable.files.tmp are used to determine if any files
# were added to/deleted from/renamed in the workspace. If not, then there's
# normally no need to rebuild the cscope database. To force a rebuild of
# the cscope database: gmake nametable.clean.
.nametable.files
:
.nametable.files.tmp
(
cmp
-s
$@
$<
)
||
(
cp
$<
$@
)
-
$(RM)
$<
# `hg status' is slightly faster than `hg fstatus'. Both are
# quite a bit slower on an NFS mounted file system, so this is
# really geared towards repos on local file systems.
.nametable.files.tmp
:
-
$(HG)
fstatus
-acmn
>
$@
nametable.clean
:
-
$(RM)
.nametable.files .nametable.files.tmp
FORCE
:
.PHONY
:
cscope cscope.clean TAGS.clean nametable.clean FORCE
make/solaris/Makefile
浏览文件 @
c586adb9
...
...
@@ -296,7 +296,7 @@ clean_compiler1 clean_compiler2 clean_core clean_kernel:
clean
:
clean_compiler2 clean_compiler1 clean_core clean_docs clean_kernel
include
$(GAMMADIR)/make/
$(OSNAME)/makefiles/
cscope.make
include
$(GAMMADIR)/make/cscope.make
#-------------------------------------------------------------------------------
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录