forked from ibranad/Minishell_42
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
85 lines (80 loc) · 2.24 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
NAME = minishell
MAIN = main.c
CFLAGS = -Wall -Werror -Wextra
RM = rm -rf
CC = cc
RDL = -lreadline
# LDFLAGS="-L/Users/obouizga/.brew/opt/readline/lib"
# CPPFLAGS="-I/Users/obouizga/.brew/opt/readline/include"
LDFLAGS="-L/goinfre/ibnada/homebrew/opt/readline/lib"
CPPFLAGS="-I/goinfre/ibnada/homebrew/opt/readline/include"
FUNCTIONS = Execu/builtins/setup.c \
Parsing/lex_methods.c \
Parsing/lex_methods_2.c \
Parsing/lex_utils.c \
Parsing/tokenize.c \
Parsing/utils.c \
Parsing/lexer.c \
Parsing/heredoc.c \
Parsing/heredoc_utils.c \
Parsing/Expand/exp.c \
Parsing/Expand/exp_util.c \
Parsing/Expand/exp_util_2.c \
Parsing/Expand/exp_util_3.c \
Parsing/Expand/exp_util_4.c \
Parsing/Expand/exp_util_5.c \
Parsing/Expand/exp_util_6.c \
Parsing/Expand/exp_util_7.c \
Parsing/Expand/exp_util_8.c \
Parsing/Parsing_list/parse_list.c \
Parsing/Parsing_list/parse_list_utils.c \
Parsing/Parsing_list/parse_list_utils_2.c \
Parsing/Parsing_list/parse_list_utils_3.c \
Parsing/Parsing_list/parse_list_utils_4.c \
Parsing/Parsing_list/parse_list_utils_5.c \
Parsing/Parsing_list/parse_list_utils_6.c \
Parsing/Parsing_list/parse_list_utils_7.c \
Parsing/parser.c \
Parsing/parser_utils.c \
Utils/ascii2.c \
Utils/env_utils.c \
Utils/ascii.c \
Utils/utils.c \
Utils/utils_2.c \
Utils/utils_3.c \
Utils/utils_4.c \
Utils/list_utils.c \
Utils/split.c \
Execu/exec/execute.c \
Execu/pipex/manip_cmds.c \
Execu/pipex/pipex.c \
Execu/pipex/io.c \
Execu/signals/signals.c \
Errors/sys_err.c \
Errors/err_message.c \
Errors/errors.c \
Execu/builtins/cd.c \
Execu/builtins/echo.c \
Execu/builtins/env.c \
Execu/builtins/exit.c \
Execu/builtins/export.c \
Execu/builtins/export_utils.c \
Execu/builtins/export_err.c \
Execu/builtins/pwd.c \
Execu/builtins/unset.c \
Execu/builtins/unset_utils.c \
Execu/builtins/utils.c \
Utils/free_utils.c \
Utils/puts.c \
$(MAIN)
OBJECTS = $(FUNCTIONS:.c=.o)
all : $(NAME)
$(NAME) : $(OBJECTS)
$(CC) $(CFLAGS) $(RDL) $(LDFLAGS) $(CPPFLAGS) $(OBJECTS) -o $(NAME)
@echo "minishell CREATED"
clean :
$(RM) $(OBJECTS)
fclean : clean
$(RM) $(NAME)
@echo "MINISHELL REMOVED"
re : fclean all