-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (31 loc) · 1.22 KB
/
Makefile
File metadata and controls
43 lines (31 loc) · 1.22 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
43
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: algungor <algungor@student.42istanbul.com.tr>+#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2026/03/13 22:14:58 by algungor #+# #+# #
# Updated: 2026/03/13 22:14:59 by algungor ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
CC = cc
CFLAGS = -Wall -Wextra -Werror
SRCS = ft_printf.c \
ft_control.c\
ft_putchar.c
OBJS = $(SRCS:.c=.o)
AR = ar rcs
RM = rm -f
all: $(NAME)
$(NAME): $(OBJS)
$(AR) $(NAME) $(OBJS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re