Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (43 loc) · 1.63 KB
/
Copy pathMakefile
File metadata and controls
59 lines (43 loc) · 1.63 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aasselma <aasselma@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/04/17 19:53:47 by aasselma #+# #+# #
# Updated: 2023/04/27 00:23:30 by aasselma ### ########.fr #
# #
# **************************************************************************** #
NAME = push_swap
B_NAME = checker
SRC = push_swap.c utils.c \
cont_of_instru.c \
instruction.c \
check_err.c \
sort_stack.c \
small_sort.c \
BONUS = push_swap_bonus.c utils_bonus.c \
cont_of_instru_bonus.c \
instruction_bonus.c \
check_err_bonus.c \
sort_stack_bonus.c \
BONUS_OBJ = $(BONUS:.c=.o)
OBJ = $(SRC:.c=.o)
utils = ./get_next_line/get_next_line_utils.c \
./get_next_line/get_next_line.c
CC = cc
CFLAGS = -Wall -Wextra -Werror
RM = rm -rf
$(NAME): $(OBJ)
$(CC) $(CFLAGS) $(OBJ) -o $(NAME)
all: $(NAME)
clean:
@$(RM) $(OBJ) $(BONUS_OBJ)
@echo "<<<<all files are deleted>>>>"
fclean: clean
@$(RM) $(NAME) $(B_NAME)
re: fclean all
$(B_NAME) : $(BONUS_OBJ)
$(CC) $(CFLAGS) $(BONUS_OBJ) $(utils) -o $(B_NAME)
bonus: $(B_NAME)