-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (33 loc) · 1.37 KB
/
Makefile
File metadata and controls
40 lines (33 loc) · 1.37 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
39
40
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ichemenc <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/04/04 18:40:59 by ichemenc #+# #+# #
# Updated: 2017/04/04 18:42:19 by ichemenc ### ########.fr #
# #
# **************************************************************************** #
NAME = minishell
CC = gcc
CFLAGS = -Wall -Wextra -Werror -g3
SRC = $(wildcard *.c)
OBJ = $(SRC:.c=.o)
LIBRARY = libft
all: $(NAME)
$(NAME):
make -C $(LIBRARY)
$(CC) $(CFLAGS) -c -g $(SRC) -I $(LIBRARY)
$(CC) $(OBJ) -L $(LIBRARY) -lft -o $(NAME)
.PHONY: clean
clean:
make -C $(LIBRARY) clean
/bin/rm -rf $(OBJ)
@echo "Delete C object files"
fclean: clean
/bin/rm -f $(NAME)
/bin/rm -f $(LIBRARY)/libft.a
@echo "Delete $(NAME)"
@echo "Delete $(LIBRARY)/libft.a"
re: fclean all