-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (34 loc) · 1.3 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
41
42
43
44
45
46
47
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: zel-bouz <zel-bouz@student.1337.ma> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/11/04 18:24:47 by zel-bouz #+# #+# #
# Updated: 2023/03/11 02:32:32 by zel-bouz ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
CC = cc
FLG = -Wall -Wextra -Werror
RM = rm -f
AR = ar rcs
FILES = print/ft_printf.c \
print/ft_putchar_fd.c \
print/ft_puthexa.c \
print/ft_putnbr_fd.c \
print/ft_putptr.c \
print/ft_putstr_fd.c \
print/ft_putunbr.c
OBJ = $(FILES:.c=.o)
all : $(NAME)
$(NAME) : $(OBJ)
$(AR) $@ $^
%.o: %.c ft_printf.h
$(CC) -o $@ $(FLG) -c $<
clean :
$(RM) $(OBJ)
fclean : clean
$(RM) $(NAME)
re : fclean all