10 CFLAGS
="-W -Wall -Wstrict-prototypes -pipe"
11 CFLAGS
="$CFLAGS -Wfloat-equal -Wundef -Wshadow -Wpointer-arith"
12 CFLAGS
="$CFLAGS -Wmissing-declarations -Wnested-externs"
13 CFLAGS
="$CFLAGS -Wmissing-prototypes"
14 CXXFLAGS
="-W -Wall -pipe -Wundef -Wshadow -Wpointer-arith -Wabi -std=c++0x"
19 --verbose verbose Makefiles
21 --no-debug disable debug
27 until [[ $# -eq 0 ]] ;
32 MAKEOPT
="$(echo $MAKEOPT | sed s,--quiet,,g)"
50 [[ $# -eq 1 ]] && { echo --build-dir requiers an argument
; exit 2; }
61 if ! which ccache
2>&1 >/dev
/null
; then
65 if [[ $DEBUG -eq 0 ]]; then
66 CFLAGS
="$CFLAGS -DNDEBUG"
67 CXXFLAGS
="$CXXFLAGS -DNDEBUG"
69 CFLAGS
="$CFLAGS -ggdb"
70 CXXFLAGS
="$CXXFLAGS -ggdb"
73 if [[ $CCACHE = "ON" ]] ; then
75 ln -sf $
(which ccache
) .ccache
/g
++
76 ln -sf $
(which ccache
) .ccache
/gcc
77 export CC
="$PWD/.ccache/gcc"
78 export CXX
="$PWD/.ccache/g++"
88 -DCMAKE_VERBOSE_MAKEFILE=$VERBOSE \
89 -DCMAKE_COLOR_MAKEFILE=$COLOR \