-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (42 loc) · 1.51 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
#* ************************************************************************** *#
#* *#
#* ::: :::::::: *#
#* Makefile :+: :+: :+: *#
#* +:+ +:+ +:+ *#
#* By: lmarques <lmarques@student.42.fr> +#+ +:+ +#+ *#
#* +#+#+#+#+#+ +#+ *#
#* Created: 2016/11/10 23:15:25 by lmarques #+# #+# *#
#* Updated: 2017/01/06 21:16:29 by lmarques ### ########.fr *#
#* *#
#* ************************************************************************** *#
NAME = wolf3d
SRC = checker.c \
controls_keyboard.c \
controls_mouse.c \
draw.c \
floor.c \
key_list.c \
reader.c \
reader2.c \
reader3.c \
tools.c \
walls.c \
wolf3d.c \
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME):
make -C libft
make -C minilibx
mv libft/libft.a .
mv minilibx/libmlx.a .
gcc -Wall -Werror -Wextra -c $(SRC)
gcc -Wall -Werror -Wextra -L. -lmlx -lft -framework OpenGL -framework Appkit $(OBJ) -o $(NAME)
clean:
make -C libft clean
make -C minilibx clean
rm -rf $(OBJ) libft.a libmlx.a
fclean: clean
make -C libft fclean
make -C minilibx clean
rm -rf $(NAME)
re : fclean all