-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (49 loc) · 1.68 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
#******************************************************************************#
#******************************************************************************#
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: okupin <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/02/02 01:43:55 by okupin #+# #+# #
# Updated: 2018/02/02 01:44:05 by okupin ### ########.fr #
# #
#******************************************************************************#
NAME = wolf3d
PATH_SRC = ./
PATH_OBJ = ./
PATH_INC = ./libft/includes/
CC = gcc
CFLAGS = -Wall -Wextra -Werror
HEAD = wolf3d.h
SRC = main.c \
linear.c \
line.c \
read.c \
hsv.c \
pixel.c \
mlx.c \
ft_map.c \
count_map.c \
raycasting.c \
draw_lines.c \
color_modes.c \
control.c \
additional.c \
interface.c
OBJ = $(patsubst %.c,%.o,$(addprefix $(PATH_SRC), $(SRC)))
all: $(NAME)
$(NAME): $(OBJ) $(HEAD)
make -C libft/
$(CC) $(CFLAGS) -I $(PATH_INC) -c $(SRC)
$(CC) -o $(NAME) $(OBJ) -lm -L libft/ -lft -lmlx -framework OpenGL -framework AppKit
clean:
make -C libft/ clean
/bin/rm -rf *.o
/bin/rm -f $(OBJ)
fclean: clean
make -C libft/ fclean
/bin/rm -f $(NAME)
re: fclean all
.PHONY: all re @(NAME)