CC=CC
INCLUDE_PATH= -I/u/cs426/include
CFLAGS=-g -32 -fullwarn $(INCLUDE_PATH)
LDFLAGS=-32 $(LIB_PATH)

default: tracer
FULL_SRCS=geometry.cpp main.cpp bmp.cpp scene.cpp box.cpp sphere.cpp cone.cpp cylinder.cpp triangle.cpp line.cpp ray.cpp ray.cpp group.cpp rayFileInstance.cpp pointLight.cpp spotLight.cpp directionalLight.cpp boundingBox.cpp

SRCS=geometry.cpp main.cpp bmp.cpp scene.cpp box.cpp sphere.cpp cone.cpp cylinder.cpp triangle.cpp line.cpp ray.cpp group.cpp rayFileInstance.cpp pointLight.cpp spotLight.cpp directionalLight.cpp boundingBox.cpp

OBJS=$(SRCS:.c=.o)

CCOPTS=+w +p -ansi  -32 -exceptions -ptused -woff 3106 -woff 3115  
CCDEF=-DUSE_UNIX -D_BSD_TIME -D_BSD_COMPAT
LIBS=-lm
INCS=-I/u/cs426/include
CCFLAGS=$(INCS) $(CCOPTS) $(CCDEF)
TARGET_COMPILER_FLAGS=$(CCFLAGS) $(LIBOPTS) 
TARGET_COMPILER=$(CC)

tracer: $(OBJS)
	echo $(OBJS)
	$(TARGET_COMPILER) -o tracer $(TARGET_COMPILER_FLAGS) $(OBJS) $(LIBS)

clean:
	-rm -f core
	-rm -f *.o
	-rm -f *~
	-rm -f viewer
	-rm -f tracer

depend:
	makedepend -- $(INCLUDE_PATH) -- $(FULL_SRCS)
# DO NOT DELETE

geometry.o: geometry.h /usr/include/math.h /usr/include/sgidefs.h
geometry.o: /usr/include/standards.h /usr/include/stdio.h
geometry.o: /usr/include/assert.h
main.o: /usr/include/assert.h /usr/include/stdio.h /usr/include/standards.h
main.o: /usr/include/sgidefs.h /usr/include/stdlib.h /usr/include/string.h
main.o: ray.h bmp.h geometry.h /usr/include/math.h scene.h shape.h
main.o: boundingBox.h light.h /usr/include/fcntl.h /usr/include/sys/types.h
main.o: /usr/include/sys/fcntl.h
bmp.o: bmp.h /usr/include/stdio.h /usr/include/standards.h
bmp.o: /usr/include/sgidefs.h /usr/include/assert.h /usr/include/stdlib.h
bmp.o: /usr/include/string.h
scene.o: /usr/include/stdlib.h /usr/include/standards.h
scene.o: /usr/include/sgidefs.h /usr/include/stdio.h /usr/include/string.h
scene.o: /usr/include/math.h scene.h bmp.h geometry.h /usr/include/assert.h
scene.o: shape.h boundingBox.h light.h pointLight.h directionalLight.h
scene.o: spotLight.h rayFileInstance.h sphere.h box.h cone.h cylinder.h
scene.o: triangle.h line.h group.h
box.o: /usr/include/stdio.h /usr/include/standards.h /usr/include/sgidefs.h
box.o: /usr/include/stdlib.h box.h shape.h geometry.h /usr/include/math.h
box.o: /usr/include/assert.h scene.h bmp.h light.h boundingBox.h
sphere.o: /usr/include/stdio.h /usr/include/standards.h
sphere.o: /usr/include/sgidefs.h /usr/include/stdlib.h /usr/include/math.h
sphere.o: sphere.h shape.h geometry.h /usr/include/assert.h scene.h bmp.h
sphere.o: light.h boundingBox.h
cone.o: /usr/include/stdio.h /usr/include/standards.h /usr/include/sgidefs.h
cone.o: /usr/include/stdlib.h cone.h shape.h geometry.h /usr/include/math.h
cone.o: /usr/include/assert.h scene.h bmp.h light.h boundingBox.h
cylinder.o: /usr/include/stdio.h /usr/include/standards.h
cylinder.o: /usr/include/sgidefs.h /usr/include/stdlib.h cylinder.h shape.h
cylinder.o: geometry.h /usr/include/math.h /usr/include/assert.h scene.h
cylinder.o: bmp.h light.h boundingBox.h
triangle.o: /usr/include/stdio.h /usr/include/standards.h
triangle.o: /usr/include/sgidefs.h /usr/include/stdlib.h triangle.h shape.h
triangle.o: geometry.h /usr/include/math.h /usr/include/assert.h scene.h
triangle.o: bmp.h light.h boundingBox.h
line.o: /usr/include/stdio.h /usr/include/standards.h /usr/include/sgidefs.h
line.o: /usr/include/stdlib.h line.h geometry.h /usr/include/math.h
line.o: /usr/include/assert.h shape.h scene.h bmp.h light.h boundingBox.h
ray.o: /usr/include/assert.h /usr/include/math.h /usr/include/sgidefs.h
ray.o: /usr/include/standards.h /usr/include/stdlib.h /usr/include/stdio.h
ray.o: /usr/include/string.h group.h shape.h geometry.h scene.h bmp.h light.h
ray.o: boundingBox.h ray.h line.h sphere.h cone.h box.h cylinder.h triangle.h
ray.o: /usr/include/assert.h /usr/include/math.h /usr/include/sgidefs.h
ray.o: /usr/include/standards.h /usr/include/stdlib.h /usr/include/stdio.h
ray.o: /usr/include/string.h group.h shape.h geometry.h scene.h bmp.h light.h
ray.o: boundingBox.h ray.h line.h sphere.h cone.h box.h cylinder.h triangle.h
group.o: /usr/include/stdio.h /usr/include/standards.h /usr/include/sgidefs.h
group.o: /usr/include/assert.h /usr/include/stdlib.h group.h shape.h
group.o: geometry.h /usr/include/math.h scene.h bmp.h light.h boundingBox.h
rayFileInstance.o: /usr/include/stdio.h /usr/include/standards.h
rayFileInstance.o: /usr/include/sgidefs.h /usr/include/stdlib.h
rayFileInstance.o: rayFileInstance.h shape.h geometry.h /usr/include/math.h
rayFileInstance.o: /usr/include/assert.h scene.h bmp.h light.h boundingBox.h
pointLight.o: /usr/include/stdio.h /usr/include/standards.h
pointLight.o: /usr/include/sgidefs.h /usr/include/string.h geometry.h
pointLight.o: /usr/include/math.h /usr/include/assert.h pointLight.h light.h
pointLight.o: shape.h scene.h bmp.h boundingBox.h
spotLight.o: /usr/include/stdio.h /usr/include/standards.h
spotLight.o: /usr/include/sgidefs.h /usr/include/string.h geometry.h
spotLight.o: /usr/include/math.h /usr/include/assert.h spotLight.h light.h
spotLight.o: shape.h scene.h bmp.h boundingBox.h
directionalLight.o: /usr/include/stdio.h /usr/include/standards.h
directionalLight.o: /usr/include/sgidefs.h /usr/include/string.h geometry.h
directionalLight.o: /usr/include/math.h /usr/include/assert.h
directionalLight.o: directionalLight.h light.h shape.h scene.h bmp.h
directionalLight.o: boundingBox.h
boundingBox.o: /usr/include/stdio.h /usr/include/standards.h
boundingBox.o: /usr/include/sgidefs.h /usr/include/math.h boundingBox.h
boundingBox.o: geometry.h /usr/include/assert.h
