-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
75 lines (65 loc) · 1.75 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
NAME = minishell
CFLAGS = -Wall -Wextra -Werror -g -fsanitize=address
SRCS = src/main.c \
src/ft_get_var.c \
src/ft_get_path_absolute.c \
src/ft_get_cmd.c \
src/ft_cmd.c \
src/free.c \
src/ft_error.c \
src/ft_lentab.c \
src/ft_init.c \
src/ft_handler.c \
src/ft_utils_cmd.c \
src/builtins/ft_is_builtin.c \
src/builtins/ft_exec_builtin.c \
src/builtins/ft_cd.c \
src/builtins/ft_pwd.c \
src/builtins/ft_echo.c \
src/builtins/ft_exit.c \
src/builtins/ft_env.c \
src/builtins/ft_export.c \
src/builtins/ft_error_var.c \
src/builtins/ft_unset.c \
src/builtins/ft_shlvl.c \
src/builtins/ft_deal_export.c \
src/builtins/ft_utils_builtins.c \
src/exec/exec_cmd.c \
src/exec/ft_deal_status.c \
src/exec/ft_verif_permission.c \
src/exec/ft_exec_pipe.c \
src/redirection/ft_deal_redir.c \
src/parsing/parsing.c \
src/parsing/startparsing.c \
src/parsing/utiles.c \
src/parsing/pars_dblquote.c \
src/parsing/pars_redirection.c \
src/parsing/redirection.c \
src/parsing/getredirection.c \
src/parsing/pars_singlequote.c \
src/parsing/pars_var.c \
src/parsing/check_redirection.c \
src/parsing/ft_strcat_minishell.c \
src/parsing/pars_slash.c \
src/parsing/pars_space.c \
src/parsing/utiles_var.c \
src/parsing/utiles_redirection.c \
OBJSRCS = $(SRCS:.c=.o)
$(NAME) : $(OBJSRCS)
@echo "\033[33m[Remove last version...]"
@rm -rf MiniShell
@echo "\033[33m[MiniShell compilation...]"
@echo "\033[33m[Libft compilation...]"
$(MAKE) -C ./libft
@gcc $(CFLAGS) -I minishell.h -o $(NAME) $(OBJSRCS) ./libft/libft.a
@echo "\033[33m[Done !]"
all : $(NAME)
run: $(NAME)
@./minishell
clean :
rm -rf $(OBJSRCS)
$(MAKE) clean -C ./libft
fclean : clean
$(MAKE) fclean -C ./libft
rm -rf $(NAME)
re : fclean all