-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 1.33 KB
/
Copy pathMakefile
File metadata and controls
38 lines (28 loc) · 1.33 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: lwang <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/05/04 00:43:43 by lwang #+# #+# #
# Updated: 2017/05/14 15:12:55 by lwang ### ########.fr #
# #
# **************************************************************************** #
NAME = minishell
SRC = main.c minishell.c get_info.c free.c parse_line.c handle_quotes.c\
handle_buildin_cmd.c helper.c handle_env.c get_cmd_path.c prompt.c
OBJ = $(SRC:.c=.o)
CFLAGS = -Wall -Wextra -Werror -g -Ilibft
.PHONY: all clean fclean re
$(NAME): $(OBJ)
make -C ./libft
gcc $(CFLAGS) -o $(NAME) $(OBJ) -L libft/ -lft
all: $(NAME)
clean:
make -C ./libft clean
rm -f $(OBJ)
fclean:
make -C ./libft fclean
rm -f $(OBJ) $(NAME)
re: fclean $(NAME)