-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
93 lines (83 loc) · 2.36 KB
/
Makefile
File metadata and controls
93 lines (83 loc) · 2.36 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: seung-eun <seung-eun@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/07/27 11:48:13 by hwan #+# #+# #
# Updated: 2021/07/30 18:10:09 by seung-eun ### ########.fr #
# #
# **************************************************************************** #
OUT = minishell
CC = gcc
CFLAGS = -Wall -Werror -Wextra #-fsanitize=address -g
SRCDIR = ./srcs/
SRCNAME = main.c\
gnl/get_next_line.c\
gnl/char_check.c\
gnl/get_next_line_utils.c\
\
object/set_object.c\
object/re_object.c\
object/com_object.c\
object/word_object.c\
object/list_object.c\
object/env_object.c\
object/his_object.c\
\
parsing/ft_split1.c\
parsing/ft_split2.c\
parsing/ft_split3.c\
\
parsing/ft_str.c\
parsing/set.c\
parsing/parsing1.c\
parsing/parsing2.c\
parsing/parsing_set.c\
parsing/utils.c\
parsing/utils2.c\
parsing/environment.c\
parsing/environment2.c\
parsing/environment3.c\
parsing/terminal_set.c\
parsing/parsing_error.c\
\
exec/error.c\
exec/std_init.c\
exec/exec.c\
exec/lst_utils.c\
exec/pipe_utils.c\
exec/redirection.c\
exec/tty_utils.c\
exec/str_utils.c\
\
builtin/builtin.c\
builtin/echo.c\
builtin/pwd.c\
builtin/cd/cd.c\
builtin/cd/cd_utils.c\
builtin/export.c\
builtin/export2.c\
builtin/export3.c\
builtin/env.c\
builtin/unset.c\
builtin/exit.c\
\
signal/signal.c
SRCS = ${addprefix ${SRCDIR}, ${SRCNAME}}
INCDIR = ./includes/
OBJS = ${SRCS:.c=.o}
all : $(OUT)
clean :
@rm -rf ${OBJS}
test : re
./${OUT}
.c.o :
@${CC} ${CFLAGS} -I ${INCDIR} -c ${<} -o ${<:.c=.o}
${OUT}: ${OBJS}
@${CC} ${CFLAGS} ${CLIB} -o ${OUT} ${OBJS} -lreadline
fclean : clean
@rm -rf ${OUT}
re : fclean all
.PHONY: all clean fclean re