-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (34 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
38
39
40
41
42
43
44
45
46
47
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: dley <dley@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/06/01 16:07:41 by dley #+# #+# #
# Updated: 2023/06/01 16:21:15 by dley ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
CC = cc
CFLAGS = -Wall -Wextra -Werror
AR = ar crs
RM = rm -f
INCLUDES = ./ft_printf.h
SRCS = ./ft_len.c \
./ft_print_part1.c \
./ft_print_part2.c \
./ft_printf.c \
./ft_put.c
OBJS = $(SRCS:.c=.o)
$(NAME): $(OBJS)
$(AR) $(NAME) $(OBJS)
all: $(NAME)
%.o: %.c $(INCLUDES)
$(CC) $(CFLAGS) -c $< -o $@
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re