T_OPTFLAGS := -O2 T_DBGFLAGS := -ggdb T_PRFFLAGS := ${T_DBGFLAGS} -pg T_WARFLAGS := -Wall -Wextra -pedantic -ansi G_CXXFLAGS := ${T_WARFLAGS} ifeq (${BUILD},WIN32) G_CXXFLAGS += ${T_OPTFLAGS} else ifeq (${BUILD},FINAL) G_CXXFLAGS += ${T_OPTFLAGS} else G_CXXFLAGS += ${T_DBGFLAGS} endif endif T_OPTFLAGS := T_DBGFLAGS := T_PRFFLAGS := T_WARFLAGS := G_LNKFLAGS := ifeq (${BUILD},WIN32) G_CXX := mingw32-g++ else G_CXX := g++ endif ifeq (${BUILD},WIN32) G_LIBGL := -lopengl32 -lglu32 G_LIBSDL := `/usr/mingw32/bin/sdl-config --libs` else G_LIBGL := -lGL -lGLU G_LIBSDL := `sdl-config --libs` endif G_SRCSDIR := src/ G_DEPSDIR := deps/ ifeq (${BUILD},WIN32) G_OBJSDIR := objs-mingw32/ G_BINDIR := bin-mingw32/ else ifeq (${BUILD},FINAL) G_OBJSDIR := objs/ G_BINDIR := bin/ else G_OBJSDIR := objsd/ G_BINDIR := bind/ endif endif ifeq (${BUILD},WIN32) PRNTFMT := printf "%-12s: %s\n" else PRNTFMT := printf "%-8s: %s\n" endif VERBOSE := 0 ifeq (${VERBOSE},0) # quiet the printf command Q1 := @ # quiet the command that is `replaced' by an echo Q2 := @ else # EAT the printf command as if it was not there Q1 := @true # NOTE: the space between @true and the # is VERY important!! # do not quiet the command output Q2 := endif ifeq (${BUILD},WIN32) prefix := /usr/mingw32 else prefix := /usr endif exec_prefix := ${prefix} includedir := ${prefix}/include libdir := ${exec_prefix}/lib INSTALL := install