-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (42 loc) · 1.45 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
47
48
49
50
51
52
53
54
55
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: zwalad <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/12/26 19:54:07 by zwalad #+# #+# #
# Updated: 2023/01/05 16:06:15 by zwalad ### ########.fr #
# #
# **************************************************************************** #
NAME := cub3D
CC := @gcc
FLAGS := -lmlx -lXext -lX11 -lm -lbsd
HEADER = cub1d.h
RM = @rm -rf
SOURCE := main.c\
submain.c\
libft.c\
get/get_next_line.c\
get/get_next_line_utils.c\
minimap.c\
map_init.c\
map_init2.c\
map_init3.c\
moves.c\
src/get_dis.c \
src/get_3d_wall.c \
src/raycasting_help.c \
src/init_data.c \
src/init_data2.c \
player_init.c\
OBJCT = $(SOURCE:.c=.o)
all: $(NAME)
$(NAME) : $(OBJCT) $(HEADER)
$(CC) $(SOURCE) $(FLAGS) -o $(NAME)
clean:
$(RM) $(OBJCT)
fclean: clean
$(RM) $(NAME)
re: fclean all
$(RM) $(OBJCT)