-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: vess <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/08/22 22:52:57 by jcampagn #+# #+# #
# Updated: 2021/12/10 10:58:57 by vess ### ########.fr #
# #
# **************************************************************************** #
SRCS = ft_printf.c \
ft_printf_hex.c \
ft_printf_nb.c \
ft_printf_nb.c \
ft_printf_ptr.c \
ft_printf_unsigned.c \
OBJS = ${SRCS:.c=.o}
CC = gcc
CFLAGS = -Wall -Wextra -Werror
NAME = libftprintf.a
.c.o:
$(CC) $(CFLAGS) -I includes -c $< -o ${<:.c=.o}
all : $(NAME)
$(NAME) : $(OBJS)
ar rcs $(NAME) $(OBJS)
clean :
rm -f $(OBJS) $(OBJSBONUS)
fclean : clean
rm -f $(NAME)
re : fclean all
.PHONY: all clean fclean re