-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 1.28 KB
/
Makefile
File metadata and controls
39 lines (29 loc) · 1.28 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: erc <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/08/03 08:29:24 by erc #+# #+# #
# Updated: 2020/08/25 14:36:12 by erc ### ########.fr #
# #
# **************************************************************************** #
NAME=libftprintf.a
SRCS=./1.libft/ft*.c ./2.ft_printf/pf*.c ./2.ft_printf/ft*.c
OBJS=ft*.o pf*.o
INCLUDES=./
all:$(NAME)
@echo Compiling $(NAME)...
$(NAME):
@gcc -g3 -Wall -Wextra -Werror -I$(INCLUDES) -c $(SRCS)
@ar rc $(NAME) $(OBJS)
@ranlib $(NAME)
bonus: re
clean:
@echo Deleting Objects...
@/bin/rm -f $(OBJS)
fclean: clean
@echo Deleting $(NAME)...
@/bin/rm -f $(NAME) ft_printf.h.gch
re: fclean all