removed srcpath
[libbear.git] / vars.mk
CommitLineData
3fc83b9f 1
7bbc50a4
PG
2T_OPTFLAGS := -O2
3T_DBGFLAGS := -ggdb
a98a33a6 4T_PRFFLAGS := ${T_DBGFLAGS} -pg
7bbc50a4 5T_WARFLAGS := -Wall -Wextra -pedantic -ansi
3fc83b9f 6
7bbc50a4 7G_CXXFLAGS := ${T_WARFLAGS}
9cc902bf 8ifeq (${BUILD},WIN32)
7bbc50a4 9 G_CXXFLAGS += ${T_OPTFLAGS}
9cc902bf
PG
10else
11ifeq (${BUILD},FINAL)
7bbc50a4 12 G_CXXFLAGS += ${T_OPTFLAGS}
9cc902bf 13else
7bbc50a4 14 G_CXXFLAGS += ${T_DBGFLAGS}
9cc902bf
PG
15endif
16endif
3fc83b9f 17
7bbc50a4
PG
18T_OPTFLAGS :=
19T_DBGFLAGS :=
20T_PRFFLAGS :=
21T_WARFLAGS :=
22
a98a33a6 23G_LNKFLAGS :=
7bbc50a4 24
3fc83b9f 25ifeq (${BUILD},WIN32)
7bbc50a4 26 G_CXX := mingw32-g++
3fc83b9f 27else
7bbc50a4 28 G_CXX := g++
3fc83b9f
PG
29endif
30
b6a453de
PG
31
32ifeq (${BUILD},WIN32)
33 G_LIBGL := -lopengl32 -lglu32
34 G_LIBSDL := `/usr/mingw32/bin/sdl-config --libs`
35else
36 G_LIBGL := -lGL -lGLU
37 G_LIBSDL := `sdl-config --libs`
38endif
39
75c4965c
PG
40G_SRCSDIR := src/
41G_DEPSDIR := deps/
42
43ifeq (${BUILD},WIN32)
44 G_OBJSDIR := objs-mingw32/
45 G_BINDIR := bin-mingw32/
46else
47ifeq (${BUILD},FINAL)
48 G_OBJSDIR := objs/
49 G_BINDIR := bin/
50else
51 G_OBJSDIR := objsd/
52 G_BINDIR := bind/
53endif
54endif
55
b6a453de 56
3fc83b9f
PG
57ifeq (${BUILD},WIN32)
58 PRNTFMT := printf "%-12s: %s\n"
59else
60 PRNTFMT := printf "%-8s: %s\n"
61endif
62
63VERBOSE := 0
64
65ifeq (${VERBOSE},0)
66 # quiet the printf command
67 Q1 := @
68 # quiet the command that is `replaced' by an echo
69 Q2 := @
70else
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 :=
75endif
76
b6a453de
PG
77
78ifeq (${BUILD},WIN32)
79 prefix := /usr/mingw32
80else
81 prefix := /usr
82endif
83exec_prefix := ${prefix}
84includedir := ${prefix}/include
85libdir := ${exec_prefix}/lib
86INSTALL := install
87