all: MicroTrace
CC = g++
-CFLAGS = -O0 -g -Wall
+CFLAGS = -O3 -Wall -fopenmp
OBJ = MicroTrace.o\
FlatShader.o\
EyeLightShader.o\
ReflectiveEyeLightShader.o\
+ PhongShader.o\
+ Light.o\
+ PointLight.o\
+ SpotLight.o\
Scene.o\
- Primitive.o
+ Primitive.o\
+ QuadAreaLight.o\
+ Box.o\
+ kDTree.o
%.o: %.cxx *.hxx
$(CC) $(CFLAGS) -c $< -o $@
MicroTrace: $(OBJ)
-
+ g++ -fopenmp $(OBJ) -o MicroTrace
clean:
rm *~ *.o *.a MicroTrace