-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·41 lines (29 loc) · 1.38 KB
/
Makefile
File metadata and controls
executable file
·41 lines (29 loc) · 1.38 KB
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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: akaseris <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/12/03 20:56:20 by akaseris #+# #+# #
# Updated: 2018/01/23 17:21:54 by akaseris ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
SRC = main ft_source ft_check_piece ft_check_pieces ft_convert_blocks \
ft_create_grid ft_move_upleft ft_convert_list ft_add_lst \
ft_putblock ft_solve ft_erase_block ft_solve_opt ft_strsplit
SRC_C = $(patsubst %,%.c,$(SRC))
SRC_O = $(patsubst %,%.o,$(SRC))
FLAGS = -Wall -Wextra -Werror
.PHONY : all clean fclean re
all: $(NAME)
$(SRC_O):
@gcc $(FLAGS) -c $(SRC_C)
$(NAME): $(SRC_O)
@gcc -o $(NAME) $(SRC_O)
clean:
@/bin/rm -f $(SRC_O)
fclean: clean
@/bin/rm -f $(NAME)
re: fclean all