-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (34 loc) · 1.38 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
39
40
41
42
43
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: amoussai <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/09/10 15:30:39 by amoussai #+# #+# #
# Updated: 2019/12/07 08:35:16 by amoussai ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRCS = ft_itoa_base.c ft_print.c ft_print_num.c ft_print_string.c ft_printf.c ft_verification.c
OBJ = $(SRCS:.c=.o)
FLAGS=-Wall -Werror -Wextra
CC=gcc
INCLUDE=libftprintf.h
.PHONY: clean fclean all re
all: $(NAME)
$(NAME): $(OBJ)
$(MAKE) -C ./libft
mv ./libft/libft.a .
mv libft.a libftprintf.a
ar rcs $(NAME) $(OBJ)
bonus: re
%.o : %.c
$(CC) $(FLAGS) -c -o $@ $<
clean:
$(MAKE) -C ./libft clean
rm -f *.o
fclean: clean
$(MAKE) -C ./libft fclean
rm -f $(NAME)
re: fclean all