-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: luiroel <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/02/19 16:37:15 by luiroel #+# #+# #
# Updated: 2020/02/26 21:18:23 by luiroel ### ########.fr #
# #
# **************************************************************************** #
NAME = libft.a
SRCS = *.c
INCLUDES = *.h
OBJ_NAMES = *.o
FLAGS = -g -Wall -Wextra -Werror
all: $(NAME)
$(NAME):
gcc $(FLAGS) -I$(INCLUDES) -c $(SRCS)
@ar rc $(NAME) $(OBJ_NAMES)
@ranlib $(NAME)
clean:
@/bin/rm -f $(OBJ_NAMES)
fclean: clean
@/bin/rm -f $(NAME)
re: fclean all