all:
	(cd simple;     make -f Makefile)
	(cd multi;      make -f Makefile)
	#(cd stereo;     make -f Makefile)
	(cd simpleLite;     make -f Makefile)
	#(cd simpleMovie; make -f Makefile)
	#(cd simpleOSG;  make -f Makefile)
	(cd multiCube;  make -f Makefile)
	(cd multiWin;   make -f Makefile)
	#(cd optical;    make -f Makefile)
	#(cd opticalStereo;    make -f Makefile)
	(cd nftSimple;  make -f Makefile)
	#(cd nftBook;    make -f Makefile)

clean:
	(cd simple;     make -f Makefile clean)
	(cd multi;      make -f Makefile clean)
	(cd stereo;     make -f Makefile clean)
	(cd simpleLite;     make -f Makefile clean)
	(cd simpleMovie; make -f Makefile clean)
	(cd simpleOSG;  make -f Makefile clean)
	(cd multiCube;  make -f Makefile clean)
	(cd multiWin;   make -f Makefile clean)
	(cd optical;    make -f Makefile clean)
	(cd opticalStereo;     make -f Makefile clean)
	(cd nftSimple;  make -f Makefile clean)
	(cd nftBook;    make -f Makefile clean)

allclean:
	(cd simple;     make -f Makefile allclean)
	(cd multi;      make -f Makefile allclean)
	(cd stereo;     make -f Makefile allclean)
	(cd simpleLite;     make -f Makefile allclean)
	(cd simpleMovie; make -f Makefile allclean)
	(cd simpleOSG;  make -f Makefile allclean)
	(cd multiCube;  make -f Makefile allclean)
	(cd multiWin;   make -f Makefile allclean)
	(cd optical;    make -f Makefile allclean)
	(cd opticalStereo;     make -f Makefile allclean)
	(cd nftSimple;  make -f Makefile allclean)
	(cd nftBook;    make -f Makefile allclean)
	rm -f Makefile

distclean:
	(cd simple;     make -f Makefile distclean)
	(cd multi;      make -f Makefile distclean)
	(cd stereo;     make -f Makefile distclean)
	(cd simpleLite;     make -f Makefile distclean)
	(cd simpleMovie; make -f Makefile distclean)
	(cd simpleOSG;  make -f Makefile distclean)
	(cd multiCube;  make -f Makefile distclean)
	(cd multiWin;   make -f Makefile distclean)
	(cd optical;     make -f Makefile distclean)
	(cd opticalStereo;     make -f Makefile distclean)
	(cd nftSimple;  make -f Makefile distclean)
	(cd nftBook;    make -f Makefile distclean)
	rm -f Makefile
