-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (31 loc) · 1.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#******************************************************************************#
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ftaffore <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2013/11/20 15:15:50 by ftaffore #+# #+# #
# Updated: 2015/01/18 16:24:19 by chery ### ########.fr #
# #
#******************************************************************************#
NAME = puzzle
CC = g++
RM = rm -rf
INCLUDES = -Iincludes
LIBS = -O2 -Wno-write-strings
CFLAGS = -Werror -Wall -Wextra -O2 -Wno-write-strings
SRCS = srcs/main.cpp \
srcs/Npuzzle.cpp
OBJS = $(SRCS:.cpp=.o)
all : $(NAME)
$(NAME) : $(OBJS)
$(CC) -o $@ $(CFLAGS) $(OBJS) $(LIBS) $(INCLUDES)
.cpp.o :
$(CC) -o $@ $(CFLAGS) $(INCLUDES) -c $<
clean :
$(RM) $(OBJS)
fclean : clean
$(RM) $(NAME)
re : fclean all
.PHONY : all clean fclean re