uh sorry about that that's the wrong makefile
this is the one im actually using
#OBJS specifies which files to compile as part of the project
OBJS = rts.cpp
#CC specifies which compiler we're using
CC = g++
#source files
SOURCE_FILES = particleEffects/Emitter.cpp particleEffects/Particle.cpp particleEffects/ParticleEffects.cpp Menu/Menu.cpp Menu/Button.cpp supportClasses/f2.cpp supportClasses/Rect.cpp supportClasses/Shape.cpp supportClasses/Rectangle.cpp rts/Game.cpp rts/general/Terrain.cpp rts/general/Tile.cpp rts/general/Unit.cpp rts/general/Units.cpp rts/general/Object.cpp rts/Run.cpp
#INCLUDE_PATHS specifies the additional include paths we'll need
INCLUDE_PATHS = -IsupportClasses -IparticleEffects -IMenu -Irts -Irts/general -I/home/vincent/SFML/include
#LIBRARY_PATHS specifies the additional library paths we'll need
LIBRARY_PATHS = -L/home/vincent/SFML/lib
#COMPILER_FLAGS specifies the additional compilation options we're using
# -w suppresses all warnings
# -Wl,-subsystem,windows gets rid of the console window
# -std=c++11 for c++11, -o3 for compiler optimization.
COMPILER_FLAGS = -std=c++1y
# Debug flags
DEBUG_FLAGS = -g
#LINKER_FLAGS specifies the libraries we're linking against
LINKER_FLAGS = -lsfml-audio-d -lsfml-network-d -lsfml-graphics-d -lsfml-window-d -lsfml-system-d
#OBJ_NAME specifies the name of our exectuable
OBJ_NAME = game
# Debug output name
DEBUG_NAME = $(OBJ_NAME)debug
#This is the target that compiles our executable
all : $(OBJS)
$(CC) $(OBJS) $(SOURCE_FILES) $(INCLUDE_PATHS) $(LIBRARY_PATHS) $(COMPILER_FLAGS) -o3 $(LINKER_FLAGS) -o $(OBJ_NAME)
run : all
./$(OBJ_NAME)
debug :
$(CC) $(OBJS) $(SOURCE_FILES) $(INCLUDE_PATHS) $(LIBRARY_PATHS) $(COMPILER_FLAGS) $(DEBUG_FLAGS) $(LINKER_FLAGS) -o $(DEBUG_NAME)
gdb $(DEBUG_NAME)
callgrind :
$(CC) $(OBJS) $(SOURCE_FILES) $(INCLUDE_PATHS) $(LIBRARY_PATHS) $(COMPILER_FLAGS) -o3 $(DEBUG_FLAGS) $(LINKER_FLAGS) -o $(DEBUG_NAME)
valgrind –tool=callgrind ./$(DEBUG_NAME)
TEST_FILES=test.cpp supportClasses/f2.cpp supportClasses/Rect.cpp supportClasses/Shape.cpp supportClasses/Rectangle.cpp rts/general/Unit.cpp rts/general/Object.cpp Menu/Menu.cpp Menu/Button.cpp
testrun :
$(CC) $(TEST_FILES) $(INCLUDE_PATHS) $(LIBRARY_PATHS) $(COMPILER_FLAGS) -g -o3 $(LINKER_FLAGS) -o test
./test