diff --git a/.gitignore b/.gitignore index 789f57ee0..5fb0bdebf 100644 --- a/.gitignore +++ b/.gitignore @@ -40,4 +40,5 @@ massif-* /GSYMS /GTAGS /TAGS +/cscope*.out /tags diff --git a/Makefile b/Makefile index bcc247a34..f9c454676 100644 --- a/Makefile +++ b/Makefile @@ -117,5 +117,10 @@ tags: $(C_SOURCE_FILES) $(CTAGS) $@ $(C_SOURCE_FILES) TAGS: $(C_SOURCE_FILES) etags -o $@ $(C_SOURCE_FILES) +global: GPATH GRTAGS GSYMS GTAGS GPATH GRTAGS GSYMS GTAGS: $(C_SOURCE_FILES) ls $(C_SOURCE_FILES) | gtags -f - --gtagsconf .globalrc +cscope: cscope.in.out cscope.po.out cscope.out +cscope.in.out cscope.po.out cscope.out: $(C_SOURCE_FILES) + cscope -bq -u -Iinclude -Ilibrary $(patsubst %,-I%,$(wildcard 3rdparty/*/include)) -Itests/include $(C_SOURCE_FILES) +.PHONY: cscope global