forked from Glagan/42-cub3d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (45 loc) · 2.09 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: ncolomer <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/10/29 12:45:02 by ncolomer #+# #+# #
# Updated: 2019/11/12 16:37:58 by ncolomer ### ########.fr #
# #
# **************************************************************************** #
SRCS = main.c cub3d.c game.c bmp.c \
config/config.c config/map.c config/map_check.c \
config/parse_params.c config/parse_texture.c \
utils/ft_strlen.c utils/ft_substr.c utils/ft_in_set.c \
utils/str.c utils/ft_strdup.c utils/ft_split.c utils/ft_atoi.c \
utils/pos.c utils/ft_itoa.c utils/ft_memmove.c \
utils/ft_strcmp.c utils/ft_write.c utils/ft_endwith.c \
gnl/get_next_line.c gnl/get_next_line_utils.c \
engine/window.c engine/camera.c engine/shortcuts.c \
engine/raycast.c engine/draw.c engine/sprite.c \
engine/color.c engine/screen.c engine/ui.c \
engine/texture.c engine/tables.c engine/draw_wall.c \
engine/draw_sky_floor.c engine/quest.c \
engine/sprite_utils.c engine/crosshair.c
OBJS = $(SRCS:.c=.o)
CC = gcc
RM = rm -f
CFLAGS = -O3 -Wall -Wextra -Werror -I.
LIBS = -Lmlx -lmlx -framework OpenGL -framework AppKit -lm
MLX = libmlx.dylib
NAME = cub3D
all: $(NAME)
$(NAME): $(MLX) $(OBJS)
gcc ${CFLAGS} -o ${NAME} ${OBJS} ${LIBS}
$(MLX):
@$(MAKE) -C mlx
@mv mlx/$(MLX) .
clean:
@$(MAKE) -C mlx clean
$(RM) $(OBJS) $(BONUS_OBJS)
fclean: clean
$(RM) $(NAME) $(MLX)
re: fclean $(NAME)
.PHONY: all clean fclean re