-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (54 loc) · 2.41 KB
/
Makefile
File metadata and controls
73 lines (54 loc) · 2.41 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ael-bach <ael-bach@student.1337.ma> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/04/23 03:45:02 by eel-ghan #+# #+# #
# Updated: 2022/06/17 20:40:27 by ael-bach ### ########.fr #
# #
# **************************************************************************** #
NAME = minishell
LEX_DIR = srcs/Parsing/Lexer/
PARS_DIR = srcs/Parsing/Parser/
SRCS = minishell.c ${LEX_DIR}lexer.c ${LEX_DIR}token.c ${LEX_DIR}lexer_utils00.c\
${LEX_DIR}lexer_utils01.c ${LEX_DIR}redirection_utils.c ${LEX_DIR}env_utils.c\
${LEX_DIR}dollar_utils00.c ${LEX_DIR}lexer_utils02.c ${LEX_DIR}get_value_utils.c\
${LEX_DIR}dollar_utils.c ${LEX_DIR}skip_quote_utils.c ${LEX_DIR}skip_quote_utils01.c\
${PARS_DIR}parser.c ${PARS_DIR}struct_cmd.c ${PARS_DIR}linked_list_utils.c\
${PARS_DIR}parser_utils00.c ${PARS_DIR}parser_utils01.c ${PARS_DIR}parser_utils02.c\
./srcs/exec/srcs/exec.c\
./srcs/exec/srcs/exec_part2.c\
./srcs/exec/srcs/exec_utls.c\
./srcs/exec/srcs/builtins.c\
./srcs/exec/srcs/builtins_utls.c\
./srcs/exec/srcs/export.c\
./srcs/exec/srcs/unset.c\
./srcs/exec/srcs/heredoc.c\
./srcs/exec/srcs/echo_utls.c\
./srcs/exec/srcs/utils.c\
./srcs/exec/srcs/utils_2.c\
OBJS = ${SRCS:.c=.o}
CNTRL = @stty -echoctl
CC = @gcc
CFLAGS = -Wall -Wextra -Werror
RM = @rm -f
libft = srcs/Libft/libft.a
INCLUDE = -L /Users/ael-bach/Desktop/homebrew/opt/readline/lib -I /Users/ael-bach/Desktop/homebrew/opt/readline/include
${NAME} : ${SRCS}
${CNTRL}
@make -C srcs/Libft
${CC} ${CFLAGS} ${SRCS} ${libft} ${INCLUDE} -lreadline -o ${NAME}
@tput setaf 2; echo "MINISHELL IS READY"
all : ${NAME}
clean :
${RM} ${OBJS}
@make clean -C srcs/Libft
@tput setaf 1; echo "OBJECTS REMOVED"
fclean : clean
${RM} ${NAME}
${RM} ${libft}
@tput setaf 1; echo "MINISHELL REMOVED"
re : fclean all
.phony: all clean fclean re