-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
78 lines (65 loc) · 1.98 KB
/
Makefile
File metadata and controls
78 lines (65 loc) · 1.98 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
SRCS = srcs/main.c \
srcs/init.c \
srcs/parsing/split.c \
srcs/parsing/printing_ft.c \
srcs/parsing/quote.c \
srcs/parsing/trim_quote.c \
srcs/parsing/syntax_error.c \
srcs/parsing/chevron_error.c \
srcs/parsing/builtin_check.c \
srcs/parsing/cmd_list.c \
srcs/parsing/env_list.c \
srcs/parsing/env_list_two.c \
srcs/parsing/fill_cmd_lst.c \
srcs/parsing/fill_nodes.c \
srcs/parsing/fill_files.c \
srcs/parsing/redirections.c \
srcs/parsing/token.c \
srcs/parsing/replace_dollz.c \
srcs/parsing/replace_dollz_forge.c \
srcs/parsing/parsing.c \
srcs/parsing/error_print.c \
srcs/parsing/ft_free.c \
srcs/parsing/memory_dealloc.c \
srcs/parsing/atoi.c \
srcs/strings_manip/strings_reproduction.c \
srcs/strings_manip/strings_reproduction_two.c \
srcs/strings_manip/strings_size.c \
srcs/strings_manip/strings_search.c \
srcs/strings_manip/ft_itoa.c \
srcs/builtins/env.c \
srcs/builtins/env2.c \
srcs/builtins/env3.c \
srcs/builtins/echo.c \
srcs/builtins/cd.c \
srcs/builtins/cd2.c \
srcs/builtins/exit.c \
srcs/builtins/pwd.c \
srcs/execution/ft_free_execution.c \
srcs/execution/ft_execution.c \
srcs/execution/signals.c \
srcs/execution/_execute_cmds.c \
srcs/execution/in_out_handler.c \
srcs/execution/modify_env_lst.c \
srcs/execution/heredoc.c \
srcs/execution/heredoc2.c \
srcs/execution/dup_in_out.c \
srcs/execution/dup_pipes.c \
srcs/execution/init_exe.c
OBJS = $(SRCS:.c=.o)
INCL = includes/minishell.h
CC = gcc
RM = rm -f
#FLAGS = -lreadline -Wall -Werror -Wextra -fsanitize=address -g3
FLAGS = -lreadline -L ~/.brew/opt/readline/lib -I ~/.brew/opt/readline/include -Wall -Werror -Wextra #-fsanitize=address -g3
%.o.c: $(INCL) Makefile
$(CC) -c $< -o $@ $(FLAGS)
NAME = minishell
$(NAME): $(OBJS) $(INCL) Makefile
$(CC) -o $(NAME) $(OBJS) $(FLAGS)
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean $(NAME)
.PHONY: make clean fclean all re