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 | ||
75c4965c PG |
40 | G_SRCSDIR := src/ |
41 | G_DEPSDIR := deps/ | |
42 | ||
43 | ifeq (${BUILD},WIN32) | |
44 | G_OBJSDIR := objs-mingw32/ | |
45 | G_BINDIR := bin-mingw32/ | |
46 | else | |
47 | ifeq (${BUILD},FINAL) | |
48 | G_OBJSDIR := objs/ | |
49 | G_BINDIR := bin/ | |
50 | else | |
51 | G_OBJSDIR := objsd/ | |
52 | G_BINDIR := bind/ | |
53 | endif | |
54 | endif | |
55 | ||
b6a453de | 56 | |
3fc83b9f PG |
57 | ifeq (${BUILD},WIN32) |
58 | PRNTFMT := printf "%-12s: %s\n" | |
59 | else | |
60 | PRNTFMT := printf "%-8s: %s\n" | |
61 | endif | |
62 | ||
63 | VERBOSE := 0 | |
64 | ||
65 | ifeq (${VERBOSE},0) | |
66 | # quiet the printf command | |
67 | Q1 := @ | |
68 | # quiet the command that is `replaced' by an echo | |
69 | Q2 := @ | |
70 | else | |
71 | # EAT the printf command as if it was not there | |
72 | Q1 := @true # NOTE: the space between @true and the # is VERY important!! | |
73 | # do not quiet the command output | |
74 | Q2 := | |
75 | endif | |
76 | ||
b6a453de PG |
77 | |
78 | ifeq (${BUILD},WIN32) | |
79 | prefix := /usr/mingw32 | |
80 | else | |
81 | prefix := /usr | |
82 | endif | |
83 | exec_prefix := ${prefix} | |
84 | includedir := ${prefix}/include | |
85 | libdir := ${exec_prefix}/lib | |
86 | INSTALL := install | |
87 |