CPPC = g++

# Compile flags #
#FLAGS = -g -Wall
FLAGS = -s -O3

# Librarys #
INC = `sdl-config --cflags`


OBJECTS = scene_manager.o scene_end.o scene_intro.o scene_matrix.o scene_disco.o

# Targets #
all: $(OBJECTS)

clean:
	@rm -f $(EXEC) *.o &> /dev/null

# Objects #
scene_manager.o: scene_manager.cpp scene_manager.h ../basecode/global.h scene.h
	$(CPPC) $(FLAGS) -c scene_manager.cpp $(INC)

scene_disco.o: scene_disco.cpp scene_disco.h ../basecode/global.h scene.h
	$(CPPC) $(FLAGS) -c scene_disco.cpp $(INC)

scene_intro.o: scene_intro.cpp scene_intro.h ../basecode/global.h scene.h
	$(CPPC) $(FLAGS) -c scene_intro.cpp $(INC)

scene_matrix.o: scene_matrix.cpp scene_matrix.h ../basecode/global.h scene.h
	$(CPPC) $(FLAGS) -c scene_matrix.cpp $(INC)

scene_end.o: scene_end.cpp scene_end.h ../basecode/global.h scene.h
	$(CPPC) $(FLAGS) -c scene_end.cpp $(INC)
