X-Git-Url: https://git.rohieb.name/MicroTrace.git/blobdiff_plain/f050c860f0e0897148a6476d5c07b8532808c7f7..49b259147e3ece2ed0aa4ad72b686970031cfc46:/Makefile diff --git a/Makefile b/Makefile index a9c458e..f263909 100644 --- a/Makefile +++ b/Makefile @@ -3,19 +3,38 @@ all: MicroTrace CC = g++ -CFLAGS = -O3 -Wall -g -O0 +CFLAGS = -O3 -Wall + OBJ = MicroTrace.o\ Vec3f.o\ Camera.o\ PerspectiveCamera.o\ + Ray.o\ Image.o\ - Ray.o + InfinitePlane.o\ + Sphere.o\ + Triangle.o\ + Shader.o\ + FlatShader.o\ + EyeLightShader.o\ + ReflectiveEyeLightShader.o\ + PhongShader.o\ + Light.o\ + PointLight.o\ + SpotLight.o\ + Scene.o\ + Primitive.o %.o: %.cxx *.hxx $(CC) $(CFLAGS) -c $< -o $@ +%.a: + ar r $@ $< + + + MicroTrace: $(OBJ) clean: - rm *.o MicroTrace + rm *~ *.o *.a MicroTrace