]> git.ozlabs.org Git - yaboot.git/blobdiff - Makefile
Makefile: add cscope target
[yaboot.git] / Makefile
index f3b46a5f02ddebc2e0141445425ddfe54ae9dea3..eab3e8a884fd31df5e51945c4d87b2b79b5f67d0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,6 @@ YBCFLAGS += -DVERSION="\"${VERSION}${VERSIONEXTRA}\""
 YBCFLAGS += -DTEXTADDR=$(TEXTADDR) -DDEBUG=$(DEBUG)
 YBCFLAGS += -DMALLOCADDR=$(MALLOCADDR) -DMALLOCSIZE=$(MALLOCSIZE)
 YBCFLAGS += -DKERNELADDR=$(KERNELADDR)
-YBCFLAGS += -Werror -fdiagnostics-show-option
 YBCFLAGS += -I ./include
 YBCFLAGS += -fno-strict-aliasing
 
@@ -74,7 +73,6 @@ LLIBS = -lext2fs
 # For compiling userland utils
 #
 UCFLAGS = -Os $(CFLAGS) -Wall -I/usr/include
-UCFLAGS += -Werror -fdiagnostics-show-option
 
 # For compiling build-tools that run on the host.
 #
@@ -159,6 +157,7 @@ clean:
        find . -not -path './\{arch\}*' -name ',,*' | xargs rm -rf
        -gunzip man/*.gz
        rm -rf man.deb
+       -rm cscope.*
 
 cleandocs:
        make -C doc clean
@@ -242,3 +241,8 @@ deinstall:
        @echo "${ROOT}/etc/yaboot.conf has not been removed, you may remove it yourself if you wish."
 
 uninstall: deinstall
+
+.PHONY: cscope
+cscope:
+       (echo \-k; echo \-q; find . -name '*.[chS]' )> cscope.files
+       cscope -b -f cscope.out