-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (27 loc) · 1.42 KB
/
Makefile
File metadata and controls
33 lines (27 loc) · 1.42 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: yazhu <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/11/27 10:32:40 by yazhu #+# #+# #
# Updated: 2018/01/10 14:22:25 by yazhu ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
CFILES = ft_atoi.c ft_putchar.c ft_putstr.c ft_strcmp.c ft_strlen.c \
ft_putwchar.c ft_putwstr.c ft_wstrlen.c ft_haschar.c \
ft_digits.c ft_putnbr_base.c ft_power.c process_nbr.c \
convert_xou.c convert_di.c convert_p.c convert_s.c convert_ws.c convert_c.c \
convert_efg.c put_nbr_ef.c set_color.c ft_printf.c conversion.c
OFILES = $(CFILES:.c=.o)
all: $(NAME)
$(NAME):
@gcc -Wall -Wextra -Werror -c $(CFILES)
@ar rc $(NAME) $(OFILES)
clean:
@/bin/rm -f $(OFILES)
fclean: clean
@/bin/rm -f $(NAME)
re: fclean all