-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (46 loc) · 1.52 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
45
46
47
48
49
50
51
52
53
54
55
56
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ccorsin <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/11/07 08:53:45 by ccorsin #+# #+# #
# Updated: 2018/02/09 10:27:11 by ccorsin ### ########.fr #
# #
# **************************************************************************** #
NAME = ft_ls
_SRCS = ft_affichage.c \
ft_flag_ls.c \
ft_ls_file.c \
ft_ls_repo.c \
ft_sort.c \
main.c \
ft_annex.c \
ft_list.c \
ft_sort_list.c \
ft_annex2.c \
ft_comp.c \
ft_init_free.c \
ft_for_d.c \
ft_build_list.c
SRCS_DIR = srcs
SRCS = $(addprefix $(SRCS_DIR)/, $(_SRCS))
SRCO = $(SRCS:.c=.o)
FLAG = -Wall -Wextra -Werror
INC = -I includes/
all : $(NAME)
$(NAME) : $(SRCO)
make -C libft
gcc $(FLAGS) -Llibft -lft -o $(NAME) $(SRCO) libft/libft.a
%.o : %.c
gcc $(FLAG) -c $< -o $@ $(INC)
clean :
/bin/rm -f $(SRCO)
make clean -C libft
fclean : clean
make fclean -C libft
/bin/rm -f $(NAME)
re :
make fclean
make