-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (31 loc) · 1.32 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: kceder <kceder@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/01/05 13:12:58 by pietari #+# #+# #
# Updated: 2022/02/08 14:36:26 by kceder ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
SRC = main.c main_2.c solver.c solver_2.c solver_3.c output.c utility.c
OBJ = $(SRC:.c=.o)
HEADER = fillit.h
LIBFT = libft/
FLAGS = -Wall -Wextra -Werror
.PHONY = all clean fclean clean re
all: $(NAME)
$(NAME):
make -C $(LIBFT)
gcc $(FLAGS) -c $(SRC)
gcc $(OBJ) libft/libft.a $(FLAGS) -o $(NAME)
clean:
rm -f $(OBJ)
make clean -C libft/
fclean: clean
rm -f $(NAME)
make fclean -C libft/
re: fclean all
andclean: all clean