Commit | Line | Data |
---|---|---|
3fc83b9f PG |
1 | |
2 | OPTFLAGS := -O2 | |
3 | DBGFLAGS := -ggdb | |
4 | PRFFLAGS := ${DBGFLAGS} -pg | |
5 | WARFLAGS := -Wall -Wextra -pedantic -ansi | |
6 | ||
7 | CXXFLAGS := ${WARFLAGS} | |
8 | ||
9 | ifeq (${BUILD},WIN32) | |
10 | CXX := mingw32-g++ | |
11 | else | |
12 | CXX := g++ | |
13 | endif | |
14 | ||
15 | ifeq (${BUILD},WIN32) | |
16 | PRNTFMT := printf "%-12s: %s\n" | |
17 | else | |
18 | PRNTFMT := printf "%-8s: %s\n" | |
19 | endif | |
20 | ||
21 | VERBOSE := 0 | |
22 | ||
23 | ifeq (${VERBOSE},0) | |
24 | # quiet the printf command | |
25 | Q1 := @ | |
26 | # quiet the command that is `replaced' by an echo | |
27 | Q2 := @ | |
28 | else | |
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 := | |
33 | endif | |
34 |