-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
100 lines (90 loc) · 2.85 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: fraqioui <fraqioui@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/05/09 23:42:15 by fraqioui #+# #+# #
# Updated: 2023/05/10 00:16:07 by fraqioui ### ########.fr #
# #
# **************************************************************************** #
NAME = minishell
CC = cc
FALGS = -Wall -Wextra -Werror
HEADER = headers/minishell.h
RM = rm -rf
L = -L/Users/fraqioui/.brew/opt/readline/lib
I = -I/Users/fraqioui/.brew/opt/readline/include
FILES = parser/main \
parser/initialize \
parser/initialize_hlp \
parser/parser \
parser/tokenize \
parser/syntax \
parser/re_order \
parser/signals \
executor/builtins/exit \
executor/builtins/cd \
executor/builtins/cd_hlp \
executor/builtins/echo \
executor/builtins/env \
executor/builtins/export \
executor/builtins/export_help \
executor/builtins/pwd \
executor/builtins/unset \
executor/executor/start \
executor/executor/cmd \
executor/executor/cmd_helper \
executor/executor/pipe \
executor/executor/and_or \
executor/executor/redirections \
executor/executor/redir_hlp \
executor/expander/expanding \
executor/expander/wildcard \
executor/expander/wildcard_utils \
utils/libft/strtrim \
utils/libft/putstr \
utils/libft/strlen \
utils/libft/calloc \
utils/libft/split \
utils/libft/substr \
utils/libft/memcmp \
utils/libft/strcmp \
utils/libft/strdup \
utils/libft/lstadd \
utils/libft/get_env \
utils/libft/atoi \
utils/libft/itoa \
utils/libft/strjoin \
utils/build/list_build \
utils/build/node_creation \
utils/build/tree_build \
utils/ft_printf/hex \
utils/ft_printf/number \
utils/ft_printf/string \
utils/ft_printf/start \
utils/tokenize/tokenize_utils_1 \
utils/tokenize/tokenize_utils_2 \
utils/executor/expanding_utils1 \
utils/executor/expanding_utils2 \
utils/executor/expanding_utils3 \
utils/utils/checks \
utils/utils/checks_ \
utils/utils/errors \
utils/utils/evolve_func \
utils/utils/evolve_func_ \
utils/utils/lengths \
utils/utils/memory \
FOBJ = ${FILES:=.o}
all: ${NAME}
${NAME}: ${FOBJ} ${HEADER}
${CC} ${FALGS} ${FOBJ} -o $@ -lreadline ${L}
%.o: %.c
${CC} ${FALGS} -c $< -o $@ ${I}
clean:
${RM} ${FOBJ}
fclean: clean
${RM} ${NAME}
re: fclean all
.PHONY = all clean fclean re