-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (29 loc) · 1.18 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rrakman <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/09/29 18:40:15 by rrakman #+# #+# #
# Updated: 2022/10/15 16:51:01 by rrakman ### ########.fr #
# #
# **************************************************************************** #
.PHONY: clean all re fclean
CC = gcc
CFLAGS = -Wall -Wextra -Werror
NAME = libft.a
SRC = *.c
OBJ = $(SRC:.c=.o)
all: $(NAME)
@echo "all done"
$(NAME):
@CC $(CFLAGS) -c $(SRC)
@ar rc $(NAME) $(OBJ)
clean:
@rm -f $(OBJ)
@echo "OBJ deleted"
fclean: clean
@rm -f $(NAME)
@echo "$(NAME) deleted"
re: fclean all