-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (29 loc) · 1.21 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: afukuhar <afukuhar@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/04/16 10:52:40 by afukuhar #+# #+# #
# Updated: 2020/09/09 14:29:24 by afukuhar ### ########.fr #
# #
# **************************************************************************** #
CC = gcc
CFLAGS = -Wall -Wextra -Werror
NAME = libftprintf.a
CFILES = ./libft/ft*.c ft*.c
OFILES = ft*.o
INCLUDES = ./
all: $(NAME)
$(NAME):
@$(CC) $(CFLAGS) -I$(INCLUDES) -c $(CFILES)
@ar rc $(NAME) $(OFILES)
@ranlib $(NAME)
bonus: re
clean:
@/bin/rm -f $(OFILES)
fclean: clean
@/bin/rm -f $(NAME)
re: fclean all
.PHONY: all clean