-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (53 loc) · 1.46 KB
/
Makefile
File metadata and controls
64 lines (53 loc) · 1.46 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
CC = gcc
CFLAGS = -Wall -Wextra -Werror -g -fsanitize=address
NAME = minishell
LIBFT = libft/libft.a
SRCS = minishell.c \
parsing/parsing.c \
parsing/error_handling.c \
parsing/error_handling_tools.c \
parsing/fill_struct/allocate_red.c \
parsing/fill_struct/allocate_arg.c \
parsing/fill_struct/allocate_her.c \
parsing/pipe_check.c \
parsing/redirection_check.c \
parsing/expand.c \
parsing/expand_utils.c \
parsing/expand_utils1.c \
parsing/open_herdoc.c \
parsing/utils.c \
parsing/utils1.c \
parsing/tools.c \
parsing/tools1.c \
parsing/free.c \
parsing/display_msg.c \
parsing/get_full_cmd.c \
parsing/ft_count_red.c \
parsing/signals/signals.c \
execution/builtins.c \
execution/cd.c \
execution/echo.c \
execution/env.c \
execution/exit.c \
execution/export.c \
execution/export_tools.c \
execution/utils2.c \
execution/utils3.c \
execution/pwd.c \
execution/unset.c \
execution/utils.c \
execution/other_cmd.c \
all: $(NAME)
$(NAME): $(LIBFT) $(SRCS)
@ $(CC) $(CFLAGS) $(SRCS) -o $(NAME) $(LIBFT) -lreadline -L /Users/fbouanan/.brew/opt/readline/lib -lreadline -I /Users/fbouanan/.brew/opt/readline/include
@ echo "\n\033[1;32mMinishell has been compiled!\033[0m\n"
$(LIBFT):
@ make -C libft > /dev/null
@ make bonus -C libft > /dev/null
clean:
@make clean -C libft
fclean: clean
@rm -rf libft/libft.a
@rm -rf $(NAME)
re: fclean all
.PHONY: all clean fclean re§