-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rrangwan <rrangwan@42abudhabi.ae> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/01/25 19:16:06 by rrangwan #+# #+# #
# Updated: 2022/01/28 13:09:46 by rrangwan ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRCS = ft_printf.c ft_printer.c
CC = gcc
OBJS = $(SRCS:.c=.o)
CFLAGS = -Wall -Werror -Wextra
$(NAME): ft_printf.h
$(CC) $(CFLAGS) -c $(SRCS)
ar rc $(NAME) $(OBJS)
all: $(NAME)
clean:
rm -rf $(OBJS)
fclean: clean
rm -rf $(NAME)
re: fclean all
.PHONY: clean fclean re all