-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (51 loc) · 1.88 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: jbadaire <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/01/17 17:54:42 by jbadaire #+# #+# #
# Updated: 2023/01/17 17:54:46 by jbadaire ### ########lyon.fr #
# #
# **************************************************************************** #
N_TEMP = temp.a
NAME = libftprintf.a
SRCS = ft_printf.c \
ft_args_handler.c \
ft_printf.c \
printers/ft_get_address.c \
printers/ft_get_base16.c \
printers/ft_get_char.c \
printers/ft_get_integer.c \
printers/ft_get_string.c \
minilib/ft_base.c \
minilib/ft_putchar_fd.c \
minilib/ft_putnbr_fd.c \
minilib/ft_putstr_fd.c \
SURPL_O = ft_printf.o \
ft_args_handler.o \
ft_printf.o \
ft_get_address.o \
ft_get_base16.o \
ft_get_char.o \
ft_get_integer.o \
ft_get_string.o \
ft_base.o \
ft_putchar_fd.o \
ft_putnbr_fd.o \
ft_putstr_fd.o \
CC = gcc
FLAGS = -c -Wall -Wextra -Werror
INCLUDES = headers/ft_printf.h
OBJS = $(SRCS:.c=.o)
$(NAME): $(OBJS)
$(CC) $(FLAGS) $(SRCS)
ar rc $(NAME) $(OBJS)
all : $(NAME)
clean :
rm -rf $(SURPL_O)
rm -rf $(OBJS)
fclean : clean
rm -rf $(NAME)
re : fclean all