-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
90 lines (77 loc) · 2.21 KB
/
Makefile
File metadata and controls
90 lines (77 loc) · 2.21 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
NAME = minishell
S = built-in/built_norm.c \
built-in/exec_cd.c \
built-in/exec_echo.c \
built-in/exec_env.c \
built-in/exec_exit.c \
built-in/exec_export.c \
built-in/exec_export2.c \
built-in/exec_pwd.c \
built-in/exec_unset.c \
exec/exec.c \
exec/ft_wait.c \
exec/pipe.c \
exec/pipe2.c \
src/other_function/ft_fd_functions.c \
src/other_function/ft_flag.c \
src/other_function/ft_flag2.c \
src/other_function/ft_generate_layer.c \
src/other_function/ft_handle_doller.c \
src/other_function/ft_handle_herdoc.c \
src/other_function/ft_handle_herdoc2.c \
src/other_function/ft_handle_string.c \
src/other_function/ft_list_cmd_option.c \
src/other_function/ft_put_error.c \
src/other_function/ft_return_value.c \
src/other_function/ft_return_value2.c \
src/other_function/ft_syntax_error.c \
src/other_function/linked_list/ft_free_any_list.c \
src/other_function/linked_list/ft_generate_cmd.c \
src/other_function/linked_list/ft_of_env.c \
src/std_function/ft_dup.c \
src/std_function/ft_dup_m.c \
src/std_function/ft_joind.c \
src/std_function/ft_len.c \
src/std_function/ft_split.c \
src/std_function/ft_split_plus.c \
src/std_function/ft_strchar.c \
src/std_function/ft_strstr.c \
src/std_function/ft_substr.c \
libft/ft_atoi.c \
libft/ft_bzero.c \
libft/ft_calloc.c \
libft/ft_isalnum.c \
libft/ft_isalpha.c \
libft/ft_isdigit.c \
libft/ft_isspace.c \
libft/ft_itoa.c \
libft/ft_putendl_fd.c \
libft/ft_putstr_fd.c \
libft/ft_split.c \
libft/ft_strchr.c \
libft/ft_strcmp.c \
libft/ft_strdup.c \
libft/ft_strjoin.c \
libft/ft_strlcpy.c \
libft/ft_strlen.c \
libft/ft_strncmp.c
O = $(S:.c=.o)
C = cc
RL = -lreadline -L /Users/${USER}/.brew/opt/readline/lib -I /Users/${USER}/.brew/opt/readline/include
CFLAGS = -Wall -Werror -Wextra
RM = rm -f
all : $(NAME)
$(NAME) : $(O) minishell.c
$(C) $(CFLAGS) minishell.c $(O) $(RL) -o $(NAME)
@echo "=<<<< compailing done >>>>="
@echo "================================\n"
clean :
$(RM) $(O)
@echo "=<<<< Deleting '.o' files >>>>="
@echo "================================\n"
fclean : clean
$(RM) $(NAME)
@echo "=<<<< Deleting done >>>>="
@echo "================================\n"
re : fclean all
.PHONY: all clean fclean re