-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (37 loc) · 920 Bytes
/
Makefile
File metadata and controls
47 lines (37 loc) · 920 Bytes
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
NAME := libftprintf.a
CC ?= cc
CFLAGS := -Wall -Wextra -Werror
AR ?= ar
ARFLAGS := cr
SRCS := buffer_writer.c \
buffer_writer_method_1.c \
buffer_writer_method_2.c \
buffer_writer_method_3.c \
ft_printf.c \
printer.c \
printer_method.c \
scanner.c \
scanner_command_1.c \
scanner_command_2.c \
scanner_command_3.c \
scanner_command_4.c \
scanner_method.c \
styles.c \
styles_method_1.c \
styles_method_2.c \
styles_method_3.c \
token_buffer_writer_1.c \
token_buffer_writer_2.c \
token_buffer_writer_3.c \
token_buffer_writer_method.c
OBJS := $(SRCS:.c=.o)
.PHONY: mandatory bonus all clean fclean re
mandatory: $(NAME)($(OBJS)) ;
bonus: $(NAME)($(OBJS)) ;
$(NAME): mandatory ;
all: $(NAME) ;
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all ;