-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 1.16 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: nbarreir <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/02/12 20:08:01 by nbarreir #+# #+# #
# Updated: 2021/06/20 03:58:34 by nbarreir ### ########.fr #
# #
# **************************************************************************** #
NAME = libft.a
SRC = *.c
OBJ = $(SRC:.c=.o)
CFLAGS = -Wall -Wextra -Werror
INCLUDES = libft.h
all: $(NAME)
$(NAME): $(INCLUDES)
gcc $(CFLAGS) -c $(SRC)
ar rc $(NAME) $(OBJ)
git:
@git add .
@git commit -m "$m"
@git push
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all