-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (30 loc) · 1.38 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: abarriel <abarriel@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/02/19 11:33:06 by abarriel #+# #+# #
# Updated: 2017/07/11 23:41:52 by abarriel ### ########.fr #
# #
# **************************************************************************** #
NAME = minishell
SRC = minishell.c init.c load.c print.c exec.c builtin.c env.c find.c
OBJ = $(addprefix srcs/,$(SRC:.c=.o))
INCLUDES = ./includes/minishell.h
CFLAGS = -Wall -Wextra -I./includes/ -Ilibft/includes/
all: makefile libft $(NAME)
libft:
@make -C libft
$(NAME): libft $(OBJ) $(INCLUDES)
@gcc $(OBJ) -o $(NAME) -Llibft -lft
@echo ""
clean:
@make clean -C libft
@rm -rf $(OBJ)
fclean: clean
@rm -rf $(NAME) $(OBJ)
@make fclean -C libft
re: fclean all
.PHONY: clean fclean re libft all