WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] add cscope support to xen Makefile

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] add cscope support to xen Makefile
From: Chris Wright <chrisw@xxxxxxxx>
Date: Fri, 15 Apr 2005 14:22:28 -0700
Delivery-date: Fri, 15 Apr 2005 21:22:27 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
Add cscope support to xen Makefile.  While at it, refactor a bit so
etags, ctags, and cscope use same method to generate file list.

Signed-off-by: Chris Wright <chrisw@xxxxxxxx>
---

 xen/Makefile |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

===== xen/Makefile 1.78 vs edited =====
--- 1.78/xen/Makefile   2005-03-28 13:51:31 -08:00
+++ edited/xen/Makefile 2005-04-14 14:25:33 -07:00
@@ -106,15 +106,18 @@ include/asm-$(TARGET_ARCH)/asm-offsets.h
 .PHONY: default debug install dist clean delete-unfresh-files TAGS tags
 
 SUBDIRS = arch/$(TARGET_ARCH) common drivers 
+define all_sources
+    ( find include/asm-$(TARGET_ARCH) -name SCCS -prune -o -name '*.h' -print; 
\
+      find include -type d -name SCCS -prune -o \( -name "asm-*" -o \
+            -name config \) -prune -o -name '*.h' -print; \
+      find $(SUBDIRS) -name SCCS -prune -o -name '*.[chS]' -print )
+endef
 TAGS: 
-       ( find include/asm-$(TARGET_ARCH) -name '*.h'; \
-         find include -type d \( -name "asm-*" -o -name config \) -prune -o \
-               -name '*.h' -print; \
-         find $(SUBDIRS) -name '*.[chS]' ) | grep -v /SCCS/ | etags -
+       $(all_sources) | etags -
 tags: 
-       ( find include/asm-$(TARGET_ARCH) -name '*.h'; \
-         find include -type d \( -name "asm-*" -o -name config \) -prune -o \
-               -name '*.h' -print; \
-         find $(SUBDIRS) -name '*.[chS]' ) | grep -v /SCCS/ | xargs ctags
+       $(all_sources) | xargs ctags
+cscope: 
+       $(all_sources) > cscope.files
+       cscope -k -b -q
 MAP:
        nm $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] 
\)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] add cscope support to xen Makefile, Chris Wright <=