-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (32 loc) · 1.25 KB
/
Makefile
File metadata and controls
47 lines (32 loc) · 1.25 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
44
45
46
47
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: hchairi <hchairi@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/11/05 11:44:05 by hchairi #+# #+# #
# Updated: 2022/11/10 11:44:01 by hchairi ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = ./ft_printf.c \
./ft_putstr.c \
./ft_putnbr.c \
./ft_putchar.c \
./ft_hexanbr.c \
./ft_cas.c \
CC = cc
CFLAGS = -Wall -Wextra -Werror
OBJ = $(SRC:.c=.o)
all : $(NAME)
$(NAME) : $(OBJ)
ar -rc $(NAME) $(OBJ)
%.o : %.c
$(CC) $(CFLAGS) -c $<
clean :
rm -f $(OBJ)
fclean : clean
rm -f libftprintf.a
re : fclean all
.PHONY : all clean fclean re