-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
70 lines (55 loc) · 2.12 KB
/
Copy pathMakefile
File metadata and controls
70 lines (55 loc) · 2.12 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#******************************************************************************#
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: loram <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/11/05 17:36:15 by loram #+# #+# #
# Updated: 2019/11/05 17:38:18 by loram ### ########.fr #
# #
#******************************************************************************#
NAME = fillit
SRC = srcs/check_input.c\
srcs/ft_cellnew.c\
srcs/get_next_line.c\
srcs/main.c\
srcs/tetrimino.c\
srcs/ft_freecell.c\
srcs/ft_freehead.c\
srcs/ft_find_first_cell.c\
srcs/ft_alg.c\
srcs/ft_exclude_row.c\
srcs/ft_get_hd_up.c\
srcs/ft_excl_all_h_and_r.c\
srcs/ft_inc_all_h_and_r.c\
srcs/ft_include_row.c\
srcs/inputting.c\
srcs/ft_input.c\
srcs/ft_create_header.c\
srcs/ft_free_all.c\
srcs/ft_check_heads_tetr_inc.c\
srcs/ft_freelist.c\
srcs/ft_print.c\
srcs/make_list.c\
srcs/dim_make.c
OBJ = $(SRC:.c=.o)
INC = -I includes
LIBFT = srcs/libft/libft.a
CC = gcc
FLAGS = -Wall -Wextra -Werror
all: $(NAME)
$(NAME): $(LIBFT) $(OBJ) ./srcs/libft/*
@$(CC) $(FLAGS) $(OBJ) -o $(NAME) $(LIBFT)
$(OBJ): %.o: %.c
@$(CC) $(FLAGS) -o $@ -c $<
$(LIBFT):
@make -C ./srcs/libft/
clean:
@rm -f $(OBJ)
@make clean -C ./srcs/libft/
fclean: clean
@rm -f $(NAME)
@make fclean -C ./srcs/libft/
re: fclean all
.PHONY : all, re, clean, fclean