-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (41 loc) · 912 Bytes
/
Makefile
File metadata and controls
55 lines (41 loc) · 912 Bytes
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
NAME = minishell
SRCS = srcs/main.c \
srcs/cmd_env.c \
srcs/cmd_exit.c \
srcs/cmd_export.c \
srcs/cmd_pwd_cd_echo.c \
srcs/cmd_redir.c \
srcs/cmd_unset.c \
srcs/control_signal.c \
srcs/exec_cmds.c \
srcs/exec_pipe.c \
srcs/exec_redir.c \
srcs/get_argv.c \
srcs/get_cmds.c \
srcs/get_envs.c \
srcs/parse_quote_env.c \
srcs/show_prompt_art.c \
srcs/utils_env.c \
srcs/utils_export.c \
srcs/utils_has.c \
srcs/utils_redir.c \
srcs/utils.c \
LEAKS = -g3 -fsanitize=address
LIBFT = libft.a
LIBS = -L./libs/libft -lft
HEADER = -I./includes
FLAG = -Wall -Wextra -Werror
CC = gcc
RM = rm -rf
all : $(NAME)
$(LIBFT):
$(MAKE) -C ./libs/libft
$(NAME) : $(LIBFT)
$(CC) $(SRCS) $(LIBS) $(HEADER) $(FLAG) -o $(NAME)
clean :
$(MAKE) -C ./libs/libft clean
rm -rf $(OBJS)
fclean :
$(MAKE) -C ./libs/libft fclean
rm -rf $(NAME)
re : fclean all