-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (32 loc) · 1.32 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: epuclla <epuclla@student.42.us.org> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/08/05 14:00:10 by epuclla #+# #+# #
# Updated: 2020/08/24 23:47:36 by epuclla ### ########.fr #
# #
# **************************************************************************** #
CC = gcc
NAME = libftprintf.a
CFLAGS = -Wall -Wextra -Werror -c
SRCS=./libft/ft*.c ./source/ft*.c
OBJECTS=ft*.o
LIB_PATH = ./libft
INCLUDES=./includes
all:$(NAME)
$(NAME):
@make re -C $(LIB_PATH)
@$(CC) -g3 $(CFLAGS) $(SRCS) -I$(INCLUDES)
@ar rc $(NAME) $(OBJECTS) $(LIB_PATH)/*.o
@ranlib $(NAME)
bonus: re
clean:
@/bin/rm -f $(OBJECTS)
@make clean -C $(LIB_PATH)
fclean: clean
@/bin/rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re