-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·49 lines (45 loc) · 1.5 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: fulldemo <fulldemo@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/11/09 09:59:06 by fulldemo #+# #+# #
# Updated: 2019/12/14 08:58:38 by fulldemo ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = ft_atoi.c \
ft_strlen.c \
ft_putnchar.c \
ft_putnstr.c \
ft_putnbr.c \
ft_printf.c \
ft_checkflags.c \
ft_conversors.c \
ft_string.c \
ft_char.c \
ft_numbers.c \
ft_pointer.c \
ft_putptr.c \
ft_unsigned_number.c \
ft_hexanumbers.c \
ft_puthexa.c \
ft_simple.c
OBJ = ${SRC:.c=.o}
CC = gcc
RM = rm -f
CFLAG = -c -Wall -Wextra -Werror
CCTWO = ar rc
all: ${NAME}
${NAME}: ${OBJ}
${CCTWO} ${NAME} ${OBJ}
ft_%.o: ft_%.c
${CC} ${CFLAG} $<
clean:
${RM} *.o
fclean: clean
${RM} ${NAME}
re: fclean all
.PHONY: all clean fclean re