summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Yang <leoli@freescale.com>2008-02-29 11:46:05 +0800
committerWolfgang Denk <wd@denx.de>2008-03-02 22:22:27 +0100
commitffda586fc1373243c9794babde69500f6293a8d8 (patch)
treea93ec3df48e2a678355935a8fec01ecdedc44c42
parentf655adef65e4cf6b929054b049ee19ae9b5ccbe2 (diff)
downloadu-boot-imx-ffda586fc1373243c9794babde69500f6293a8d8.zip
u-boot-imx-ffda586fc1373243c9794babde69500f6293a8d8.tar.gz
u-boot-imx-ffda586fc1373243c9794babde69500f6293a8d8.tar.bz2
add cscope build target
Add cscope build target to generate cscope database for code browsing. Signed-off-by: Li Yang <leoli@freescale.com>
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4f4efa4..75254b7 100644
--- a/Makefile
+++ b/Makefile
@@ -400,6 +400,10 @@ tags ctags:
etags:
etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
-name '*.[ch]' -print`
+cscope:
+ find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
+ > cscope.files
+ cscope -b -q -k
$(obj)System.map: $(obj)u-boot
@$(NM) $< | \
@@ -427,7 +431,7 @@ else # !config.mk
all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
-dep tags ctags etags $(obj)System.map:
+dep tags ctags etags cscope $(obj)System.map:
@echo "System not configured - see README" >&2
@ exit 1
endif # config.mk
@@ -2929,7 +2933,8 @@ clobber: clean
-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
-print0 \
| xargs -0 rm -f
- @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS
+ @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
+ $(obj)cscope.*
@rm -fr $(obj)*.*~
@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
@rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c