-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·44 lines (31 loc) · 1.38 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ismelich <ismelich@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/11/28 10:53:48 by ismelich #+# #+# #
# Updated: 2019/12/09 11:23:34 by ismelich ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
CC = gcc
FLAGS = -Wall -Wextra -Werror
LIBDIR = libft/
HEADERDIR = libft/
LIB = $(LIBDIR)libft.a
SRC = main.c grid.c matrix.c tetro_checker.c solver.c read_input.c error.c
OBJ = main.o grid.o matrix.o tetro_checker.o solver.o read_input.o error.o
.PHONY: all clean fclean re
all: $(NAME)
$(NAME):
make -C $(LIBDIR)
$(CC) $(SRC) $(FLAGS) -o $(NAME) $(LIB) -I $(HEADERDIR)
clean:
rm -rf $(OBJ)
make clean -C $(LIBDIR)
fclean: clean
rm -f $(NAME)
make fclean -C $(LIBDIR)
re: fclean all