-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (26 loc) · 1.21 KB
/
Makefile
File metadata and controls
32 lines (26 loc) · 1.21 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mbutt <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/02/15 19:54:05 by mbutt #+# #+# #
# Updated: 2019/03/28 11:18:45 by mbutt ### ########.fr #
# #
# **************************************************************************** #
NAME = libft.a
CC = gcc
CFLAGS = -Wall -Wextra -Werror -I. -c
C_FILES = ft_*.c
O_FILES = *.o
all: $(NAME)
$(NAME):
$(CC) $(CFLAGS) $(C_FILES) #Creates .o file
ar rc $(NAME) $(O_FILES) #takes each .o file and creates a static library libft.a \
clean:
rm -f $(O_FILES)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re