-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (38 loc) · 1.45 KB
/
Makefile
File metadata and controls
51 lines (38 loc) · 1.45 KB
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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: asoroka <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/10/30 18:38:01 by asoroka #+# #+# #
# Updated: 2017/10/30 22:11:28 by asoroka ### ########.fr #
# #
# **************************************************************************** #
NAME = wolf3d
FLAGS = -c -Wall -Wextra -Werror
MLX = -lmlx -framework OpenGL -framework AppKit
HEADER = wolf3d.h
SRC = src/main.c \
src/create_win.c \
src/put_pixel.c \
src/create_map.c \
src/ray_casting.c \
src/buttons.c \
src/rotate.c \
src/create_xpm.c \
src/integrate_color.c \
src/create_image.c \
src/walls_color.c \
src/for_func.c \
BINS = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(BINS)
gcc -o $(NAME) $(BINS) $(MLX)
%.o: %.c $(HEADER)
gcc $(FLAGS) -o $@ $<
clean:
/bin/rm -f $(BINS)
fclean: clean
/bin/rm -f $(NAME)
re: fclean all