-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 1.19 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: abbouras <abbouras@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/11/18 18:15:19 by abbouras #+# #+# #
# Updated: 2024/11/18 18:15:19 by abbouras ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
CC = gcc
CFLAGS = -Wall -Wextra -Werror
AR = ar crs
SRCS = ft_printf.c \
utils.c
OBJS = $(SRCS:.c=.o)
$(NAME): $(OBJS)
$(AR) $(NAME) $(OBJS)
all: $(NAME)
.c.o:
$(CC) $(CFLAGS) -c $< -o ${<:.c=.o}
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re