-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (32 loc) · 1.26 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
44
45
46
47
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: fbarros <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/02/22 14:41:52 by fbarros #+# #+# #
# Updated: 2021/08/20 15:20:57 by fbarros ### ########.fr #
# #
# **************************************************************************** #
SRCS = $(wildcard *.c)
OBJS = ${SRCS:.c=.o}
CFLAGS = -Wall -Werror -Wextra -g
NAME = libft.a
CC = gcc
AR = ar rc
INDEX = ranlib
RM = rm -f
.c.o:
${CC} ${CFLAGS} -c $< -o ${<:.c=.o} -I.
all: $(NAME)
$(NAME): ${OBJS}
${AR} $(NAME) ${OBJS}
${INDEX} $(NAME)
clean :
${RM} ${OBJS}
fclean: clean
${RM} ${NAME}
re: fclean all
rebonus : fclean
.PHONY: all clean fclean re