-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 1.65 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: akhalid <akhalid@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/22 14:24:17 by akhalid #+# #+# #
# Updated: 2022/03/11 18:39:14 by akhalid ### ########.fr #
# #
# **************************************************************************** #
NAME = minishell
CC = gcc
CFLAG = -Werror -Wextra -Wall -g
LRL = "-lreadline"
LDFLAGS = "-L/Users/akhalid/homebrew/Cellar/readline/8.1.2/lib"
CPPFLAGS = "-I/Users/akhalid/homebrew/Cellar/readline/8.1.2/include"
SRC_MAIN = main.c collect_env.c env.c env_utils.c execute_cmd.c exit.c \
expand_utils.c ft_itoa.c heredoc.c parse_redirection.c \
pwd.c token.c char_token.c echo.c env_to_arr.c execute.c \
execution_utils.c expand.c export.c ft_split.c lexer.c \
parse_command.c parser.c redirection.c unset.c signals.c \
cd.c utils.c utils2.c utils3.c utils4.c utils5.c
SRCS = $(SRC_MAIN)
all: $(NAME)
$(NAME): $(SRCS)
@gcc $(CFLAG) $(SRCS) $(LDFLAGS) $(CPPFLAGS) $(LRL) -o $(NAME) -g
clean:
@rm -rf *.o
fclean: clean
@rm -rf $(NAME) *.out
re: fclean all