-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (29 loc) · 1.22 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: busmanov <busmanov@student.42wolfsburg.de> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/10/25 20:14:18 by busmanov #+# #+# #
# Updated: 2022/10/31 02:19:13 by busmanov ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = ft_printf.c ft_printf_utils.c ft_ptr_hex.c
CC = gcc
RM = rm -f
CFLAGS = -Wall -Wextra -Werror
COMPILE = $(CC) $(CFLAGS) -c
OBJ = ${SRC:%.c=%.o}
%.o: .%c
$(COMPILE) $< -o >@
${NAME} : ${OBJ}
ar rs ${NAME} ${OBJ}
all:${NAME}
clean:
${RM} ${OBJ}
fclean: clean
${RM} ${NAME}
re: fclean all
.PHONY: all clean fclean re