-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 1.38 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: mcloarec <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/05/20 10:07:52 by mcloarec #+# #+# #
# Updated: 2022/06/23 11:04:18 by mcloarec ### ########.fr #
# #
# **************************************************************************** #
SRCS = srcs/main.c
SRCS += srcs/init.c
SRCS += srcs/map.c
SRCS += srcs/check.c
SRCS += srcs/error.c
SRCS += srcs/img.c
SRCS += srcs/destroy.c
SRCS += srcs/key.c
SRCS += srcs/move.c
SRCS += srcs/imgbis.c
NAME = so_long
CC = gcc
RM = rm -f
CFLAGS = -g -Wall -Wextra -Werror
all: $(NAME)
$(NAME):
make -C libft
$(CC) $(CFLAGS) $(SRCS) -Llibft -lft -Lmlx_linux -lmlx_Linux -Imlx_linux -lXext -lX11 -lm -lz -o $(NAME)
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re