-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
97 lines (76 loc) · 2.48 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: cchameyr <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/02/15 16:45:32 by cchameyr #+# #+# #
#* Updated: 2016/04/22 12:29:28 by ### ########.fr *#
# #
# **************************************************************************** #
NAME = wolf3d
SRC = ./sources/main.c \
./sources/start.c \
./sources/wolf_hook.c \
./sources/wolf_map.c \
./sources/wolf3d.c \
./sources/edit_wolf.c \
./sources/delta_time.c \
./sources/get_next_line.c \
./sources/wolf_get_path.c \
./sources/exit_wolf.c \
./sources/wolf_check_map.c \
./sources/error_text.c \
./sources/wolf_complete_case.c \
./sources/display_map.c \
./sources/load_texture.c \
./sources/clear_texture.c \
./sources/trace.c \
./sources/trace_monocolor.c
OBJS = ./main.o \
./start.o \
./wolf_hook.o \
./wolf_map.o \
./wolf3d.o \
./edit_wolf.o \
./delta_time.o \
./get_next_line.o \
./wolf_get_path.o \
./exit_wolf.o \
./wolf_check_map.o \
./error_text.o \
./wolf_complete_case.o \
./display_map.o \
./load_texture.o \
./clear_texture.o \
./trace.o \
./trace_monocolor.o
DRAW = ./draw/draw.a
LIBFT = ./libft/libft.a
LIBMLX = ./libmlx/libmlx.a
LMLX = #-lmlx
FRAMEWORK = $(LMLX) -framework OpenGL -framework AppKit -o3
SEGDEBUG = -fsanitize=address
FLAGS = -Wall -Wextra -Werror -g3 #$(SEGDEBUG)
CC = gcc
RM = rm -f
all: $(NAME)
$(NAME): $(LIBFT) $(LIBMLX) $(DRAW) $(OBJS)
$(CC) $(FLAGS) $(FRAMEWORK) $(OBJS) $(LIBFT) $(LIBMLX) $(DRAW) -o $(NAME)
$(OBJS): $(LIBFT) $(LIBMLX) $(DRAW)
$(CC) $(FLAGS) -c $(SRC)
$(LIBFT):
make -C ./libft/
$(DRAW):
make -C ./draw/
$(LIBMLX):
make -C ./libmlx/
clean:
$(RM) $(OBJS)
make clean -C ./draw/
make clean -C ./libft/
make clean -C ./libmlx/
fclean: clean
$(RM) $(NAME) $(LIBFT) $(DRAW) $(LIBMLX)
re: fclean all