-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (28 loc) · 1.17 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ggladkov <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/02/27 18:53:20 by ggladkov #+# #+# #
# Updated: 2017/03/21 22:15:51 by ggladkov ### ########.fr #
# #
# **************************************************************************** #
NAME = libft.a
FLAGS = -Wall -Wextra -Werror -I. -c
SRCS = *.c
OBJ = $(SRCS:%.c=%.o)
CC = gcc
HEADER = libft.h
$(NAME):
$(CC) $(FLAGS) $(SRCS) $(HEADER)
ar rc $(NAME) $(OBJ)
ranlib $(NAME)
all: $(NAME)
fclean: clean
rm -f $(NAME)
clean:
rm -f $(OBJ)
re: fclean all
.PHONY: clean fclean re