-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
41 lines (31 loc) · 1.08 KB
/
makefile
File metadata and controls
41 lines (31 loc) · 1.08 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
CXX = g++
CXXFLAGS = -pipe -march=native -std=c++11 -Wall -Wextra -O3 -fopenmp
LDLIBS = -lstdc++ -lm
LDFLAGS = -pipe -O3 -fopenmp
SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o) png/lodepng.o
EXE = prog
.PHONY: clean mrproper
all: depend $(EXE)
$(EXE): depend $(OBJS)
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
# makedepend: le package xutils-dev doit être installé
#EDIT personnel : (sous Ubuntu/Debian c'est valide)
depend:
@makedepend -- $(CXXFLAGS) -- -Y $(SRCS) 2> /dev/null
clean:
rm -f *.o
mrproper: clean
rm -f $(EXE)
# DO NOT DELETE THIS LINE
sphere.o: sphere.hpp objet.h intersection.h material.h rayon.h scene.h
image.o: image.h png/lodepng.h
scene.o: scene.h
phong.o: phong.h material.h intersection.h light.h scene.h rayon.h
light.o: light.h
intersection.o: intersection.h
rayon.o: rayon.h scene.h intersection.h objet.h material.h
camera.o: camera.h scene.h rayon.h intersection.h image.h
main.o: image.h camera.h scene.h rayon.h intersection.h objet.h material.h
main.o: sphere.hpp plan.hpp phong.h light.h
plan.o: plan.hpp objet.h intersection.h material.h rayon.h scene.h