CC = /opt/csw/gcc3/bin/g++ 

all: aabb.o v2d.o image.o scene.o segment.o main.cpp circle.o
	$(CC) -o main main.cpp aabb.o v2d.o image.o scene.o segment.o circle.o

circle.o: circle.cpp circle.h aabb.h v2d.h image.h segment.h scene.h
	$(CC) -c -g circle.cpp

aabb.o: aabb.cpp aabb.h circle.h v2d.h image.h segment.h scene.h
	$(CC) -c -g aabb.cpp

v2d.o: v2d.cpp v2d.h circle.h aabb.h image.h segment.h scene.h
	$(CC) -c -g v2d.cpp

image.o: image.cpp image.h circle.h v2d.h image.h segment.h scene.h
	$(CC) -c -g image.cpp

scene.o: scene.cpp scene.h circle.h v2d.h image.h segment.h scene.h
	$(CC) -c -g scene.cpp

segment.o: segment.cpp segment.h circle.h v2d.h image.h segment.h scene.h
	$(CC) -c -g segment.cpp

clean:
	rm -f main *.o *~
