-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·40 lines (32 loc) · 1.68 KB
/
Makefile
File metadata and controls
executable file
·40 lines (32 loc) · 1.68 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: husui <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/12/11 10:04:33 by husui #+# #+# #
# Updated: 2018/02/01 14:40:01 by scamargo ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
TEST = ft_printf.out
SRCS = cut_left.c cut_right.c ft_printf.c handle_percent.c in_flags.c in_format_conversions.c \
in_length_modifiers.c in_minimum_field_width.c in_precision.c initialize_t_bag_variables.c \
pad_left.c pad_right.c print_c.c print_d.c print_format_conversion.c print_o.c\
print_p.c print_percent.c print_s.c print_u.c print_x.c set_flags.c set_length_modifiers.c \
ft_intmax_toa.c test_printd.c print_u_precision.c print_u_width.c stringerize.c ft_ltoa.c \
number_cmp.c truncate_zeros.c zeroed.c
OBJS = $(SRCS:.c=.o)
all: $(NAME)
$(NAME):
@gcc -c -Wall -Werror -Wextra libft/*.c -I libft/libft.h
@gcc -c $(SRCS)
@ar rc $(NAME) *.o
test:
@gcc -g -L. -lftprintf $(SRCS) main.c -o $(TEST)
clean:
@rm -rf *.o libft/*.o
fclean: clean
@rm -rf $(NAME)
re: fclean all