-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (33 loc) · 1.3 KB
/
Makefile
File metadata and controls
46 lines (33 loc) · 1.3 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
41
42
43
44
45
46
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: bschwitz <marvin@42lausanne.ch> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/11 15:21:04 by bschwitz #+# #+# #
# Updated: 2021/12/06 15:51:37 by bschwitz ### ########.fr #
# #
# **************************************************************************** #
SRCS = ft_printf.c \
ft_putchar.c \
ft_putnbr.c \
ft_putstr.c \
ft_strlen.c \
ft_putunsignednbr.c \
ft_hex.c \
ft_ptrhex.c
OBJS = ${SRCS:.c=.o}
NAME = libftprintf.a
CC = gcc ${CFLAGS}
RM = rm -f
CFLAGS = -Wall -Werror -Wextra
all: ${NAME}
${NAME}: ${OBJS}
ar cr ${NAME} ${OBJS}
clean:
${RM} ${OBJS}
fclean: clean
${RM} ${NAME}
re: fclean all
.PHONY: all clean fclean re