-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (29 loc) · 1.31 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ymomen <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/13 23:06:15 by ymomen #+# #+# #
# Updated: 2023/11/14 02:27:39 by ymomen ### ########.fr #
# #
# **************************************************************************** #
SRC = ft_managecase.c ft_printf.c ft_printhld.c ft_putchar.c ft_putnbr.c ft_putstr.c ft_putunbr.c ft_putnbr_base.c ft_print_add.c
OBJ = $(SRC:.c=.o)
LIB = ar -rcs
CC = cc
RM = rm -f
CFLAGS = -Wall -Wextra -Werror
NAME = libftprintf.a
%.o : %.c ft_printf.h
$(CC) -c $(CFLAGS) $< -o $@
all: $(NAME)
$(NAME) : $(OBJ)
@$(LIB) $(NAME) $(OBJ)
clean:
@$(RM) $(OBJ)
fclean: clean
@$(RM) $(NAME)
re: fclean all
.PHONY : clean fclean all bonus