# Makefile for examples subdir

# ocamlopt.opt compiles gears twice as fast as ocamlopt.
LABLOPT=ocamlopt.opt -I +labltk -I +lablgl labltk.cmxa lablgl.cmxa togl.cmxa
EXES=checker gears double morph3d planet scene simple tennis texturesurf
all: $(EXES)
% : %.ml
	@echo Generating $@
	$(LABLOPT) -o $@ $@.ml

# Unlike the others, planet needs unix.cmxa.
planet: planet.ml
	@echo Generating $@
	$(LABLOPT) unix.cmxa -o $@ $@.ml 

clean:
	rm -f *.cm* *.o *.opt $(EXES)
