-LIBGL = -lGL -lGLU
-LIBSDL = `sdl-config --libs`
-LIBS = ${LIBSDL} ${LIBGL}
+LIBGL := -lGL -lGLU
+LIBSDL := `sdl-config --libs`
+LIBS := ${LIBSDL} ${LIBGL}
+
+OPTFLAGS := -O2
+DBGFLAGS := -ggdb
+PRFFLAGS := ${DBGFLAGS} -pg
+
+#CXX := g++
+CXXFLAGS := -Wall -pedantic -ansi ${DBGFLAGS}
-CXX = g++
-CXXFLAGS = -ggdb -Wall -pedantic
SRCS := entityManager.cpp
SRCS += game.cpp
-SRCS += graphics.cpp
SRCS += main.cpp
SRCS += mathw.cpp
SRCS += ticks.cpp
SRCS += input/inputManager.cpp
-OBJS = ${SRCS:.cpp=.o}
+SRCS += graphics/graphics.cpp
+
+OBJS := ${SRCS:.cpp=.o}
+
-TARGET = ../run_physics
-DEPEND = depend.mk
+TARGET := ../run_physics
+DEPEND := depend.mk
.PHONY: all