-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (27 loc) · 1.25 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: vvarodi <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/08/13 22:15:55 by vvarodi #+# #+# #
# Updated: 2020/08/19 00:33:26 by vvarodi ### ########.fr #
# #
# **************************************************************************** #
CC = gcc
CFLAGS = -Wall -Wextra -Werror
SRCS = ft_printf.c read_format.c ft_printf_utils.c ft_buffer.c ft_numbers.c \
type_s.c type_c.c type_di.c type_u.c type_x.c type_p.c
OBJS = ${SRCS:.c=.o}
NAME = libftprintf.a
$(NAME) : ${OBJS}
ar rcs ${NAME} ${OBJS}
all : ${NAME}
debug:
$(CC) -g -o ft_printf $(SRCS)
clean :
rm -f ${OBJS}
fclean : clean
rm -f ${NAME}
re : fclean all