defs.mk: Use -O3 instead of -O2 by default, and add cat-makefiles target

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-12-10 13:56:52 +00:00
commit 6fe23eb8c8

View file

@ -942,8 +942,8 @@ else
endif
ifeq ($(USE_COMPILER_OPTIMIZATION_OPTS),true)
BUILD_CFLAGS += -funroll-loops -O2
BUILD_CPPFLAGS += -funroll-loops -O2
BUILD_CFLAGS += -funroll-loops -O3
BUILD_CPPFLAGS += -funroll-loops -O3
else
NO_OPT_FLAGS = \
-O0 -g -fno-inline -fno-omit-frame-pointer -fno-builtin -fno-optimize-sibling-calls \
@ -1076,7 +1076,10 @@ echo-vars:
make -p nothing | grep -B1 "^[A-Z_]* *[?:+]*="
echo-makefiles:
strace -f make nothing 2>&1 | sed '/open\(at\)*(.*\(Makefile\|\.mk\)/ !d; s/.*open("//; s/.*openat([A-Z_]\+, "//; s/", O_.*//'
$(Q)strace -f make nothing 2>&1 | sed '/open\(at\)*(.*\(Makefile\|\.mk\)/ !d; s/.*open("//; s/.*openat([A-Z_]\+, "//; s/", O_.*//'
cat-makefiles:
Q=@ make --no-print-directory echo-makefiles | while read f; do echo "# =================================================== $$f"; cat $$f; done
doc-module:
$(BROWSER) $(JANWARE_URL_DOC_MODULE)