-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (61 loc) · 2.09 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: achane-l <achane-l@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/01/06 17:04:03 by esafar #+# #+# #
# Updated: 2022/05/23 16:14:34 by achane-l ### ########.fr #
# #
# **************************************************************************** #
NAME = minishell
SRCS = ./main.c \
./parsing/parse_utils.c \
./parsing/parse.c \
./parsing/get_token_str.c \
./parsing/special_char_utils.c \
./parsing/token_list.c \
./parsing/signal.c \
./parsing/expand.c\
./utils/ft_strlen.c \
./utils/ft_strcmp.c \
./utils/ft_strncmp.c \
./utils/ft_strdup.c \
./utils/ft_strjoin.c \
./utils/ft_split.c \
./utils/ft_strcopy.c \
./utils/ft_itoa.c \
./utils/ft_putstr_fd.c \
./utils/env_utils.c \
./built-in/ft_pwd.c \
./built-in/ft_env.c \
./built-in/ft_echo.c \
./built-in/ft_export.c \
./built-in/ft_unset.c \
./built-in/ft_cd.c \
./built-in/ft_exit.c \
./exec_files/exec.c \
./exec_files/get_cmds.c \
./exec_files/get_files.c \
./exec_files/init_cmds.c \
./exec_files/paths.c \
./exec_files/process.c \
./exec_files/utils_exec.c \
./get_next_line/get_next_line.c \
CC = cc -g3
R_FLAG = -lreadline
FLAGS = -Wextra -Wall -Werror
INCL = minishell.h
OBJS = ${SRCS:.c=.o}
all: ${NAME}
${NAME}: ${OBJS}
${CC} ${FLAGS} ${OBJS} -I includes -L/opt/homebrew/opt/readline/lib -I/opt/homebrew/opt/readline/include -o ${NAME} ${R_FLAG}
clean:
rm -f ${OBJS}
fclean:
rm -f ${OBJS} ${NAME}
re: fclean all
%.o: %.c ${INCL}
${CC} ${FLAGS} -c $< -o ${<:.c=.o}
.PHONY: all clean fclean re