-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 1.21 KB
/
Copy pathMakefile
File metadata and controls
41 lines (30 loc) · 1.21 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: oobiukh <oobiukh@student.42madrid.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2025/01/28 19:45:23 by oobiukh #+# #+# #
# Updated: 2025/01/28 19:45:26 by oobiukh ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
LIB = ar -rcs
RM = rm -f
CC = cc
CFLAGS = -Wall -Wextra -Werror
OBJ = $(SRC:.c=.o)
SRC = ft_printf.c utils.c utils2.c
OBJ = $(SRC:.c=.o)
$(NAME): $(OBJ)
$(LIB) $(NAME) $(OBJ)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME)
all: $(NAME)
re: fclean all
.PHONY: all clean fclean re