-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (34 loc) · 1.3 KB
/
Copy pathMakefile
File metadata and controls
42 lines (34 loc) · 1.3 KB
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: csekakul <csekakul@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2026/01/26 14:35:25 by csekakul #+# #+# #
# Updated: 2026/02/11 09:29:51 by csekakul ### ########.fr #
# #
# **************************************************************************** #
SRCS = ft_printf.c \
ft_putchar_pf.c \
ft_puthex_pf.c \
ft_putnbr_pf.c \
ft_putptr_pf.c \
ft_putstr_pf.c \
ft_putuint_pf.c \
ft_aux_pf.c \
NAME = libftprintf.a
CC = cc
CFLAGS = -Wall -Wextra -Werror
OBJS = $(SRCS:.c=.o)
all: $(NAME)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
$(NAME): $(OBJS)
ar -rcs $(NAME) $(OBJS)
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean $(NAME)
.PHONY: all clean fclean re