-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
68 lines (53 loc) · 1.81 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: gaekim <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/03/09 18:24:09 by daelee #+# #+# #
# Updated: 2021/02/07 21:56:03 by gaekim ### ########.fr #
# #
# **************************************************************************** #
NAME = minishell
SRCS = main.c \
builtins/ft_echo.c\
builtins/ft_env.c \
builtins/ft_pwd.c \
builtins/ft_cd.c \
builtins/ft_exit.c \
builtins/ft_export.c \
builtins/ft_unset.c \
execute/exec_process.c \
utils/utils_envv.c \
utils/utils_signal.c \
utils/utils_execute.c \
errors/envv_err.c \
errors/execute_err.c \
errors/exit_err.c \
parser/parser.c \
parser/parse_error.c \
parser/utils_parse.c \
redirection/cmd_redir.c \
redirection/exec_redir.c \
redirection/utils_redir.c \
redirection/utils_redir2.c
LIBFT = libft.a
LIBS = -L./Libft -lft
HEADER = -I./
FLAG = -Wall -Wextra -Werror
CC = gcc
RM = rm -rf
DEBUG = -g -fsanitize=address
all : $(NAME)
$(LIBFT):
$(MAKE) -C ./Libft
$(NAME) : $(LIBFT)
$(CC) $(SRCS) $(LIBS) $(HEADER) $(FLAG) $(DEBUG) -o $(NAME)
clean :
$(MAKE) -C ./Libft clean
rm -rf $(OBJS)
fclean :
$(MAKE) -C ./Libft fclean
rm -rf $(NAME)
re : fclean all