-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (46 loc) · 1.56 KB
/
Makefile
File metadata and controls
52 lines (46 loc) · 1.56 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
49
50
51
52
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ssb <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/01/07 19:07:58 by ssb #+# #+# #
# Updated: 2021/01/15 08:58:52 by ssb ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRCS = ft_printf.c \
ft_flag_set.c \
ft_putchar.c \
ft_type_path.c \
ft_type_char.c \
ft_putwidth.c \
ft_type_string.c \
ft_type_int.c \
ft_type_unint.c \
ft_unitoa.c \
ft_type_percent.c \
ft_type_hexa.c \
ft_str_upper.c \
ft_change_base.c \
ft_type_pointer_add.c \
ft_flag_width_star.c
OBJS = $(SRCS:.c=.o)
LIBC = ar -rcs
FLAGS = -Wall -Wextra -Werror
LIBFTD = ./libft
LIBFT = libft.a
$(NAME) : $(OBJS)
$(MAKE) -C $(LIBFTD)
cp $(LIBFTD)/$(LIBFT) $(NAME)
$(CC) -c $(FLAGS) $(SRCS)
$(LIBC) $(NAME) $(OBJS)
all : $(NAME)
clean :
$(MAKE) clean -C $(LIBFTD)
$(RM) $(OBJS)
fclean : clean
$(MAKE) fclean -C $(LIBFTD)
$(RM) $(NAME)
re: fclean all