-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (35 loc) · 1.33 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
48
49
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: trobert <trobert@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/12/06 17:56:41 by trobert #+# #+# #
# Updated: 2022/08/03 18:54:33 by trobert ### ########.fr #
# #
# **************************************************************************** #
SRC = ft_printf.c\
print_char.c\
print_int.c\
print_ptr.c\
print_unsigned.c\
utils.c\
SRCS = ${addprefix srcs/, ${SRC}}
OBJS = ${SRCS:.c=.o}
NAME = libftprintf.a
CC = cc
RM = rm -f
CFLAGS = -Wall -Wextra -Werror
all: ${NAME}
.c.o:
${CC} ${CFLAGS} -I./includes -c $< -o ${<:.c=.o}
${NAME}: ${OBJS} includes/ft_printf.h
ar rcs ${NAME} ${OBJS}
ranlib ${NAME}
clean:
${RM} ${OBJS}
fclean: clean
${RM} ${NAME} a.out
re: fclean all
.PHONY: clean fclean all re