-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (28 loc) · 1.3 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: axcastil <[email protected] +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/26 19:47:07 by axcastil #+# #+# #
# Updated: 2024/06/16 17:34:11 by axcastil ### ########.fr #
# #
# **************************************************************************** #
SRCS = $(shell find libft/sources/ -name "*.c") \
$(shell find ft_printf/sources/ -name "*.c") \
$(shell find get_next_line/sources/ -name "*.c")
OBJS = $(SRCS:.c=.o)
NAME = lib42.a
CC = gcc
CFLAGS = -Wall -Wextra -Werror
RM = rm -f
all: $(NAME)
$(NAME): $(OBJS)
@ar rcs $(NAME) $(OBJS)
clean:
@$(RM) $(OBJS)
fclean: clean
@$(RM) $(NAME)
re: fclean $(NAME)
.PHONY: all clean fclean re