-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
97 lines (85 loc) · 2.71 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ajeannot <ajeannot@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/03/04 13:29:11 by ajeannot #+# #+# #
# Updated: 2020/06/11 18:21:29 by cbouleng ### ########.fr #
# #
# **************************************************************************** #
NAME = minishell
SRCS = annexes/display_string.c \
annexes/ft_split.c \
exec/exec_builtins.c \
exec/exec_cd_main.c \
exec/exec_cd_path.c \
exec/exec_echo.c \
exec/exec_env.c \
exec/exec_export_backslash.c \
exec/exec_export_display.c \
exec/exec_export_error.c \
exec/exec_export_main.c \
exec/exec_program.c \
exec/exec_pwd.c \
exec/exec_unset_error.c \
exec/exec_unset_main.c \
managers/manage_array.c \
managers/manage_array_extend.c \
managers/manage_env.c \
managers/manage_error.c \
managers/manage_exit_status.c \
managers/manage_exit.c \
managers/manage_int_array.c \
managers/manage_int.c \
managers/manage_pipe.c \
managers/manage_redirection.c \
managers/manage_redirection_file.c \
managers/manage_str_array.c \
managers/manage_str_dup.c \
managers/manage_str.c \
body/minishell_setup.c \
body/minishell_setup_env.c \
body/minishell_setup_shlvl.c \
body/minishell_quit.c \
body/minishell_exec.c \
body/minishell.c \
gnl/get_next_line.c \
gnl/get_next_line_utils.c \
parsing/check.c \
parsing/check_rd.c \
parsing/get_dollar.c \
parsing/get_dollar_2.c \
parsing/get_rdo.c \
parsing/get_redir.c \
parsing/get_redir_2.c \
parsing/list_it.c \
parsing/list_utils.c \
parsing/list_utils_2.c \
parsing/parsing.c \
parsing/map_quote.c \
parsing/split_plus.c \
parsing/utils.c \
parsing/utils_2.c \
parsing/utils_3.c \
clear_it/clear_before_exec.c \
clear_it/clear_before_exec_2.c \
clear_it/clear_stock_rd.c
INCL = includes/exec.h \
includes/struct.h \
includes/parsing.h
OBJS = $(SRCS:.c=.o)
CC = gcc
FLAGS = -Wall -Wextra -Werror
%.o: %.c
$(CC) $(FLAGS) -c $< -o $@
all: $(NAME)
$(NAME): $(OBJS) $(INCL)
$(CC) $(FLAGS) $(OBJS) -o $@
clean :
rm -rf $(OBJS)
fclean : clean
rm -rf $(NAME)
re: fclean all
.PHONY: clean fclean all re