include Config
-VERSION = 1.3.16
+VERSION = 1.3.17
# Debug mode (spam/verbose)
DEBUG = 0
# make install vars
LD := $(CROSS)ld
AS := $(CROSS)as
OBJCOPY := $(CROSS)objcopy
+STRIP := $(CROSS)strip
# The flags for the yaboot binary.
#
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
# 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.
#
find . -not -path './\{arch\}*' -name ',,*' | xargs rm -rf
-gunzip man/*.gz
rm -rf man.deb
+ -rm cscope.*
cleandocs:
make -C doc clean
release: docs bindist clean
strip: all
- strip second/yaboot
- strip --remove-section=.comment second/yaboot
- strip util/addnote
- strip --remove-section=.comment --remove-section=.note util/addnote
+ $(STRIP) second/yaboot
+ $(STRIP) --remove-section=.comment second/yaboot
+ $(STRIP) util/addnote
+ $(STRIP) --remove-section=.comment --remove-section=.note util/addnote
install: all strip
install -d -o root -g root -m 0755 ${ROOT}/etc/
@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