-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 1.23 KB
/
Makefile
File metadata and controls
33 lines (26 loc) · 1.23 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: anachat <anachat@student.1337.ma> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/11/20 16:39:34 by anachat #+# #+# #
# Updated: 2024/11/20 16:40:59 by anachat ### ########.fr #
# #
# **************************************************************************** #
NAME=libftprintf.a
CFILES=ft_printf.c ft_putchar.c ft_putnbr.c ft_putnbr_adrs.c ft_putnbr_hex.c ft_putnbr_uns.c ft_putstr.c
OBJECTS=$(CFILES:.c=.o)
CC=cc
CFLAGS=-Wall -Wextra -Werror
all: $(NAME)
$(NAME): $(OBJECTS)
ar rcs $(NAME) $(OBJECTS)
%.o: %.c ft_printf.h
$(CC) $(CFLAGS) -c $<
clean:
rm -rf $(OBJECTS)
fclean: clean
rm -rf $(NAME)
re: fclean all