-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (28 loc) · 1.31 KB
/
Makefile
File metadata and controls
40 lines (28 loc) · 1.31 KB
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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: wphylici <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/07/16 18:19:13 by wphylici #+# #+# #
# Updated: 2020/07/27 13:29:13 by wphylici ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRCS = ft_printf.c check_elements.c print_c_percent.c print_s.c \
print_d_i.c print_u_x.c print_p.c ft_printf_utils_1.c ft_printf_utils_2.c
HEADER := includes/ft_printf.h
FLAGS = -Wall -Wextra -Werror
OBJS = $(SRCS:.c=.o)
.PHONY: all, clean, fclean, re
all: $(NAME)
$(NAME): $(OBJS)
@ar rc $(NAME) $(OBJS)
%.o: %.c $(HEADERS)
@gcc $(FLAGS) -o $@ -c $<
clean:
@rm -rf *.o
fclean: clean
@rm -rf *.a
re: fclean all