-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (28 loc) · 1.27 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: msuarez- <msuarez-@student.hive.fi> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/11/18 17:56:51 by msuarez- #+# #+# #
# Updated: 2019/11/25 14:03:04 by bkonjuha ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
SRC = fillit.c map.c solve.c checkshapes.c
OBJECTS = $(subst .c,.o,$(SRC))
LIBFT = libft/libft.a
.PHONY = all clean fclean clean re
FLAGS = -Wall -Wextra -Werror
all: $(NAME)
$(NAME): $(OBJECTS)
@make -C libft/
@gcc $(FLAGS) $(SRC) $(LIBFT) -o $(NAME)
clean:
@/bin/rm -f libft/*.o
@/bin/rm -f $(OBJECTS)
fclean: clean
@/bin/rm -f $(LIBFT)
@/bin/rm -f $(NAME)
re: fclean all