make system divided into *.mk files
[libbear.git] / vars.mk
CommitLineData
3fc83b9f
PG
1
2OPTFLAGS := -O2
3DBGFLAGS := -ggdb
4PRFFLAGS := ${DBGFLAGS} -pg
5WARFLAGS := -Wall -Wextra -pedantic -ansi
6
7CXXFLAGS := ${WARFLAGS}
8
9ifeq (${BUILD},WIN32)
10 CXX := mingw32-g++
11else
12 CXX := g++
13endif
14
15ifeq (${BUILD},WIN32)
16 PRNTFMT := printf "%-12s: %s\n"
17else
18 PRNTFMT := printf "%-8s: %s\n"
19endif
20
21VERBOSE := 0
22
23ifeq (${VERBOSE},0)
24 # quiet the printf command
25 Q1 := @
26 # quiet the command that is `replaced' by an echo
27 Q2 := @
28else
29 # EAT the printf command as if it was not there
30 Q1 := @true # NOTE: the space between @true and the # is VERY important!!
31 # do not quiet the command output
32 Q2 :=
33endif
34