-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (17 loc) · 872 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
CXXFLAGS = -std=c++17 -Wall -Werror -O3 -g
RASTERIZER_OBJECTS = Scene.o Matrix4.o Helpers.o Main.o Vec3.o Vec4.o Color.o tinyxml2.o Rotation.o Translation.o Scaling.o Camera.o Mesh.o Triangle.o MiscTools.o Line.o
rasterizer: $(RASTERIZER_OBJECTS)
$(CXX) $(CFLAGS) $(RASTERIZER_OBJECTS) -o rasterizer
%.o: %.cpp %.h
png:
for foo in *.ppm; do convert "$$foo" "$${foo%.ppm}.png"; done
.PHONY: clean
clean:
-rm rasterizer
-rm *.o
Culling_disabled:
for foo in culling_disabled_inputs/*xml; do bar="time_$${foo#inputs/}"; echo "./rasterizer $$foo"; ./rasterizer "$$foo" ; done
Culling_enabled:
for foo in culling_enabled_inputs/*xml; do bar="time_$${foo#inputs/}"; echo "./rasterizer $$foo"; ./rasterizer "$$foo" ; done
Clipping:
for foo in clipping_example/*xml; do bar="time_$${foo#inputs/}"; echo "./rasterizer $$foo"; ./rasterizer "$$foo" ; done