LIBSC = -I ../../lib gl.cma camlglut.cma
LIBSOPT = -I ../../lib gl.cmxa camlglut.cmxa

.SUFFIXES: .ml .byte .opt

.ml.byte:
	ocamlc $(LIBSC) $< -o $@

.ml.opt:
	ocamlopt $(LIBSOPT) $< -o $@
	
all: test.byte test.opt

test.byte: test.ml
test.opt: test.ml

clean:
	@rm -f *.cm[iox] *.o *.byte *.opt core a.out