-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (28 loc) · 1.18 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
# **************************************************************************** #
# #
# ::: :::::::: #
# makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: bwebb <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/05/28 15:31:17 by bwebb #+# #+# #
# Updated: 2019/07/18 12:33:34 by bwebb ### ########.fr #
# #
# **************************************************************************** #
NAME = libft.a
SRCS = *.c
OSRCS = *.o
FLAGS = -Wall -Werror -Wextra
HEAD = libft.h
GHEAD = libft.h.gch
all: $(NAME)
$(NAME):
gcc -c $(SRCS) $(FLAGS) $(HEAD)
ar rc $(NAME) $(OSRCS) $(GHEAD)
ranlib $(NAME)
clean:
/bin/rm -f $(OSRCS)
/bin/rm -f $(GHEAD)
fclean: clean
/bin/rm -f $(NAME)
re: fclean all clean