Commit | Line | Data |
---|---|---|
3fc83b9f | 1 | |
7bbc50a4 PG |
2 | T_OPTFLAGS := -O2 |
3 | T_DBGFLAGS := -ggdb | |
a98a33a6 | 4 | T_PRFFLAGS := ${T_DBGFLAGS} -pg |
7bbc50a4 | 5 | T_WARFLAGS := -Wall -Wextra -pedantic -ansi |
3fc83b9f | 6 | |
7bbc50a4 | 7 | G_CXXFLAGS := ${T_WARFLAGS} |
9cc902bf | 8 | ifeq (${BUILD},WIN32) |
7bbc50a4 | 9 | G_CXXFLAGS += ${T_OPTFLAGS} |
9cc902bf PG |
10 | else |
11 | ifeq (${BUILD},FINAL) | |
7bbc50a4 | 12 | G_CXXFLAGS += ${T_OPTFLAGS} |
9cc902bf | 13 | else |
7bbc50a4 | 14 | G_CXXFLAGS += ${T_DBGFLAGS} |
9cc902bf PG |
15 | endif |
16 | endif | |
3fc83b9f | 17 | |
7bbc50a4 PG |
18 | T_OPTFLAGS := |
19 | T_DBGFLAGS := | |
20 | T_PRFFLAGS := | |
21 | T_WARFLAGS := | |
22 | ||
a98a33a6 | 23 | G_LNKFLAGS := |
7bbc50a4 | 24 | |
3fc83b9f | 25 | ifeq (${BUILD},WIN32) |
7bbc50a4 | 26 | G_CXX := mingw32-g++ |
3fc83b9f | 27 | else |
7bbc50a4 | 28 | G_CXX := g++ |
3fc83b9f PG |
29 | endif |
30 | ||
b6a453de PG |
31 | |
32 | ifeq (${BUILD},WIN32) | |
33 | G_LIBGL := -lopengl32 -lglu32 | |
34 | G_LIBSDL := `/usr/mingw32/bin/sdl-config --libs` | |
35 | else | |
36 | G_LIBGL := -lGL -lGLU | |
37 | G_LIBSDL := `sdl-config --libs` | |
38 | endif | |
39 | ||
40 | ||
3fc83b9f PG |
41 | ifeq (${BUILD},WIN32) |
42 | PRNTFMT := printf "%-12s: %s\n" | |
43 | else | |
44 | PRNTFMT := printf "%-8s: %s\n" | |
45 | endif | |
46 | ||
47 | VERBOSE := 0 | |
48 | ||
49 | ifeq (${VERBOSE},0) | |
50 | # quiet the printf command | |
51 | Q1 := @ | |
52 | # quiet the command that is `replaced' by an echo | |
53 | Q2 := @ | |
54 | else | |
55 | # EAT the printf command as if it was not there | |
56 | Q1 := @true # NOTE: the space between @true and the # is VERY important!! | |
57 | # do not quiet the command output | |
58 | Q2 := | |
59 | endif | |
60 | ||
b6a453de PG |
61 | |
62 | ifeq (${BUILD},WIN32) | |
63 | prefix := /usr/mingw32 | |
64 | else | |
65 | prefix := /usr | |
66 | endif | |
67 | exec_prefix := ${prefix} | |
68 | includedir := ${prefix}/include | |
69 | libdir := ${exec_prefix}/lib | |
70 | INSTALL := install | |
71 |