-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (40 loc) · 800 Bytes
/
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
##
## Makefile for in /home/miele_t/
##
## Made by thomas miele
## Login <[email protected]>
##
## Started on Thu Mar 15 08:59:42 2012 thomas miele
## Last update Sat Jun 2 16:21:34 2012 thomas miele
##
NAME= rt
SRC= Src/main.c \
Src/calc_mesh.c \
Src/color.c \
Src/get_mesh.c \
Src/inter_mesh.c \
Src/light.c \
Src/llist.c \
Src/luminosite.c \
Src/mesh.c \
Src/mlx.c \
Src/raytracer.c \
Src/rotate.c \
Src/shadow.c \
OBJ= $(SRC:.c=.o)
CC= clang
CFLAGS= -Wall -D_REENTRANT
LDFLAGS= -L/usr/lib/x86_64-linux-gnu -lm -lSDL2
$(NAME): $(OBJ)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) -o $(NAME)
all: $(NAME)
clean:
# @clean
@rm -f Src/*.c~
@rm -f Src/*\#*#
@rm -f Src/Include/*.c~
@rm -f Src/Include/*\#*#
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all