##
## Makefile for cpp_d06 in /home/montag_v/rendu/Piscine_C++/cpp_d06/ex00
## 
## Made by Valentin Montagne
## Login   <montag_v@epitech.net>
## 
## Started on  Mon Jan  9 08:41:05 2017 Valentin Montagne
## Last update Sun Jan 22 12:57:36 2017 Valentin Montagne
##

CXX	=	g++

NAME	=	GGJ

CXXFLAGS=	-Iinclude -Wall -Werror -Wextra -std=c++11 -g

LDFLAGS = 	-lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio

SRCS	=	srcs/main.cpp		\
		srcs/Env/Env.cpp	\
		srcs/Env/Map/Map.cpp	\
		srcs/Player/character.cpp \
		srcs/Enemies/Enemy.cpp \
		srcs/Enemies/EnemyGetter.cpp \
		srcs/Enemies/EnemySetter.cpp \
		srcs/Enemies/Spawn.cpp

OBJS	=	$(SRCS:.cpp=.o)

RM	=	rm -rf

all:	$(NAME)

$(NAME):	$(OBJS)
		$(CXX) $(OBJS) $(LDFLAGS) -o $(NAME)

clean:

	$(RM) $(OBJS)

fclean:	clean
	$(RM) $(NAME)

re:	fclean all

.cpp.o:
	$(CXX) -c $< -o $@ $(CXXFLAGS)
