-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (33 loc) · 1.27 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aelkheta <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/27 15:17:58 by aelkheta #+# #+# #
# Updated: 2023/11/27 15:18:00 by aelkheta ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
CC = cc
CFLAGS = -Wall -Wextra -Werror
AR = ar rcs
SRCS = ft_printf.c \
ft_print_address.c \
ft_print_str.c \
ft_print_char.c \
ft_putnbr.c \
ft_putnbr_unsigned.c \
ft_print_hex_upp.c \
ft_print_hex_low.c
OBJS = $(SRCS:.c=.o)
$(NAME) : $(OBJS)
$(AR) $(NAME) $(OBJS)
all: $(NAME)
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean