-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (50 loc) · 1.72 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
#******************************************************************************#
#******************************************************************************#
# #
# ::: :::::::: #
# 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 = rtv1
PATH_SRC = ./
PATH_OBJ = ./
PATH_INC = ./libft
CC = gcc
CFLAGS = -Wall -Wextra -Werror
HEAD = rtv1.h
SRC = main.c \
mlx.c \
controls.c \
raytrace.c \
raytrace2.c \
vector1.c \
list.c \
vector2.c\
scene_constructor.c \
scene_constructor2.c \
coloring_other.c \
linear.c \
scenes.c \
intersections.c \
coloring.c \
color_math.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 -L MinilibX/ -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)