-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·35 lines (29 loc) · 1014 Bytes
/
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
NAME = cub3D.lib
FINALNAME = cub3D
SRCS = main.c gnl/get_next_line.c \
srcs/list/utils.c srcs/list/list_validator.c \
srcs/list/list_validator_utils.c srcs/list/list_validator_utils2.c \
srcs/map/convert_to_array.c srcs/map/validation.c \
srcs/utils/lib_utils.c srcs/utils/error.c srcs/utils/sorting.c \
srcs/gui/start.c srcs/gui/draw_sprites.c srcs/gui/drawer.c \
srcs/gui/handlers.c srcs/gui/initions.c srcs/gui/key_hooks.c \
srcs/gui/pixels.c srcs/gui/rotations.c srcs/gui/steps.c \
srcs/gui/utils.c srcs/gui/utils2.c \
srcs/map/init_sprites.c srcs/map/utils.c \
srcs/screenshot/save.c
SRCOBJS = $(SRCS:.c=.o)
CC = gcc
CFLAGS = -Wall -Wextra -Werror -g
$(NAME): $(SRCOBJS)
make bonus -C libft
make -C minilibx
ar -rcs $(NAME) $(SRCOBJS) libft/*.o
gcc $(NAME) -framework OpenGL -framework AppKit minilibx/libmlx.a -g -o $(FINALNAME)
all: $(NAME)
clean :
rm -rf $(SRCOBJS) $(NAME)
make clean -C libft
fclean : clean
make fclean -C libft
rm -rf $(FINALNAME)
re : fclean all