-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (44 loc) · 1.59 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aihya <aihya@student.1337.ma> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/05/30 10:17:50 by aihya #+# #+# #
# Updated: 2019/07/03 17:35:08 by aihya ### ########.fr #
# #
# **************************************************************************** #
NAME = minishell
SRC = src/main.c \
src/ms_env.c \
src/ms_env_tools.c \
src/ms_builtins.c \
src/ms_feed_checker.c \
src/ms_unsetenv.c \
src/ms_setenv.c \
src/ms_cd.c \
src/ms_cd_tools.c \
src/ms_parser.c \
src/ms_echo.c \
src/ms_expansions.c \
src/ms_expansions_tools.c \
src/ms_non_builtins.c \
src/ms_signals.c \
src/ms_error.c \
src/ms_path_checker.c \
src/get_next_line.c \
src/get_next_line_free.c
all : $(NAME)
$(NAME) :
@echo "\033[1;32m===> all :\033[0m"
make -C libft
gcc -g -Wall -Werror -Wextra $(SRC) -o $(NAME) libft/libft.a
clean :
@echo "\033[1;32m===> clean :\033[0m"
make -C libft clean
fclean :
@echo "\033[1;32m===> fclean :\033[0m"
make -C libft fclean
/bin/rm -f $(NAME)
re : fclean all