-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (34 loc) · 759 Bytes
/
Makefile
File metadata and controls
44 lines (34 loc) · 759 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
NAME = libftprintf.a
CC = gcc
FLAGS = -c -Wall -Wextra -Werror
NAME = libftprintf.a
SRC = ft_printf.c\
ft_printf_parser.c\
ft_print_char_type.c\
ft_print_number_type.c\
ft_print_string_type.c\
ft_print_percent_type.c\
ft_print_pointer_type.c\
ft_print_unsigned_number_type.c\
ft_print_hex_type.c\
OBJS = ft_printf.o\
ft_printf_parser.o\
ft_print_char_type.o\
ft_print_number_type.o\
ft_print_string_type.o\
ft_print_percent_type.o\
ft_print_pointer_type.o\
ft_print_unsigned_number_type.o\
ft_print_hex_type.o\
.c.o:
${CC} -c $< -o ${<:.c=.o}
$(NAME): ${OBJS}
${CC} ${FLAGS} ${SRC}
ar -rcs ${NAME} ${OBJS}
all: ${NAME}
clean:
rm -rf ${OBJS}
fclean: clean
rm -rf libftprintf.a
re: fclean all
.PHONY: all clean fclean