-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 1.16 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mgiraldo <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/02/26 14:40:16 by mgiraldo #+# #+# #
# Updated: 2020/03/05 16:31:02 by mgiraldo ### ########.fr #
# #
# **************************************************************************** #
# Name of the library
NAME=libft.a
SRCS=ft*.c
OBJECTS=ft*.o
INCLUDES=libft.h
all:$(NAME)
$(NAME):$(SRCS) libft.h
@gcc -Wall -Wextra -Werror -I$(INCLUDES) -c $(SRCS)
@ar rc $(NAME) $(OBJECTS)
@ranlib $(NAME)
clean:
@/bin/rm -f $(OBJECTS)
fclean: clean
@/bin/rm -f $(NAME)
re: fclean all