NAME = Bomberman

CC = g++
CFLAGS = -Wall -Wextra -Werror -g3 -I/usr/include/SDL2 -D_GNU_SOURCE=1 -D_REENTRANT
LDFLAGS = -lSDL2

SRC =	main.cpp \
	Bomberman.cpp \
	Game.cpp \

DEPS = Bomberman.hpp \
	Game.hpp \

OBJ = $(SRC:.cpp=.o)


$(NAME): $(OBJ)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ)

$(OBJ): $(SRC) $(DEPS)
	$(CC) $(CFLAGS) $(LDFLAGS) -c $(SRC) $(DEPS) 

all: $(NAME)

clean:
	rm -f $(OBJ)
fclean: clean
	rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re
