-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
27 lines (19 loc) · 1.18 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
NAME = cub3d
SRCS = cub3d.c \
utils/ft_strlen.c utils/ft_strncmp.c utils/ft_strjoin.c utils/ft_split.c utils/ft_memcpy.c utils/ft_substr.c utils/ft_strchr.c utils/get_next_line.c utils/ft_isdigit.c utils/ft_atoi.c src/init_args.c \
utils/ft_lst_new.c utils/ft_lst.c \
src/parsing.c utils/ft_strnstr.c utils/ft_str_trim.c utils/spaces.c src/set_minimap.c src/move.c src/key_release.c src/rendring.c utils/error.c utils/close.c \
src/cast_to_3d.c src/mouse_press.c src/key_press.c src/mouse_move.c src/render_game.c src/mouse_release.c src/map_animation.c src/design_env.c src/init_multi_imgs.c
FLGS = gcc -Werror -Wall -Wextra
RM = rm -f
all: $(NAME) $(SRCS)
$(NAME): $(SRCS)
make -C lib
$(FLGS) -lmlx -framework OpenGL -framework AppKit -Ofast -g3 -flto -march=native -O3 -ffast-math -msse4.2 -mtune=intel lib/libmlx.a $(SRCS) -o $(NAME)
clean:
$(RM) -fr $(NAME)
fclean: clean
make clean -C lib
$(RM) -fr img/guns/g1 img/guns/g2 img/guns/g3 img/guns/g4 img/guns/g5 img/guns/g6 img/guns/g7 img/guns/g8 img/guns/g9 img/enemies/attack_1 img/enemies/attack_2 img/enemies/attack_3 img/enemies/hit img/enemies/death img/enemies/walk img/enemies/run
re: fclean all
.PHONY: clean fclean all re