-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 1.05 KB
/
Makefile
File metadata and controls
43 lines (34 loc) · 1.05 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
NAME = push_swap
LIBFT = libft/libft.a
FLAGS = -Wall -Wextra -Werror
SRC = srcs/push_swap.c \
srcs/errors.c \
srcs/stack_moves.c \
srcs/utils.c \
srcs/utils2.c \
srcs/utils3.c \
srcs/utils4.c \
srcs/sorter.c \
srcs/large_stack.c \
srcs/large_stack2.c \
srcs/large_stack3.c \
srcs/large_strat1.c \
srcs/large_strat2.c \
srcs/free.c \
srcs/init.c \
srcs/push_to_b_groups.c \
INC = inc/push_swap.h \
libft/libft.h \
LIB = -L ./libft -lft
all: $(NAME)
$(NAME):
gcc -g -fsanitize=address $(FLAGS) -o $(NAME) $(SRC) $(LIB)
skiperror:
gcc -ggdb -o $(NAME) $(SRC) -g $(LIB)
clean:
@rm -rf *.o
@echo "cleaning .o files"
fclean: clean
@rm -rf $(NAME)
re: fclean all
.PHONY: all skiperror clean fclean re