-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 837 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 837 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
35
36
SRCS = main.c start_map.c gnl/get_next_line.c gnl/get_next_line_utils.c \
map_utils1.c tools.c textures_utils.c map_utils2.c \
map_cover.c mlx_set.c start_mlx.c mlx_key.c \
move.c calculator.c textures_pixel.c print_pixel.c \
rotate_mouse.c destroy_game.c rotate.c
OBJS = $(SRCS:.c=.o)
CC = gcc -g
MFLAGS = ./minilbx/libmlx.a
LFLAGS = ./libft/libft.a
AFLAGS = -Wall -Wextra -Werror -I./minilbx -I./libft -g
RM = rm -rf
NAME = cub3d
all :$(MFLAGS) $(LFLAGS) $(NAME)
$(MFLAGS):
@make -C ./minilbx
$(LFLAGS):
@make -C ./libft
$(NAME): $(OBJS)
@$(CC) $(OBJS) $(MFLAGS) $(LFLAGS) $(AFLAGS) -framework OpenGL -framework AppKit -o $(NAME)
fclean : clean
@make fclean -C ./libft
@$(RM) $(NAME)
clean :
@make clean -C ./minilbx
@make clean -C ./libft
@$(RM) ./*.o ./gnl/*.o
re : fclean all
.PHONY : all fclean clean re