diff --git a/.gitignore b/.gitignore index b1f6fdb6..c9822cfa 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,8 @@ config.h config.log Makefile Makefile.in +cscope.out +tags .deps stamp-h1 *.o diff --git a/Makefile.am b/Makefile.am index c6900a35..e327ddc6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,3 +4,10 @@ SUBDIRS = gl libopts src doc ACLOCAL_AMFLAGS = -I gl/m4 -I libopts/m4 -I m4 +ctags: + find . -type f -name "*.[ch]*" | xargs @CTAGS@ + +cscope: + @CSCOPE@ -b -R + +cref: ctags cscope diff --git a/configure.ac b/configure.ac index cee1e084..1cb55acf 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,8 @@ AM_PROG_CC_C_O if [ test "$GCC" = "yes" ];then CFLAGS="$CFLAGS -Wall" fi +AC_PATH_PROG(CTAGS, ctags, /bin/true) +AC_PATH_PROG(CSCOPE, cscope, /bin/true) AC_CHECK_SIZEOF([unsigned long]) AC_C_BIGENDIAN