-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 738 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 738 Bytes
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
NAME = So_long
LIBFT = libft/libft.a
FLAGS = -Wall -Wextra -Werror
SRC = src/so_long.c \
src/errors.c \
src/draw_map.c \
src/utils.c \
src/key_hook.c \
src/moves.c \
gnl/get_next_line.c \
gnl/get_next_line_utils.c \
INC = inc/so_long.h \
gnl/get_next_line.h \
LIB = -L ./libft -lft -L ./mlx -lmlx -lXext -lX11
all: $(NAME)
$(NAME):
cd mlx/ && ./configure
gcc -g3 -fsanitize=address $(FLAGS) -o $(NAME) $(SRC) $(LIB)
skiperror:
gcc -o $(NAME) $(SRC) -g $(LIB)
clean:
@rm -rf *.o
@echo "cleaning .o files"
fclean: clean
@rm -rf $(NAME)
re: fclean all