]> git.ozlabs.org Git - yaboot.git/blobdiff - Makefile
Makefile: add cscope target
[yaboot.git] / Makefile
index 44cec276ae12238a378175bd4be6553b33319125..eab3e8a884fd31df5e51945c4d87b2b79b5f67d0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 
 include Config
 
-VERSION = 1.3.16
+VERSION = 1.3.17
 # Debug mode (spam/verbose)
 DEBUG = 0
 # make install vars
@@ -35,11 +35,12 @@ OBJCOPY             := $(CROSS)objcopy
 # The flags for the yaboot binary.
 #
 YBCFLAGS = -Os -m32 $(CFLAGS) -nostdinc -Wall -isystem `$(CC) -m32 -print-file-name=include` -fsigned-char
-YBCFLAGS += -DVERSION=\"${VERSION}${VERSIONEXTRA}\"    #"
+YBCFLAGS += -DVERSION="\"${VERSION}${VERSIONEXTRA}\""
 YBCFLAGS += -DTEXTADDR=$(TEXTADDR) -DDEBUG=$(DEBUG)
 YBCFLAGS += -DMALLOCADDR=$(MALLOCADDR) -DMALLOCSIZE=$(MALLOCSIZE)
 YBCFLAGS += -DKERNELADDR=$(KERNELADDR)
 YBCFLAGS += -I ./include
+YBCFLAGS += -fno-strict-aliasing
 
 ifeq ($(CONFIG_COLOR_TEXT),y)
 YBCFLAGS += -DCONFIG_COLOR_TEXT
@@ -156,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
@@ -239,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