-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (43 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: bsibanyo <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/09/06 09:41:16 by bsibanyo #+# #+# #
# Updated: 2019/09/25 15:49:50 by bsibanyo ### ########.fr #
# #
# **************************************************************************** #
NAME = ft_ls.a
FLAGS = -Wall -Wextra -Werror -o ft_ls
SRCS = srcs/main.c \
srcs/printcolor.c \
srcs/checks.c \
srcs/flags.c \
srcs/path.c \
srcs/print.c \
srcs/printpermissions.c \
srcs/lg_r.c \
srcs/lists.c \
srcs/ft_list_swap.c \
srcs/sort.c \
srcs/selected.c \
srcs/block.c \
srcs/access.c \
srcs/modification.c \
srcs/free.c \
srcs/exit.c
OBJS = $(SRCS:.c=.o)
all: $(NAME)
$(NAME): $(OBJS)
@make -C libft
gcc $(FLAGS) $(SRCS) -I libft/libft.h libft/libft.a
ar rc $(NAME) $(OBJS)
ranlib $(NAME)
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: clean fclean all re