-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (37 loc) · 1.35 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: bsyvasal <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/22 13:48:30 by mcombeau #+# #+# #
# Updated: 2024/01/05 19:05:11 by bsyvasal ### ########.fr #
# #
# **************************************************************************** #
NAME = push_swap
CC = cc
CFLAGS = -Wall -Werror -Wextra
SRC = push_swap \
push \
revrot \
rotate \
swap \
turk_sort \
utils
LIB = libft/libft.a
SRCS = $(addsuffix .c, $(SRC))
OBJS = $(addsuffix .o, $(SRC))
$(NAME): $(OBJS) $(LIB)
$(CC) $(CFLAGS) $(OBJS) -L./libft -lft -o $(NAME)
$(LIB):
make -C ./libft
all: $(NAME)
clean:
@make clean -C ./libft
@rm -f *.o
fclean: clean
@make fclean -C ./libft
@rm -f $(NAME)
re: clean all
.PHONY: all clean fclean re bonus