-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (36 loc) · 1.39 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
40
41
42
43
44
45
46
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: damartin <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/05/04 13:57:41 by damartin #+# #+# #
# Updated: 2022/05/04 13:57:45 by damartin ### ########.fr #
# #
# **************************************************************************** #
NAME := libftprintf.a
CC = clang
C_FLAGS = -Wall -Wextra -Werror
C_SOURCE := ft_printf.c \
print_char.c \
print_hexa.c \
print_ptr.c \
print_signed.c \
print_unsigned.c \
Libft/ft_putchar_fd.c \
Libft/ft_itoa.c \
Libft/ft_strdup.c \
Libft/ft_strlen.c \
OBJ = $(C_SOURCE:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
@ar r $(NAME) $(OBJ)
%.o: %.c ft_printf.h
$(CC) $(C_FLAGS) -c $< -o $@
clean:
rm -rf $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re