-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (33 loc) · 1.47 KB
/
Copy pathMakefile
File metadata and controls
48 lines (33 loc) · 1.47 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
47
48
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: pgomez-a <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/03/11 08:43:38 by pgomez-a #+# #+# #
# Updated: 2021/03/11 10:25:20 by pgomez-a ### ########.fr #
# #
# **************************************************************************** #
SRCS = ft_printf.c manage_format.c manage_precision.c char_type.c pct_type.c str_type.c int_type.c uns_type.c hex_type.c ptr_type.c pointer_precision.c numbers_width.c
OBJS = $(SRCS:.c=.o)
LIBFT_OBJS = ./libft/*.o
NAME = libftprintf.a
RM = rm -f
CC = gcc
CFLAGS = -Wall -Werror -Wextra
all: $(NAME)
$(NAME): $(OBJS)
@make -C ./libft
@ar rc $(NAME) $(OBJS) $(LIBFT_OBJS)
clean:
@make clean -C ./libft
@$(RM) $(OBJS)
fclean: clean
@make fclean -C ./libft
@$(RM) $(NAME)
re: fclean all
c:
@$(CC) main.c -L. -lftprintf && ./a.out
cc:
@$(CC) $(CFLAGS) main.c -L. -lftprintf && ./a.out